com.adventnet.agent.tl1.security
Class TL1CommandSecurity
java.lang.Object
|
+--com.adventnet.agent.tl1.security.TL1CommandSecurity
- public class TL1CommandSecurity
- extends java.lang.Object
This class stores the Command Security related informations.
TL1CommandSecurity stores the command name, it's status and it's access privilege
|
Method Summary |
java.util.Vector |
getCap()
Used to get the Command Access Privileges |
java.lang.String |
getCommand()
Returns the Command verb with verb
modifiers together. |
java.lang.String |
getState()
Returns the Status of the Command whether it is InService or OutOfService |
void |
setCap(java.util.Vector access)
Set the access privilege of the command. |
void |
setCommand(java.lang.String command)
Set the command. |
void |
setState(java.lang.String status)
Set the state of the command whether it is InService or OutOfService. |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TL1CommandSecurity
public TL1CommandSecurity()
getCommand
public java.lang.String getCommand()
- Returns the Command verb with verb
modifiers together.
setCommand
public void setCommand(java.lang.String command)
- Set the command.
- Parameters:
command - - Command name which has verb+modifiers
getState
public java.lang.String getState()
- Returns the Status of the Command whether it is InService or OutOfService
- Returns:
- Returns 1 if the command is functional
or returns 0.
setState
public void setState(java.lang.String status)
- Set the state of the command whether it is InService or OutOfService.
- Parameters:
status - - 1 If the command is functional else 0 (Zero)
getCap
public java.util.Vector getCap()
- Used to get the Command Access Privileges
- Returns:
- Returns the vector of access privileges of this command.
setCap
public void setCap(java.util.Vector access)
- Set the access privilege of the command.
- Parameters:
access - - access privilege(s) that should be set to the command