Package com.day.cq.security
Interface Authorizable
- 
- All Superinterfaces:
 Adaptable
public interface Authorizable extends Adaptable
Deprecated.cq 5.5 Use org.apache.jackrabbit.api.security.user.Authorizable instead.Base Class for Objects which act on the Repository. This can beUsers, eg. the authenticated subject, orGroupsof Users. The Authorizable is related to aSessionvia theUser-ID.
Allow to adapt the Authorizable to Other resources like its Home, Preferences etc.- See Also:
 Adaptable
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_DESCRIPTIONDeprecated.no longer stored in the authorizable properties but only in the profilestatic java.lang.StringPROPERTY_EMAILDeprecated.no longer stored in the authorizable properties but only in the profilestatic java.lang.StringPROPERTY_FIRST_NAMEDeprecated.no longer stored in the authorizable properties but only in the profilestatic java.lang.StringPROPERTY_IDDeprecated.UserID is not stored as separate property any more.static java.lang.StringPROPERTY_IMPERSONATORSDeprecated.ConstantPROPERTY_IMPERSONATORS="rep:impersonators"static java.lang.StringPROPERTY_LAST_NAMEDeprecated.no longer stored in the authorizable properties but only in the profilestatic java.lang.StringPROPERTY_NAMEDeprecated.no longer stored in the authorizable properties but only in the profilestatic java.lang.StringPROPERTY_PASSWORDDeprecated.ConstantPROPERTY_PASSWORD="rep:password"static java.lang.StringPROPERTY_PRINCIPALDeprecated.ConstantPROPERTY_PRINCIPAL="rep:principalName" 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetHomePath()Deprecated.getHomePath.java.lang.StringgetID()Deprecated.The ID is a unique identifier within theUserManagerthis User has been acquired from.
The following must be true:java.lang.StringgetName()Deprecated.A human readable Name.java.security.PrincipalgetPrincipal()Deprecated.getPrincipal.PrivilegegetPrivilege(java.lang.String privilege)Deprecated.CQ 5.5java.util.Collection<Privilege>getPrivileges()Deprecated.CQ 5.5ProfilegetProfile()Deprecated.Default profile for this Authorizablejava.lang.StringgetProperty(java.lang.String name)Deprecated.Retrieve the property value with the given name.java.util.Iterator<java.lang.String>getPropertyNames()Deprecated.Returns the names of properties present withthisAuthorizable.voidgrantPrivilege(java.lang.String privilege)Deprecated.CQ 5.5booleanhasPermission(java.lang.String privilege)Deprecated.CQ 5.5booleanhasPermissionOn(java.lang.String privilege, java.lang.String resourcePath)Deprecated.CQ 5.5booleanisUser()Deprecated.If an Authorizable is aUseraccording this test-method a cast toUser ClassMUST be possible.java.util.Iterator<Group>memberOf()Deprecated.The Groups a Authorizable is member of.
Transitive membership is not resolved.voidremove()Deprecated.delete this AuthorizablebooleanremoveProperty(java.lang.String name)Deprecated.Removes the property with the given name.voidrevokePrivilege(java.lang.String privilege)Deprecated.CQ 5.5voidsetProperty(java.lang.String name, java.lang.String value)Deprecated.Set an arbitrary property to thisAuthorizable. 
 - 
 
- 
- 
Field Detail
- 
PROPERTY_PRINCIPAL
static final java.lang.String PROPERTY_PRINCIPAL
Deprecated.ConstantPROPERTY_PRINCIPAL="rep:principalName"- See Also:
 - Constant Field Values
 
 
- 
PROPERTY_ID
@Deprecated static final java.lang.String PROPERTY_ID
Deprecated.UserID is not stored as separate property any more.- See Also:
 - Constant Field Values
 
 
- 
PROPERTY_PASSWORD
static final java.lang.String PROPERTY_PASSWORD
Deprecated.ConstantPROPERTY_PASSWORD="rep:password"- See Also:
 - Constant Field Values
 
 
- 
PROPERTY_IMPERSONATORS
static final java.lang.String PROPERTY_IMPERSONATORS
Deprecated.ConstantPROPERTY_IMPERSONATORS="rep:impersonators"- See Also:
 - Constant Field Values
 
 
- 
PROPERTY_NAME
@Deprecated static final java.lang.String PROPERTY_NAME
Deprecated.no longer stored in the authorizable properties but only in the profile- See Also:
 - Constant Field Values
 
 
- 
PROPERTY_DESCRIPTION
@Deprecated static final java.lang.String PROPERTY_DESCRIPTION
Deprecated.no longer stored in the authorizable properties but only in the profile- See Also:
 - Constant Field Values
 
 
- 
PROPERTY_EMAIL
@Deprecated static final java.lang.String PROPERTY_EMAIL
Deprecated.no longer stored in the authorizable properties but only in the profile- See Also:
 - Constant Field Values
 
 
- 
PROPERTY_FIRST_NAME
@Deprecated static final java.lang.String PROPERTY_FIRST_NAME
Deprecated.no longer stored in the authorizable properties but only in the profile- See Also:
 - Constant Field Values
 
 
- 
PROPERTY_LAST_NAME
@Deprecated static final java.lang.String PROPERTY_LAST_NAME
Deprecated.no longer stored in the authorizable properties but only in the profile- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
isUser
boolean isUser()
Deprecated.If an Authorizable is aUseraccording this test-method a cast toUser ClassMUST be possible.- Returns:
 - true if the Authorizable is a User
 - See Also:
 User
 
