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 java.lang.String |
PROPERTY_DESCRIPTION
Deprecated.
no longer stored in the authorizable properties but only in the profile
|
static java.lang.String |
PROPERTY_EMAIL
Deprecated.
no longer stored in the authorizable properties but only in the profile
|
static java.lang.String |
PROPERTY_FIRST_NAME
Deprecated.
no longer stored in the authorizable properties but only in the profile
|
static java.lang.String |
PROPERTY_ID
Deprecated.
UserID is not stored as separate property any more.
|
static java.lang.String |
PROPERTY_IMPERSONATORS
Deprecated.
|
static java.lang.String |
PROPERTY_LAST_NAME
Deprecated.
no longer stored in the authorizable properties but only in the profile
|
static java.lang.String |
PROPERTY_NAME
Deprecated.
no longer stored in the authorizable properties but only in the profile
|
static java.lang.String |
PROPERTY_PASSWORD
Deprecated.
|
static java.lang.String |
PROPERTY_PRINCIPAL
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHomePath()
Deprecated.
|
java.lang.String |
getID()
Deprecated.
The ID is a unique identifier within the
UserManager this User has been
acquired from.The following must be true: |
java.lang.String |
getName()
Deprecated.
A human readable Name.
|
java.security.Principal |
getPrincipal()
Deprecated.
|
Privilege |
getPrivilege(java.lang.String privilege)
Deprecated.
CQ 5.5
|
java.util.Collection<Privilege> |
getPrivileges()
Deprecated.
CQ 5.5
|
Profile |
getProfile()
Deprecated.
Default profile for this Authorizable
|
java.lang.String |
getProperty(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 with
this Authorizable. |
void |
grantPrivilege(java.lang.String privilege)
Deprecated.
CQ 5.5
|
boolean |
hasPermission(java.lang.String privilege)
Deprecated.
CQ 5.5
|
boolean |
hasPermissionOn(java.lang.String privilege,
java.lang.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. |
java.util.Iterator<Group> |
memberOf()
Deprecated.
The Groups a Authorizable is member of.
Transitive membership is not resolved. |
void |
remove()
Deprecated.
delete this Authorizable
|
boolean |
removeProperty(java.lang.String name)
Deprecated.
Removes the property with the given name.
|
void |
revokePrivilege(java.lang.String privilege)
Deprecated.
CQ 5.5
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Deprecated.
Set an arbitrary property to this
Authorizable . |
static final java.lang.String PROPERTY_PRINCIPAL
@Deprecated static final java.lang.String PROPERTY_ID
static final java.lang.String PROPERTY_PASSWORD
static final java.lang.String PROPERTY_IMPERSONATORS
@Deprecated static final java.lang.String PROPERTY_NAME
@Deprecated static final java.lang.String PROPERTY_DESCRIPTION
@Deprecated static final java.lang.String PROPERTY_EMAIL
@Deprecated static final java.lang.String PROPERTY_FIRST_NAME
@Deprecated static final java.lang.String PROPERTY_LAST_NAME
boolean isUser()
User
according
this test-method a cast to User Class
MUST be possible.User
java.lang.String getID()
UserManager
this User has been
acquired from.String id = "userId" User u = userManger.get(id); u.extractID().equals(id);
UserManager.get(String)
java.lang.String getName()
java.security.Principal getPrincipal()
java.util.Iterator<java.lang.String> getPropertyNames()
this
Authorizable.getProperty(String)
java.lang.String getProperty(java.lang.String name)
name
- of the Propertynull
if property does not exist or does not have a valuevoid setProperty(java.lang.String name, java.lang.String value) throws AccessDeniedException
Authorizable
.name
- name of the Property to setvalue
- to setAccessDeniedException
- the editing session isn't allowed to write.boolean removeProperty(java.lang.String name) throws AccessDeniedException
name
- of the Property to removeAccessDeniedException
- the editing session isn't allowed to write.java.util.Iterator<Group> memberOf()
java.lang.String getHomePath()
boolean hasPermission(java.lang.String privilege)
privilege
- identifier of the privilege (eg. workflow/privilege/start)Privilege.isPathDependent()
privilege is pathDependant}grantPrivilege(String)
boolean hasPermissionOn(java.lang.String privilege, java.lang.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(java.lang.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(java.lang.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(java.lang.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 Privilegesjava.util.Collection<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 Authorizablecom.day.cq.security.profile.ProfileManager#getProfile(String, javax.jcr.Session)
void remove() throws AccessDeniedException
AccessDeniedException
- in case the session that acquired
this authorizable is not allowed to remove this"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"