Class NeverPermittedContentPermission
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.AnnotatedEntityObject
com.atlassian.confluence.core.ConfluenceEntityObject
com.atlassian.confluence.security.ContentPermission
com.atlassian.confluence.security.NeverPermittedContentPermission
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<ContentPermission>
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.confluence.security.ContentPermission
EDIT_PERMISSION, EXPORT_PERMISSION, SHARED_PERMISSION, VIEW_PERMISSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getType()
int
hashCode()
boolean
boolean
isPermitted
(com.atlassian.user.User user) Determine if a user is locked out by the permission.boolean
Methods inherited from class com.atlassian.confluence.security.ContentPermission
compareTo, createGroupPermission, createUserPermission, createUserPermission, getGroupName, getOwningSet, getUserName, getUserSubject, isValid, setOwningSet, setSubject, toString
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName
Methods inherited from class com.atlassian.confluence.core.AnnotatedEntityObject
getCreationDate, getLastModificationDate
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCurrentDate, getId, setClock, setCreationDate, setId, setLastModificationDate
-
Constructor Details
-
NeverPermittedContentPermission
-
-
Method Details
-
isPermitted
public boolean isPermitted(com.atlassian.user.User user) Description copied from class:ContentPermission
Determine if a user is locked out by the permission. Note, this does not take into account if the user has a general ability to override a lock (say if they are a global or space-level administrator), lock overrides must be dealt with at a higher level.content level permissions cannot be granted to anonymous users
- Overrides:
isPermitted
in classContentPermission
- Parameters:
user
- the user to test against- Returns:
- true if the lock would prevent the user from editing content, false otherwise.
-
isGroupPermission
public boolean isGroupPermission()- Overrides:
isGroupPermission
in classContentPermission
-
isUserPermission
public boolean isUserPermission()- Overrides:
isUserPermission
in classContentPermission
-
getType
- Overrides:
getType
in classContentPermission
-
equals
- Overrides:
equals
in classContentPermission
-
hashCode
public int hashCode()- Overrides:
hashCode
in classContentPermission
-