- 
getID
java.lang.String getID()
Deprecated.The ID is a unique identifier within theUserManagerthis User has been acquired from.
The following must be true:String id = "userId" User u = userManger.get(id); u.extractID().equals(id);
- Returns:
 - the ID of this User.
 - See Also:
 UserManager.get(String)
 
- 
getName
java.lang.String getName()
Deprecated.A human readable Name. E.g. Implementations may return the full name of a User- Returns:
 - full name of this authorizable
 
 
- 
getPrincipal
java.security.Principal getPrincipal()
Deprecated.getPrincipal.
- Returns:
 - this Authorizable holds, if authenticated
 
 
- 
getPropertyNames
java.util.Iterator<java.lang.String> getPropertyNames()
Deprecated.Returns the names of properties present withthisAuthorizable.- Returns:
 - names of properties.
 - See Also:
 getProperty(String)
 
- 
getProperty
java.lang.String getProperty(java.lang.String name)
Deprecated.Retrieve the property value with the given name.- Parameters:
 name- of the Property- Returns:
 - Property or 
nullif property does not exist or does not have a value 
 
- 
setProperty
void setProperty(java.lang.String name, java.lang.String value) throws javax.jcr.AccessDeniedExceptionDeprecated.Set an arbitrary property to thisAuthorizable.- Parameters:
 name- name of the Property to setvalue- to set- Throws:
 javax.jcr.AccessDeniedException- the editing session isn't allowed to write.
 
- 
removeProperty
boolean removeProperty(java.lang.String name) throws javax.jcr.AccessDeniedExceptionDeprecated.Removes the property with the given name.- Parameters:
 name- of the Property to remove- Returns:
 - true If the property with the specified name was successfully removed; false if no such property was present.
 - Throws:
 javax.jcr.AccessDeniedException- the editing session isn't allowed to write.
 
- 
memberOf
java.util.Iterator<Group> memberOf()
Deprecated.The Groups a Authorizable is member of.
Transitive membership is not resolved. Thus the following is true: if Authorizable A is member of Group G g.members() contains A.- Returns:
 - Iterator containing all Groups the Authorizable is direct member of
 
 
- 
getHomePath
java.lang.String getHomePath()
Deprecated.getHomePath.
- Returns:
 - an absolute Path, this User may use as Home-Directory
 
 
- 
hasPermission
boolean hasPermission(java.lang.String privilege)
Deprecated.CQ 5.5hasPermission.
- Parameters:
 privilege- identifier of the privilege (eg. workflow/privilege/start)- Returns:
 - true if the privilege is set. false if not or
         if 
Privilege.isPathDependent()privilege is pathDependant} - See Also:
 grantPrivilege(String)
 
- 
hasPermissionOn
boolean hasPermissionOn(java.lang.String privilege, java.lang.String resourcePath)Deprecated.CQ 5.5hasPermissionOn.
- Parameters:
 privilege- identifier of the privilege (eg. workflow/privilege/start)resourcePath- path of the resource- Returns:
 - true if the privilege is set.
         if 
Privilege.isPathDependent()privilege is pathDependant}. it has additionaly to grant on the given resource-path - See Also:
 grantPrivilege(String),Privilege.isGranted(String),Privilege.isGranted(String)
 
- 
getPrivilege
Privilege getPrivilege(java.lang.String privilege) throws javax.jcr.AccessDeniedException
Deprecated.CQ 5.5getPrivilege.
- Parameters:
 privilege- identifier of the privilege (eg. workflow/privilege/start)- Returns:
 - Privilege or null if none set
 - Throws:
 javax.jcr.AccessDeniedException- in case the session that acquired this authorizable is not allowed read Privileges- See Also:
 grantPrivilege(String)
 
- 
grantPrivilege
void grantPrivilege(java.lang.String privilege) throws javax.jcr.AccessDeniedExceptionDeprecated.CQ 5.5grantPrivilege.
- Parameters:
 privilege- identifier to grant the current Authorizable- Throws:
 javax.jcr.AccessDeniedException- in case the session that acquired this authorizable is not allowed grant Privileges
 
- 
revokePrivilege
void revokePrivilege(java.lang.String privilege) throws javax.jcr.AccessDeniedExceptionDeprecated.CQ 5.5revokePrivilege.
- Parameters:
 privilege- identifier of the privilege to remove from this Authorizable- Throws:
 javax.jcr.AccessDeniedException- in case the session that acquired this authorizable is not allowed revoke Privileges
 
- 
getPrivileges
java.util.Collection<Privilege> getPrivileges() throws javax.jcr.AccessDeniedException
Deprecated.CQ 5.5getPrivileges.
- Returns:
 - collection of Privileges granted the current Authorizable this includes only the privileges granted explicitly and not those granted by group-membership.
 - Throws:
 javax.jcr.AccessDeniedException- in case the session that acquired this authorizable is not allowed read Privileges
 
- 
getProfile
Profile getProfile()
Deprecated.Default profile for this Authorizable- Returns:
 - or 
nullif there is no Profile for this Authorizable - See Also:
 ProfileManager.getProfile(String, javax.jcr.Session)
 
- 
remove
void remove() throws javax.jcr.AccessDeniedExceptionDeprecated.delete this Authorizable- Throws:
 javax.jcr.AccessDeniedException- in case the session that acquired this authorizable is not allowed to remove this
 
 - 
 
 -