org.netxms.client
Class NXCAccessListElement

java.lang.Object
  extended by org.netxms.client.NXCAccessListElement

public final class NXCAccessListElement
extends java.lang.Object


Constructor Summary
NXCAccessListElement(long userId, int accessRights)
          Create new ACL element with given user ID and rights
NXCAccessListElement(NXCAccessListElement src)
          Copy constructor
 
Method Summary
 boolean equals(java.lang.Object aThat)
           
 int getAccessRights()
           
 long getUserId()
           
 boolean hasAccessControl()
           
 boolean hasAckAlarms()
           
 boolean hasControl()
           
 boolean hasCreate()
           
 boolean hasDelete()
           
 int hashCode()
           
 boolean hasModify()
           
 boolean hasPushData()
           
 boolean hasRead()
           
 boolean hasReadAlarms()
           
 boolean hasSendEvents()
           
 boolean hasTerminateAlarms()
           
 void setAccessRights(int accessRights)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NXCAccessListElement

public NXCAccessListElement(long userId,
                            int accessRights)
Create new ACL element with given user ID and rights

Parameters:
userId -
accessRights -

NXCAccessListElement

public NXCAccessListElement(NXCAccessListElement src)
Copy constructor

Parameters:
src - Source ACL element
Method Detail

getUserId

public long getUserId()
Returns:
the userId

setAccessRights

public void setAccessRights(int accessRights)
Parameters:
accessRights - the accessRights to set

getAccessRights

public int getAccessRights()
Returns:
the accessRights

hasRead

public boolean hasRead()
Returns:
true if READ access granted

hasModify

public boolean hasModify()
Returns:
true if MODIFY access granted

hasDelete

public boolean hasDelete()
Returns:
true if DELETE access granted

hasCreate

public boolean hasCreate()
Returns:
true if CREATE access granted

hasReadAlarms

public boolean hasReadAlarms()
Returns:
true if READ ALARMS access granted

hasAckAlarms

public boolean hasAckAlarms()
Returns:
true if ACK ALARMS access granted

hasTerminateAlarms

public boolean hasTerminateAlarms()
Returns:
true if TERMINATE ALARMS access granted

hasControl

public boolean hasControl()
Returns:
true if CONTROL access granted

hasSendEvents

public boolean hasSendEvents()
Returns:
true if SEND EVENTS access granted

hasAccessControl

public boolean hasAccessControl()
Returns:
true if ACCESS CONTROL access granted

hasPushData

public boolean hasPushData()
Returns:
true if PUSH DATA access granted

equals

public boolean equals(java.lang.Object aThat)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2009. All Rights Reserved.