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 booleancanAdminister(com.atlassian.user.User user, AbstractLink target)booleancanCreate(com.atlassian.user.User user, Object container)booleancanCreateInTarget(com.atlassian.user.User user, Class typeToCreate)booleancanEdit(com.atlassian.user.User user, AbstractLink target)booleancanExport(com.atlassian.user.User user, AbstractLink target)booleancanRemove(com.atlassian.user.User user, AbstractLink target)booleancanSetPermissions(com.atlassian.user.User user, AbstractLink target)booleancanView(com.atlassian.user.User user)booleancanView(com.atlassian.user.User user, AbstractLink target)voidsetPermissionManager(PermissionManager permissionManager)voidsetPermissionManagerTarget(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
canMove, canRemoveHierarchy
-
-
-
-
Method Detail
-
canView
public boolean canView(com.atlassian.user.User user, AbstractLink target)- Specified by:
canViewin interfacePermissionDelegate<AbstractLink>- Returns:
- true if user can view the specified target.
-
canView
public boolean canView(com.atlassian.user.User user)
- Specified by:
canViewin interfacePermissionDelegate<AbstractLink>- Returns:
- true if the user can view all instances of targets handled by this permission delegate
-
canEdit
public boolean canEdit(com.atlassian.user.User user, AbstractLink target)- Specified by:
canEditin interfacePermissionDelegate<AbstractLink>
-
canSetPermissions
public boolean canSetPermissions(com.atlassian.user.User user, AbstractLink target)- Specified by:
canSetPermissionsin interfacePermissionDelegate<AbstractLink>
-
canRemove
public boolean canRemove(com.atlassian.user.User user, AbstractLink target)- Specified by:
canRemovein interfacePermissionDelegate<AbstractLink>
-
canExport
public boolean canExport(com.atlassian.user.User user, AbstractLink target)- Specified by:
canExportin interfacePermissionDelegate<AbstractLink>
-
canAdminister
public boolean canAdminister(com.atlassian.user.User user, AbstractLink target)- Specified by:
canAdministerin interfacePermissionDelegate<AbstractLink>
-
canCreate
public boolean canCreate(com.atlassian.user.User user, Object container)- Specified by:
canCreatein interfacePermissionDelegate<AbstractLink>- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
canCreateInTarget
public boolean canCreateInTarget(com.atlassian.user.User user, Class typeToCreate)- Specified by:
canCreateInTargetin 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
-
-