Class NeverPermittedContentPermission
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.confluence.core.ConfluenceEntityObject
-
- com.atlassian.confluence.security.ContentPermission
-
- com.atlassian.confluence.security.NeverPermittedContentPermission
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<ContentPermission>
public class NeverPermittedContentPermission extends ContentPermission
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.security.ContentPermission
EDIT_PERMISSION, SHARED_PERMISSION, VIEW_PERMISSION
-
-
Constructor Summary
Constructors Constructor Description NeverPermittedContentPermission(String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getType()
int
hashCode()
boolean
isGroupPermission()
boolean
isPermitted(com.atlassian.user.User user)
Determine if a user is locked out by the permission.boolean
isUserPermission()
-
Methods inherited from class com.atlassian.confluence.security.ContentPermission
compareTo, createGroupPermission, createUserPermission, createUserPermission, getGroupName, getOwningSet, getUserName, getUserSubject, setOwningSet, setSubject, toString
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName
-
-
-
-
Constructor Detail
-
NeverPermittedContentPermission
public NeverPermittedContentPermission(String type)
-
-
Method Detail
-
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
public String getType()
- Overrides:
getType
in classContentPermission
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classContentPermission
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classContentPermission
-
-