com.starteam
Class ServerAdministration.LockStatus

java.lang.Object
  extended by com.starteam.ServerAdministration.LockStatus
Enclosing class:
ServerAdministration

public static final class ServerAdministration.LockStatus
extends java.lang.Object

Information about the lock status of the server. Possible status are "locked", "locked exclusively" or "unlocked".

See Also:
ServerAdministration.getServerLockStatus()

Field Summary
static ServerAdministration.LockStatus[] ALL
          All possible Lock statuses
static ServerAdministration.LockStatus LOCKED
          Server is locked
static ServerAdministration.LockStatus LOCKED_EXCLUSIVELY
          Server is locked exclusively
static ServerAdministration.LockStatus UNLOCKED
          Server is unlocked
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this LockStatus with the Object o
static ServerAdministration.LockStatus fromID(int id)
          Gets the Status value corresponding to the given ID.
 int getID()
          The ID of the corresponding LockStatus.
 java.lang.String getName()
          Gets the name of the LockStatus
 int hashCode()
          Returns a hash code value for the LockStatus.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCKED

public static final ServerAdministration.LockStatus LOCKED
Server is locked


LOCKED_EXCLUSIVELY

public static final ServerAdministration.LockStatus LOCKED_EXCLUSIVELY
Server is locked exclusively


UNLOCKED

public static final ServerAdministration.LockStatus UNLOCKED
Server is unlocked


ALL

public static final ServerAdministration.LockStatus[] ALL
All possible Lock statuses

Method Detail

getName

public java.lang.String getName()
Gets the name of the LockStatus

Returns:
The name of Lock Status

getID

public int getID()
The ID of the corresponding LockStatus.

Returns:
The ID of this Status value.

fromID

public static ServerAdministration.LockStatus fromID(int id)
Gets the Status value corresponding to the given ID.

Parameters:
id - A Status ID.
Returns:
The corresponding Status value, or null.

equals

public boolean equals(java.lang.Object o)
Compares this LockStatus with the Object o

Overrides:
equals in class java.lang.Object
Parameters:
o - the Object to compare too for equality
Returns:
true if this instance and Object o are identical

hashCode

public int hashCode()
Returns a hash code value for the LockStatus.

Overrides:
hashCode in class java.lang.Object
Returns:
hashCode


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.