com.sas.hls.security.acl
Class AclEntry

java.lang.Object
  extended by com.sas.hls.security.acl.AclEntry
All Implemented Interfaces:
Serializable

public class AclEntry
extends Object
implements Serializable

A data object that represents access permissions for an acl principal.

See Also:
Serialized Form

Nested Class Summary
static class AclEntry.PermissionValue
          PermissionValue is an enum representing the possible values of a permission.
 
Constructor Summary
AclEntry()
          Zero-arg AclEntry constructor
AclEntry(AclPrincipal principal)
          AclEntry constructor
AclEntry(AclPrincipal principal, AclEntry.PermissionValue adminPermission, AclEntry.PermissionValue readPermission, AclEntry.PermissionValue writePropertiesPermission, AclEntry.PermissionValue writeContentPermission, AclEntry.PermissionValue deletePermission)
          AclEntry constructor
 
Method Summary
 boolean equals(Object obj)
          Indicate whether some other object is "equal to" this one.
 AclEntry.PermissionValue getAdminPermission()
          Get the admin permission for this acl
 AclEntry.PermissionValue getDeletePermission()
          Get the delete permission for this acl
 AclPrincipal getPrincipal()
          Get the principal for this acl
 AclEntry.PermissionValue getReadPermission()
          Get the read permission for this acl
 AclEntry.PermissionValue getWriteContentPermission()
          Get the content write permission for this acl
 AclEntry.PermissionValue getWritePropertiesPermission()
          Get the properties write permission for this acl
 int hashCode()
          Return a hash code value for the object.
 void setAdminPermission(AclEntry.PermissionValue admin)
          Set the admin permission for this acl
 void setDeletePermission(AclEntry.PermissionValue delete)
          Set the delete permission for this acl
 void setPrincipal(AclPrincipal principal)
          Set the AclPrincipal for this acl
 void setReadPermission(AclEntry.PermissionValue read)
          Set the read permission for this acl
 void setWriteContentPermission(AclEntry.PermissionValue writeContent)
          Set the content write permission for this acl
 void setWritePropertiesPermission(AclEntry.PermissionValue writePropertiesPermission)
          Set the properties write permission for this acl
 String toString()
          Return a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AclEntry

public AclEntry()
Zero-arg AclEntry constructor


AclEntry

public AclEntry(AclPrincipal principal)
AclEntry constructor

Parameters:
principal -

AclEntry

public AclEntry(AclPrincipal principal,
                AclEntry.PermissionValue adminPermission,
                AclEntry.PermissionValue readPermission,
                AclEntry.PermissionValue writePropertiesPermission,
                AclEntry.PermissionValue writeContentPermission,
                AclEntry.PermissionValue deletePermission)
AclEntry constructor

Parameters:
principal - aclPrincipal in which to set the access permissions
adminPermission - admin permission to assign to the principal
readPermission - read permission to assign to the principal
writePropertiesPermission - properties write permission to assign to the principal
writeContentPermission - content write permission to assign to the principal
deletePermission - delete permission to assign to the principal
Method Detail

getPrincipal

public AclPrincipal getPrincipal()
Get the principal for this acl

Returns:
the AclPrinicpal

setPrincipal

public void setPrincipal(AclPrincipal principal)
Set the AclPrincipal for this acl

Parameters:
principal -

getReadPermission

public AclEntry.PermissionValue getReadPermission()
Get the read permission for this acl

Returns:
PermissionValue value representing whether this permission will be honored

setReadPermission

public void setReadPermission(AclEntry.PermissionValue read)
Set the read permission for this acl

Parameters:
read - PermissionValue containing the value of how to set the permission

getWritePropertiesPermission

public AclEntry.PermissionValue getWritePropertiesPermission()
Get the properties write permission for this acl

Returns:
PermissionValue value representing whether this permission will be honored

setWritePropertiesPermission

public void setWritePropertiesPermission(AclEntry.PermissionValue writePropertiesPermission)
Set the properties write permission for this acl

Parameters:
writePropertiesPermission - PermissionValue containing the value of how to set the permission

getDeletePermission

public AclEntry.PermissionValue getDeletePermission()
Get the delete permission for this acl

Returns:
PermissionValue value representing whether this permission will be honored

setDeletePermission

public void setDeletePermission(AclEntry.PermissionValue delete)
Set the delete permission for this acl

Parameters:
delete - PermissionValue containing the value of how to set the permission

getAdminPermission

public AclEntry.PermissionValue getAdminPermission()
Get the admin permission for this acl

Returns:
PermissionValue value representing whether this permission will be honored

setAdminPermission

public void setAdminPermission(AclEntry.PermissionValue admin)
Set the admin permission for this acl

Parameters:
admin - PermissionValue containing the value of how to set the permission

getWriteContentPermission

public AclEntry.PermissionValue getWriteContentPermission()
Get the content write permission for this acl

Returns:
PermissionValue value representing whether this permission will be honored

setWriteContentPermission

public void setWriteContentPermission(AclEntry.PermissionValue writeContent)
Set the content write permission for this acl

Parameters:
writeContent - PermissionValue containing the value of how to set the permission

hashCode

public int hashCode()
Return a hash code value for the object.

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Indicate whether some other object is "equal to" this one.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Return a string representation of the object.

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright (c) 2014, SAS Institute Inc., Cary, NC, USA