Class LinkPermissionsDelegate
- java.lang.Object
-
- com.atlassian.confluence.security.delegate.LinkPermissionsDelegate
-
- All Implemented Interfaces:
PermissionDelegate<AbstractLink>
public class LinkPermissionsDelegate extends Object implements PermissionDelegate<AbstractLink>
-
-
Constructor Summary
Constructors Constructor Description LinkPermissionsDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
canAdminister(ConfluenceUser user, AbstractLink target)
boolean
canCreate(ConfluenceUser user, Object container)
boolean
canCreateInTarget(ConfluenceUser user, Class typeToCreate)
boolean
canEdit(ConfluenceUser user, AbstractLink target)
boolean
canExport(ConfluenceUser user, AbstractLink target)
boolean
canRemove(ConfluenceUser user, AbstractLink target)
boolean
canSetPermissions(ConfluenceUser user, AbstractLink target)
boolean
canView(ConfluenceUser user)
boolean
canView(ConfluenceUser user, AbstractLink target)
void
setPermissionManager(PermissionManager permissionManager)
void
setPermissionManagerTarget(PermissionManager permissionManager)
Deprecated.since 7.16 usesetPermissionManager(PermissionManager)
-
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, AbstractLink target)
- Specified by:
canView
in interfacePermissionDelegate<AbstractLink>
- Returns:
- true if user can view the specified target.
-
canView
public boolean canView(ConfluenceUser user)
- Specified by:
canView
in interfacePermissionDelegate<AbstractLink>
- Returns:
- true if the user can view all instances of targets handled by this permission delegate
-
canEdit
public boolean canEdit(ConfluenceUser user, AbstractLink target)
- Specified by:
canEdit
in interfacePermissionDelegate<AbstractLink>
-
canSetPermissions
public boolean canSetPermissions(ConfluenceUser user, AbstractLink target)
- Specified by:
canSetPermissions
in interfacePermissionDelegate<AbstractLink>
-
canRemove
public boolean canRemove(ConfluenceUser user, AbstractLink target)
- Specified by:
canRemove
in interfacePermissionDelegate<AbstractLink>
-
canExport
public boolean canExport(ConfluenceUser user, AbstractLink target)
- Specified by:
canExport
in interfacePermissionDelegate<AbstractLink>
-
canAdminister
public boolean canAdminister(ConfluenceUser user, AbstractLink target)
- Specified by:
canAdminister
in interfacePermissionDelegate<AbstractLink>
-
canCreate
public boolean canCreate(ConfluenceUser user, Object container)
- Specified by:
canCreate
in interfacePermissionDelegate<AbstractLink>
- 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:
canCreateInTarget
in interfacePermissionDelegate<AbstractLink>
- 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.
-
setPermissionManagerTarget
@Deprecated public void setPermissionManagerTarget(PermissionManager permissionManager)
Deprecated.since 7.16 usesetPermissionManager(PermissionManager)
-
setPermissionManager
public void setPermissionManager(PermissionManager permissionManager)
- Since:
- 7.16
-
-