com.sas.hls.security.acl
Class AclOwner

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

public class AclOwner
extends Object
implements AclPrincipal

A data object which represents the owner acl. For every AclSecurable, there is one AclOwner entry which designates the owner permissions for that object. Note read and admin permissions can not be taken away from the AclOwner.

See Also:
Serialized Form

Constructor Summary
AclOwner()
          Default constructor
AclOwner(String principalId)
          AclOwner constructor
 
Method Summary
 boolean equals(Object obj)
          Indicate whether some other object is "equal to" this one.
 String getPrincipalId()
          Gets the principal id of the acl owner
 String getPrincipalName()
          Gets the principal name of the acl owner
 int hashCode()
          Return a hash code value for the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AclOwner

public AclOwner()
Default constructor


AclOwner

public AclOwner(String principalId)
AclOwner constructor

Parameters:
principalId - pricipalId of the acl owner principal
Method Detail

getPrincipalName

public String getPrincipalName()
Gets the principal name of the acl owner

Specified by:
getPrincipalName in interface AclPrincipal
Returns:
The principal name of the acl owner

getPrincipalId

public String getPrincipalId()
Gets the principal id of the acl owner

Specified by:
getPrincipalId in interface AclPrincipal
Returns:
The principal id of the acl owner

hashCode

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

Specified by:
hashCode in interface AclPrincipal
Overrides:
hashCode in class Object
Returns:
a hash code representation of this object
See Also:
Object.hashCode()

equals

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

Specified by:
equals in interface AclPrincipal
Overrides:
equals in class Object
Parameters:
obj - to be compared
Returns:
true if the objects are equal, false otherwise
See Also:
Object.equals(java.lang.Object)


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