|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.ConfluenceEntityObject
com.atlassian.confluence.security.ContentPermission
Allows a user to lock content against editing by other users.
Note: the expiry field is currently unused.
Field Summary | |
static String |
EDIT_PERMISSION
|
static String |
VIEW_PERMISSION
|
Constructor Summary | |
|
ContentPermission()
This has to be public because the ReverseDatabinder requires
public default constructors. |
protected |
ContentPermission(String type,
String groupName,
String userName)
|
Method Summary | |
int |
compareTo(Object o)
|
static ContentPermission |
createGroupPermission(String type,
String groupName)
|
static ContentPermission |
createUserPermission(String type,
String userName)
|
boolean |
equals(Object o)
|
String |
getCreatorName()
Deprecated. as of 2.4 does not have the same implication as previously for {ContentPermission . |
String |
getGroup()
Deprecated. as of version 2.4. Use getGroupName() instead. |
String |
getGroupName()
|
ContentPermissionSet |
getOwningSet()
|
String |
getType()
|
String |
getUserName()
When isUserPermission() is true, returns the username of the user who is explicitly permitted by
this permission. |
int |
hashCode()
|
boolean |
isGroupPermission()
|
boolean |
isPermitted(User user)
Determine if a user is locked out by the permission. |
boolean |
isUserPermission()
|
void |
setOwningSet(ContentPermissionSet owningSet)
|
void |
setUserAccessor(UserAccessor userAccessor)
|
String |
toString()
|
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject |
getLastModifierName, isPersistent, setCreatorName, setLastModifierName |
Methods inherited from class com.atlassian.core.bean.EntityObject |
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String VIEW_PERMISSION
public static final String EDIT_PERMISSION
Constructor Detail |
public ContentPermission()
ReverseDatabinder
requires
public default constructors.
protected ContentPermission(String type, String groupName, String userName)
Method Detail |
public static ContentPermission createUserPermission(String type, String userName)
public static ContentPermission createGroupPermission(String type, String groupName)
public boolean isPermitted(User user)
user
- the user to test against
public boolean isGroupPermission()
public boolean isUserPermission()
public String getType()
public String getUserName()
isUserPermission()
is true, returns the username of the user who is explicitly permitted by
this permission.
public String getCreatorName()
{ContentPermission
.
isUserPermission()
is true, use
getUserName()
to find the username of the permitted user.
getCreatorName
in class ConfluenceEntityObject
getUserName()
public void setUserAccessor(UserAccessor userAccessor)
public String getGroupName()
public String getGroup()
getGroupName()
instead.
public ContentPermissionSet getOwningSet()
public void setOwningSet(ContentPermissionSet owningSet)
public int compareTo(Object o)
compareTo
in interface Comparable
public String toString()
public boolean equals(Object o)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |