public class GlobalDescriptionPermissionsDelegate extends Object implements PermissionDelegate<GlobalDescription>
Constructor and Description |
---|
GlobalDescriptionPermissionsDelegate() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAdminister(com.atlassian.user.User user,
GlobalDescription target) |
boolean |
canCreate(com.atlassian.user.User user,
Object container) |
boolean |
canCreateInTarget(com.atlassian.user.User user,
Class typeToCreate) |
boolean |
canEdit(com.atlassian.user.User user,
GlobalDescription target) |
boolean |
canExport(com.atlassian.user.User user,
GlobalDescription target) |
boolean |
canRemove(com.atlassian.user.User user,
GlobalDescription target) |
boolean |
canSetPermissions(com.atlassian.user.User user,
GlobalDescription target) |
boolean |
canView(com.atlassian.user.User user) |
boolean |
canView(com.atlassian.user.User user,
GlobalDescription target)
GlobalDescription instances can be viewed by anyone, even by
anonymous users and if the anonymous use flag is set to false. |
void |
setSpacePermissionManager(SpacePermissionManager spacePermissionManager) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canMove, canRemoveHierarchy
public GlobalDescriptionPermissionsDelegate()
public boolean canAdminister(com.atlassian.user.User user, GlobalDescription target)
canAdminister
in interface PermissionDelegate<GlobalDescription>
public boolean canCreate(com.atlassian.user.User user, Object container)
canCreate
in interface PermissionDelegate<GlobalDescription>
public boolean canCreateInTarget(com.atlassian.user.User user, Class typeToCreate)
canCreateInTarget
in interface PermissionDelegate<GlobalDescription>
user
- the user performing the createtypeToCreate
- the class of the entity to createpublic boolean canEdit(com.atlassian.user.User user, GlobalDescription target)
canEdit
in interface PermissionDelegate<GlobalDescription>
public boolean canExport(com.atlassian.user.User user, GlobalDescription target)
canExport
in interface PermissionDelegate<GlobalDescription>
public boolean canRemove(com.atlassian.user.User user, GlobalDescription target)
canRemove
in interface PermissionDelegate<GlobalDescription>
public boolean canSetPermissions(com.atlassian.user.User user, GlobalDescription target)
canSetPermissions
in interface PermissionDelegate<GlobalDescription>
public boolean canView(com.atlassian.user.User user, GlobalDescription target)
GlobalDescription
instances can be viewed by anyone, even by
anonymous users and if the anonymous use flag is set to false.canView
in interface PermissionDelegate<GlobalDescription>
public boolean canView(com.atlassian.user.User user)
canView
in interface PermissionDelegate<GlobalDescription>
public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
Copyright © 2003–2020 Atlassian. All rights reserved.