|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.security.BambooPermissionManagerImpl
public class BambooPermissionManagerImpl
Field Summary | |
---|---|
protected org.acegisecurity.acls.MutableAclService |
aclService
|
Fields inherited from interface com.atlassian.bamboo.security.BambooPermissionManager |
---|
SYSTEM_AUTHORITY |
Constructor Summary | |
---|---|
BambooPermissionManagerImpl()
|
Method Summary | |
---|---|
protected org.acegisecurity.acls.objectidentity.ObjectIdentity |
createObjectIdentity(java.lang.Object object)
|
protected org.acegisecurity.acls.Acl |
getAcl(java.lang.Object object)
|
java.util.Collection<java.lang.String> |
getAdminGroups()
Get a list of all the groups that have global administration permission |
java.util.Collection<org.acegisecurity.acls.Permission> |
getPermissionsForPlan(PlanKey planKey)
|
java.util.Collection<org.acegisecurity.acls.Permission> |
getPermissionsForPlan(java.lang.String planKey)
|
boolean |
hasGlobalPermission(org.acegisecurity.acls.Permission permission)
|
boolean |
hasGlobalPermission(java.lang.String permission)
|
boolean |
hasPermission(org.acegisecurity.Authentication authentication,
java.lang.String permission,
java.lang.Object object)
Deprecated. |
boolean |
hasPermission(org.acegisecurity.acls.Permission permission,
java.lang.Object object,
org.acegisecurity.Authentication authentication)
Checks whether a permission is granted to access object with given authentication. |
boolean |
hasPermission(java.lang.String permission,
java.lang.Object object)
Deprecated. |
boolean |
hasPermission(java.lang.String username,
org.acegisecurity.acls.Permission permission,
java.lang.Object object)
|
boolean |
hasPermission(java.lang.String username,
java.lang.String permission,
java.lang.Object object)
|
boolean |
hasPlanPermission(org.acegisecurity.acls.Permission permission,
PlanKey planKey)
|
boolean |
hasPlanPermission(java.lang.String permission,
java.lang.String planKey)
|
boolean |
isAdmin(java.lang.String username)
Returns true if the user is an admin, false if not |
boolean |
isEnableSignup()
|
boolean |
isSystemAdmin(java.lang.String username)
Returns true if the user is a sysadmin, false if not |
void |
setAclService(org.acegisecurity.acls.MutableAclService aclService)
|
void |
setAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager)
|
void |
setBambooUserManager(BambooUserManager bambooUserManager)
|
void |
setFeatureManager(FeatureManager featureManager)
|
void |
setObjectIdentityRetrievalStrategy(org.acegisecurity.acls.objectidentity.ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)
|
void |
setOverrideAuthorities(org.acegisecurity.GrantedAuthority[] overrideAuthorities)
|
void |
setPlanManager(PlanManager planManager)
|
void |
setSidRetrievalStrategy(org.acegisecurity.acls.sid.SidRetrievalStrategy sidRetrievalStrategy)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.acegisecurity.acls.MutableAclService aclService
Constructor Detail |
---|
public BambooPermissionManagerImpl()
Method Detail |
---|
@Deprecated public boolean hasPermission(org.acegisecurity.Authentication authentication, java.lang.String permission, java.lang.Object object)
hasPermission
in interface BambooPermissionManager
public boolean hasPermission(@NotNull org.acegisecurity.acls.Permission permission, @NotNull java.lang.Object object, @Nullable org.acegisecurity.Authentication authentication)
BambooPermissionManager
hasPermission
in interface BambooPermissionManager
permission
- the permission to check forobject
- the domain object on which the permission check will be madeauthentication
- the authentication/principal whose secury identities will be checked for the permission
protected org.acegisecurity.acls.Acl getAcl(@NotNull java.lang.Object object)
protected org.acegisecurity.acls.objectidentity.ObjectIdentity createObjectIdentity(@NotNull java.lang.Object object)
@Deprecated public boolean hasPermission(java.lang.String permission, java.lang.Object object)
hasPermission
in interface BambooPermissionManager
public boolean hasPermission(java.lang.String username, java.lang.String permission, java.lang.Object object)
hasPermission
in interface BambooPermissionManager
public boolean hasPermission(@NotNull java.lang.String username, @NotNull org.acegisecurity.acls.Permission permission, @NotNull java.lang.Object object)
hasPermission
in interface BambooPermissionManager
public boolean hasPlanPermission(java.lang.String permission, java.lang.String planKey)
hasPlanPermission
in interface BambooPermissionManager
public boolean hasPlanPermission(@NotNull org.acegisecurity.acls.Permission permission, @NotNull PlanKey planKey)
hasPlanPermission
in interface BambooPermissionManager
public boolean hasGlobalPermission(java.lang.String permission)
hasGlobalPermission
in interface BambooPermissionManager
public boolean hasGlobalPermission(@NotNull org.acegisecurity.acls.Permission permission)
hasGlobalPermission
in interface BambooPermissionManager
public java.util.Collection<org.acegisecurity.acls.Permission> getPermissionsForPlan(@NotNull PlanKey planKey)
getPermissionsForPlan
in interface BambooPermissionManager
public java.util.Collection<org.acegisecurity.acls.Permission> getPermissionsForPlan(java.lang.String planKey)
getPermissionsForPlan
in interface BambooPermissionManager
public boolean isEnableSignup()
isEnableSignup
in interface BambooPermissionManager
@NotNull public java.util.Collection<java.lang.String> getAdminGroups()
BambooPermissionManager
getAdminGroups
in interface BambooPermissionManager
public boolean isAdmin(java.lang.String username)
BambooPermissionManager
isAdmin
in interface BambooPermissionManager
username
- the user
public boolean isSystemAdmin(java.lang.String username)
BambooPermissionManager
isSystemAdmin
in interface BambooPermissionManager
username
- the user
public void setAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager)
public void setAclService(org.acegisecurity.acls.MutableAclService aclService)
public void setSidRetrievalStrategy(org.acegisecurity.acls.sid.SidRetrievalStrategy sidRetrievalStrategy)
public void setPlanManager(PlanManager planManager)
public void setOverrideAuthorities(org.acegisecurity.GrantedAuthority[] overrideAuthorities)
public void setBambooUserManager(BambooUserManager bambooUserManager)
public void setObjectIdentityRetrievalStrategy(org.acegisecurity.acls.objectidentity.ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)
public void setFeatureManager(FeatureManager featureManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |