public final class SecurityAttribute
extends java.lang.Object
| Constructor and Description |
|---|
SecurityAttribute(AnyMap metadata)
Conversion Constructor.
|
SecurityAttribute(AnyMap metadata,
DataFactory factory)
Conversion Constructor.
|
SecurityAttribute(Record record)
Conversion Constructor.
|
public SecurityAttribute(Record record)
record - the Record to contain the security attributepublic SecurityAttribute(AnyMap metadata)
metadata - the AnyMap to contain the security attributepublic SecurityAttribute(AnyMap metadata, DataFactory factory)
metadata - the AnyMap to contain the security attributefactory - the RecordFactory to use for attribute creationpublic AnyMap getAccessRights()
SecurityAttributes.ACCESS_RIGHTS attribute. If it does not exist it is created.SecurityAttributes.ACCESS_RIGHTS attributepublic AnyMap getAccessRights(SecurityAttributes.AccessRightType accessRightType)
SecurityAttributes.AccessRightType. If it does not exist it is created.accessRightType - the AccessRightTypepublic AnySeq getAccessRights(SecurityAttributes.AccessRightType accessRightType, SecurityAttributes.EntityType entityType)
SecurityAttributes.AccessRightType and SecurityAttributes.EntityType. If it does not exist it
is created.accessRightType - the AccessRightTypeentityType - the EntityTypepublic void add(SecurityAttributes.AccessRightType accessRightType, SecurityAttributes.EntityType entityType, java.lang.String entity)
SecurityAttributes.AccessRightType and
SecurityAttributes.EntityType. Non existing attributes are created.accessRightType - the AccessRightTypeentityType - the EntityTypeentity - the value to addpublic void remove()
SecurityAttributes.ACCESS_RIGHTS attribute and all sub attribute.public void remove(SecurityAttributes.AccessRightType accessRightType)
SecurityAttributes.AccessRightType and all it's sub attribute.accessRightType - the AccessRightTypepublic void remove(SecurityAttributes.AccessRightType accessRightType, SecurityAttributes.EntityType entityType)
SecurityAttributes.AccessRightType and SecurityAttributes.EntityType and all it's sub
attributes.accessRightType - the AccessRightTypeentityType - the EntityTypepublic void remove(SecurityAttributes.AccessRightType accessRightType, SecurityAttributes.EntityType entityType, java.lang.String entity)
SecurityAttributes.AccessRightType and SecurityAttributes.EntityType.accessRightType - the AccessRightTypeentityType - the EntityTypeentity - the value to remove