Class ServiceAccountAuthority
java.lang.Object
org.alfresco.repo.security.permissions.dynamic.ServiceAccountAuthority
- All Implemented Interfaces:
DynamicAuthority,org.springframework.beans.factory.InitializingBean
public class ServiceAccountAuthority
extends Object
implements DynamicAuthority, org.springframework.beans.factory.InitializingBean
This class represents a dynamic authority for service accounts in the system.
- Author:
- Jamal Kaabi-Mofrad
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIf this authority is granted this method provides the string representation of the granted authority.booleanhasAuthority(NodeRef nodeRef, String userName) Is this authority granted to the given user for this node ref?For what permission checks is this dynamic authority required?voidsetAuthority(String authority) voidsetServiceAccountRegistry(ServiceAccountRegistry serviceAccountRegistry)
-
Constructor Details
-
ServiceAccountAuthority
public ServiceAccountAuthority()
-
-
Method Details
-
setAuthority
-
setServiceAccountRegistry
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
hasAuthority
Description copied from interface:DynamicAuthorityIs this authority granted to the given user for this node ref?- Specified by:
hasAuthorityin interfaceDynamicAuthority- Parameters:
nodeRef- NodeRefuserName- String- Returns:
- true if the current user has the authority
-
getAuthority
Description copied from interface:DynamicAuthorityIf this authority is granted this method provides the string representation of the granted authority.- Specified by:
getAuthorityin interfaceDynamicAuthority- Returns:
- the authority taht may be assigned
-
requiredFor
Description copied from interface:DynamicAuthorityFor what permission checks is this dynamic authority required? If null, it is required for all checks.- Specified by:
requiredForin interfaceDynamicAuthority- Returns:
- the set of permissions for which this dynamic authority should be evaluated
-