public interface Authorizable extends Adaptable
Users, eg. the authenticated
subject, or Groups of Users.
The Authorizable is related to a Session via
the User-ID.Adaptable| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_DESCRIPTION
Deprecated.
no longer stored in the authorizable properties but only in the profile
|
static String |
PROPERTY_EMAIL
Deprecated.
no longer stored in the authorizable properties but only in the profile
|
static String |
PROPERTY_FIRST_NAME
Deprecated.
no longer stored in the authorizable properties but only in the profile
|
static String |
PROPERTY_ID
Deprecated.
UserID is not stored as separate property any more.
|
static String |
PROPERTY_IMPERSONATORS
Deprecated.
|
static String |
PROPERTY_LAST_NAME
Deprecated.
no longer stored in the authorizable properties but only in the profile
|
static String |
PROPERTY_NAME
Deprecated.
no longer stored in the authorizable properties but only in the profile
|
static String |
PROPERTY_PASSWORD
Deprecated.
|
static String |
PROPERTY_PRINCIPAL
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHomePath()
Deprecated.
|
String |
getID()
Deprecated.
The ID is a unique identifier within the
UserManager this User has been
acquired from.The following must be true: |
String |
getName()
Deprecated.
A human readable Name.
|
Principal |
getPrincipal()
Deprecated.
|
Privilege |
getPrivilege(String privilege)
Deprecated.
CQ 5.5
|
Collection<Privilege> |
getPrivileges()
Deprecated.
CQ 5.5
|
Profile |
getProfile()
Deprecated.
Default profile for this Authorizable
|
String |
getProperty(String name)
Deprecated.
Retrieve the property value with the given name.
|
Iterator<String> |
getPropertyNames()
Deprecated.
Returns the names of properties present with
this Authorizable. |
void |
grantPrivilege(String privilege)
Deprecated.
CQ 5.5
|
boolean |
hasPermission(String privilege)
Deprecated.
CQ 5.5
|
boolean |
hasPermissionOn(String privilege,
String resourcePath)
Deprecated.
CQ 5.5
|
boolean |
isUser()
Deprecated.
If an Authorizable is a
User according
this test-method a cast to User Class
MUST be possible. |
Iterator<Group> |
memberOf()
Deprecated.
The Groups a Authorizable is member of.
Transitive membership is not resolved. |
void |
remove()
Deprecated.
delete this Authorizable
|
boolean |
removeProperty(String name)
Deprecated.
Removes the property with the given name.
|
void |
revokePrivilege(String privilege)
Deprecated.
CQ 5.5
|
void |
setProperty(String name,
String value)
Deprecated.
Set an arbitrary property to this
Authorizable. |
static final String PROPERTY_PRINCIPAL
@Deprecated static final String PROPERTY_ID
static final String PROPERTY_PASSWORD
static final String PROPERTY_IMPERSONATORS
@Deprecated static final String PROPERTY_NAME
@Deprecated static final String PROPERTY_DESCRIPTION
@Deprecated static final String PROPERTY_EMAIL
@Deprecated static final String PROPERTY_FIRST_NAME
@Deprecated static final String PROPERTY_LAST_NAME
boolean isUser()
User according
this test-method a cast to User Class
MUST be possible.UserString getID()
UserManager this User has been
acquired from.String id = "userId" User u = userManger.get(id); u.extractID().equals(id);
UserManager.get(String)String getName()
Principal getPrincipal()
Iterator<String> getPropertyNames()
this Authorizable.getProperty(String)String getProperty(String name)
name - of the Propertynullif property does not exist or does not have a valuevoid setProperty(String name, String value) throws AccessDeniedException
Authorizable.name - name of the Property to setvalue - to setAccessDeniedException - the editing session isn't allowed to write.boolean removeProperty(String name) throws AccessDeniedException
name - of the Property to removeAccessDeniedException - the editing session isn't allowed to write.Iterator<Group> memberOf()
String getHomePath()
boolean hasPermission(String privilege)
privilege - identifier of the privilege (eg. workflow/privilege/start)Privilege.isPathDependent() privilege is pathDependant}grantPrivilege(String)boolean hasPermissionOn(String privilege, String resourcePath)
privilege - identifier of the privilege (eg. workflow/privilege/start)resourcePath - path of the resourcePrivilege.isPathDependent() privilege is pathDependant}.
it has additionaly to grant on the given resource-pathgrantPrivilege(String),
Privilege.isGranted(String)Privilege getPrivilege(String privilege) throws AccessDeniedException
privilege - identifier of the privilege (eg. workflow/privilege/start)AccessDeniedException - in case the session that acquired
this authorizable is not allowed read PrivilegesgrantPrivilege(String)void grantPrivilege(String privilege) throws AccessDeniedException
privilege - identifier to grant the current AuthorizableAccessDeniedException - in case the session that acquired
this authorizable is not allowed grant Privilegesvoid revokePrivilege(String privilege) throws AccessDeniedException
privilege - identifier of the privilege to remove from this AuthorizableAccessDeniedException - in case the session that acquired
this authorizable is not allowed revoke PrivilegesCollection<Privilege> getPrivileges() throws AccessDeniedException
AccessDeniedException - in case the session that acquired
this authorizable is not allowed read PrivilegesProfile getProfile()
null if there is no Profile for this AuthorizableProfileManager.getProfile(String, javax.jcr.Session)void remove()
throws AccessDeniedException
AccessDeniedException - in case the session that acquired
this authorizable is not allowed to remove thisCopyright © 2010 - 2020 Adobe. All Rights Reserved