Class ServiceUserWrapper
- java.lang.Object
-
- com.composum.sling.core.usermanagement.service.AuthorizableWrapper
-
- com.composum.sling.core.usermanagement.service.ServiceUserWrapper
-
public class ServiceUserWrapper extends AuthorizableWrapper
an Authorizable facade to represent a service user (bundle or subservice) as a member of an Authorizable set
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classServiceUserWrapper.ServicePrincipal
-
Field Summary
Fields Modifier and Type Field Description protected Stringidprotected org.apache.sling.serviceusermapping.Mappingmappingprotected Stringpathprotected Principalprincipalstatic StringSERVICE_USER_ROOTprotected StringserviceInfoprotected StringserviceName
-
Constructor Summary
Constructors Constructor Description ServiceUserWrapper(org.apache.sling.serviceusermapping.Mapping mapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<GroupWrapper>declaredMemberOf()StringgetID()StringgetPath()PrincipalgetPrincipal()javax.jcr.Value[]getProperty(String relPath)Iterator<String>getPropertyNames()Iterator<String>getPropertyNames(String relPath)StringgetServiceInfo()StringgetServiceName()booleanhasProperty(String relPath)voidinitialize(Authorizables.Context context)to avoid a possible endless loop during construction the relations are set up in a separate stepIterator<GroupWrapper>memberOf()voidremove()booleanremoveProperty(String relPath)voidsetProperty(String relPath, javax.jcr.Value value)voidsetProperty(String relPath, javax.jcr.Value[] value)-
Methods inherited from class com.composum.sling.core.usermanagement.service.AuthorizableWrapper
getAuthorizable, getAuthorizableWrapperIterator, getGroupWrapperIterator, isGroup
-
-
-
-
Field Detail
-
SERVICE_USER_ROOT
public static final String SERVICE_USER_ROOT
- See Also:
- Constant Field Values
-
serviceName
protected final String serviceName
-
serviceInfo
protected final String serviceInfo
-
id
protected final String id
-
path
protected final String path
-
mapping
protected final org.apache.sling.serviceusermapping.Mapping mapping
-
principal
protected final Principal principal
-
-
Method Detail
-
initialize
public void initialize(Authorizables.Context context) throws javax.jcr.RepositoryException
to avoid a possible endless loop during construction the relations are set up in a separate step- Throws:
javax.jcr.RepositoryException
-
getServiceName
public String getServiceName()
-
getServiceInfo
public String getServiceInfo()
-
getID
public String getID()
- Overrides:
getIDin classAuthorizableWrapper
-
getPath
public String getPath()
- Overrides:
getPathin classAuthorizableWrapper
-
getPrincipal
public Principal getPrincipal()
- Overrides:
getPrincipalin classAuthorizableWrapper
-
declaredMemberOf
public Iterator<GroupWrapper> declaredMemberOf()
- Overrides:
declaredMemberOfin classAuthorizableWrapper
-
memberOf
public Iterator<GroupWrapper> memberOf()
- Overrides:
memberOfin classAuthorizableWrapper
-
remove
public void remove() throws javax.jcr.RepositoryException- Overrides:
removein classAuthorizableWrapper- Throws:
javax.jcr.RepositoryException
-
getPropertyNames
public Iterator<String> getPropertyNames()
- Overrides:
getPropertyNamesin classAuthorizableWrapper
-
getPropertyNames
public Iterator<String> getPropertyNames(String relPath)
- Overrides:
getPropertyNamesin classAuthorizableWrapper
-
hasProperty
public boolean hasProperty(String relPath)
- Overrides:
hasPropertyin classAuthorizableWrapper
-
setProperty
public void setProperty(String relPath, javax.jcr.Value value)
- Overrides:
setPropertyin classAuthorizableWrapper
-
setProperty
public void setProperty(String relPath, javax.jcr.Value[] value)
- Overrides:
setPropertyin classAuthorizableWrapper
-
getProperty
public javax.jcr.Value[] getProperty(String relPath)
- Overrides:
getPropertyin classAuthorizableWrapper
-
removeProperty
public boolean removeProperty(String relPath)
- Overrides:
removePropertyin classAuthorizableWrapper
-
-