Package org.netxms.client
Class AccessListElement
java.lang.Object
org.netxms.client.users.AbstractAccessListElement
org.netxms.client.AccessListElement
Access list element for NetXMS objects
-
Field Summary
Fields inherited from class org.netxms.client.users.AbstractAccessListElement
accessRights, userId -
Constructor Summary
ConstructorsConstructorDescriptionAccessListElement(int userId, int accessRights) Create new ACL element with given user ID and rightsCopy constructorAccessListElement(AccessListElement src, boolean inherited) Create copy of existing ACL entry with possibly changed inheritance flag. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanhasRead()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanCheck if this access list element was inherited.Methods inherited from class org.netxms.client.users.AbstractAccessListElement
equals, getAccessRights, getUserId, hashCode, setAccessRights, toString
-
Constructor Details
-
AccessListElement
public AccessListElement(int userId, int accessRights) Create new ACL element with given user ID and rights- Parameters:
userId- user idaccessRights- bit mask
-
AccessListElement
Copy constructor- Parameters:
src- Source ACL element
-
AccessListElement
Create copy of existing ACL entry with possibly changed inheritance flag.- Parameters:
src- Source ACL elementinherited- inheritance flag
-
-
Method Details
-
isInherited
public boolean isInherited()Check if this access list element was inherited.- Returns:
- true if this access list element was inherited
-
hasRead
public boolean hasRead()- Returns:
- true if READ access granted
-
hasReadAgent
public boolean hasReadAgent()- Returns:
- true if READ AGENT access granted
-
hasReadSNMP
public boolean hasReadSNMP()- Returns:
- true if READ SNMP access granted
-
hasModify
public boolean hasModify()- Returns:
- true if MODIFY access granted
-
hasEditComments
public boolean hasEditComments()- Returns:
- true if EDIT COMMENTS access granted
-
hasEditResponsibleUsers
public boolean hasEditResponsibleUsers()- Returns:
- true if EDIT RESPONSIBLE USERS access granted
-
hasCreate
public boolean hasCreate()- Returns:
- true if CREATE access granted
-
hasDelete
public boolean hasDelete()- Returns:
- true if DELETE access granted
-
hasControl
public boolean hasControl()- Returns:
- true if CONTROL access granted
-
hasSendEvents
public boolean hasSendEvents()- Returns:
- true if SEND EVENTS 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
-
hasCreateIssue
public boolean hasCreateIssue()- Returns:
- true if CREATE ISSUE access granted
-
hasPushData
public boolean hasPushData()- Returns:
- true if PUSH DATA access granted
-
hasAccessControl
public boolean hasAccessControl()- Returns:
- true if ACCESS CONTROL access granted
-
hasDownload
public boolean hasDownload()- Returns:
- true if DOWNLOAD access granted
-
hasUpload
public boolean hasUpload()- Returns:
- true if UPLOAD access granted
-
hasManage
public boolean hasManage()- Returns:
- true if MANAGE FILES access granted
-
hasConfigureAgent
public boolean hasConfigureAgent()- Returns:
- true if CONFIGURE AGENT access granted
-
hasTakeScreenshot
public boolean hasTakeScreenshot()- Returns:
- true if SCREENSHOT access granted
-
hasControlMaintenance
public boolean hasControlMaintenance()- Returns:
- true if MAINTENANCE access granted
-
hasEditMaintenbanceJournal
public boolean hasEditMaintenbanceJournal()- Returns:
- true if EDIT MAINTENANCE JOURNAL access granted
-