|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpt.digitalis.dif.controller.security.objects.ACLEntry
public class ACLEntry
Represents a grant on a resource for a given entity (user or group).
| Constructor Summary | |
|---|---|
ACLEntry()
Default ctor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getEntityID()
Returns the ID of the entity associated with this entity. |
Entity |
getEntityType()
Returns the entity type. |
static Entity |
getEntityTypeFromName(String entityName)
Converts an entity name to the appropriate Entity. |
String |
getGroupID()
Returns the group ID. |
static String |
getTypeNameFromEntity(Entity entity)
Converts an Entity to it's type name. |
String |
getUserID()
Returns the user ID. |
int |
hashCode()
|
boolean |
isDefault()
Checks if this is a default entry. |
boolean |
isEnabled()
Checks if this entry is enabled. |
boolean |
isGroupACL()
Checks if it is a group entry. |
boolean |
isPublicAccess()
Checks if the entry has public access. |
boolean |
isUserACL()
Checks if it is a user entry. |
void |
setDefault(boolean isDefault)
Sets a new value for 'isDefault' field |
void |
setEnabled(boolean isEnabled)
Sets a new value for 'isEnabled' field |
void |
setEntityID(String entityID)
Sets the entity ID. |
void |
setEntityType(Entity entityType)
Sets the entity type. |
void |
setGroupID(String groupID)
Sets the group ID. |
void |
setPublicAccess()
Sets the ACL entry as public. |
void |
setUserID(String userID)
Sets the user ID. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ACLEntry()
| Method Detail |
|---|
public static Entity getEntityTypeFromName(String entityName)
entityName - the entity name
public static String getTypeNameFromEntity(Entity entity)
entity - the entity
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String getEntityID()
public Entity getEntityType()
public String getGroupID()
public String getUserID()
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean isDefault()
public boolean isEnabled()
public boolean isGroupACL()
public boolean isPublicAccess()
public boolean isUserACL()
public void setDefault(boolean isDefault)
isDefault - the new default valuepublic void setEnabled(boolean isEnabled)
isEnabled - the new 'isEnabled' valuepublic void setEntityID(String entityID)
entityID - the entityID to setpublic void setEntityType(Entity entityType)
entityType - the entityType to setpublic void setGroupID(String groupID)
groupID - the groupID to setpublic void setPublicAccess()
public void setUserID(String userID)
userID - the userID to setpublic String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||