org.netxms.client
Class AccessListElement

java.lang.Object
  extended by org.netxms.api.client.users.AbstractAccessListElement
      extended by org.netxms.client.AccessListElement

public final class AccessListElement
extends AbstractAccessListElement

Access list element for NetXMS objects


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

Constructor Detail

AccessListElement

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

Parameters:
userId -
accessRights -

AccessListElement

public AccessListElement(AccessListElement src)
Copy constructor

Parameters:
src - Source ACL element
Method Detail

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


Copyright © 2011. All Rights Reserved.