Class NoPermissionDelegate<T>
- java.lang.Object
-
- com.atlassian.confluence.security.NoPermissionDelegate<T>
-
- All Implemented Interfaces:
PermissionDelegate<T>
public final class NoPermissionDelegate<T> extends Object implements PermissionDelegate<T>
APermissionDelegatewhich always refuses permission.- Since:
- 7.16
-
-
Constructor Summary
Constructors Constructor Description NoPermissionDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanAdminister(ConfluenceUser user, T target)booleancanCreate(ConfluenceUser user, Object container)booleancanCreateInTarget(ConfluenceUser user, Class typeToCreate)booleancanEdit(ConfluenceUser user, T target)booleancanExport(ConfluenceUser user, T target)booleancanRemove(ConfluenceUser user, T target)booleancanSetPermissions(ConfluenceUser user, T target)booleancanView(ConfluenceUser user)booleancanView(ConfluenceUser user, T target)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.security.PermissionDelegate
canAdminister, canCreate, canCreateInTarget, canEdit, canExport, canMove, canMove, canRemove, canRemoveHierarchy, canRemoveHierarchy, canSetPermissions, canView, canView
-
-
-
-
Method Detail
-
canView
public boolean canView(ConfluenceUser user, T target)
- Specified by:
canViewin interfacePermissionDelegate<T>- Returns:
- true if user can view the specified target.
-
canView
public boolean canView(ConfluenceUser user)
- Specified by:
canViewin interfacePermissionDelegate<T>- Returns:
- true if the user can view all instances of targets handled by this permission delegate
-
canEdit
public boolean canEdit(ConfluenceUser user, T target)
- Specified by:
canEditin interfacePermissionDelegate<T>
-
canSetPermissions
public boolean canSetPermissions(ConfluenceUser user, T target)
- Specified by:
canSetPermissionsin interfacePermissionDelegate<T>
-
canRemove
public boolean canRemove(ConfluenceUser user, T target)
- Specified by:
canRemovein interfacePermissionDelegate<T>
-
canExport
public boolean canExport(ConfluenceUser user, T target)
- Specified by:
canExportin interfacePermissionDelegate<T>
-
canAdminister
public boolean canAdminister(ConfluenceUser user, T target)
- Specified by:
canAdministerin interfacePermissionDelegate<T>
-
canCreate
public boolean canCreate(ConfluenceUser user, Object container)
- Specified by:
canCreatein interfacePermissionDelegate<T>- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
canCreateInTarget
public boolean canCreateInTarget(ConfluenceUser user, Class typeToCreate)
- Specified by:
canCreateInTargetin interfacePermissionDelegate<T>- Parameters:
user- the user performing the createtypeToCreate- the class of the entity to create- Returns:
- true if the specified user can create new instances of the specified typeToCreate within instances of target handled by this PermissionDelegate.
-
-