|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.content.Permission
A content object permission.
| Constructor Summary | |
Permission(User user,
Group group)
Creates a new permission with default values. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks if this permission equals another object. |
boolean |
equals(Permission obj)
Checks if this permission equals another object. |
boolean |
getAdmin()
Returns the admin permission flag. |
java.lang.String |
getGroupName()
Returns the permission group name. |
boolean |
getPublish()
Returns the publish permission flag. |
boolean |
getRead()
Returns the read permission flag. |
java.lang.String |
getUserName()
Returns the permission user name. |
boolean |
getWrite()
Returns the write permission flag. |
boolean |
isMatch(User user,
Group[] groups)
Checks if the specified user or group list matches this permission. |
void |
setAdmin(boolean admin)
Sets the admin permission flag. |
void |
setPublish(boolean publish)
Sets the publish permission flag. |
void |
setRead(boolean read)
Sets the read permission flag. |
void |
setWrite(boolean write)
Sets the write permission flag. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Permission(User user,
Group group)
user - the user, or null for any usergroup - the gruop, or null for any group| Method Detail |
public boolean equals(java.lang.Object obj)
obj - the object to compare with
public boolean equals(Permission obj)
obj - the object to compare with
public java.lang.String toString()
public java.lang.String getUserName()
public java.lang.String getGroupName()
public boolean getRead()
public void setRead(boolean read)
read - the new read permission flagpublic boolean getWrite()
public void setWrite(boolean write)
write - the new write permission flagpublic boolean getPublish()
public void setPublish(boolean publish)
publish - the new publish permission flagpublic boolean getAdmin()
public void setAdmin(boolean admin)
admin - the new admin permission flag
public boolean isMatch(User user,
Group[] groups)
user - the user to check, or null for nonegroups - the group list to check, or null for none
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||