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 class
ServiceUserWrapper.ServicePrincipal
-
Field Summary
Fields Modifier and Type Field Description protected String
id
protected org.apache.sling.serviceusermapping.Mapping
mapping
protected String
path
protected Principal
principal
static String
SERVICE_USER_ROOT
protected String
serviceInfo
protected String
serviceName
-
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()
String
getID()
String
getPath()
Principal
getPrincipal()
javax.jcr.Value[]
getProperty(String relPath)
Iterator<String>
getPropertyNames()
Iterator<String>
getPropertyNames(String relPath)
String
getServiceInfo()
String
getServiceName()
boolean
hasProperty(String relPath)
void
initialize(Authorizables.Context context)
to avoid a possible endless loop during construction the relations are set up in a separate stepIterator<GroupWrapper>
memberOf()
void
remove()
boolean
removeProperty(String relPath)
void
setProperty(String relPath, javax.jcr.Value value)
void
setProperty(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:
getID
in classAuthorizableWrapper
-
getPath
public String getPath()
- Overrides:
getPath
in classAuthorizableWrapper
-
getPrincipal
public Principal getPrincipal()
- Overrides:
getPrincipal
in classAuthorizableWrapper
-
declaredMemberOf
public Iterator<GroupWrapper> declaredMemberOf()
- Overrides:
declaredMemberOf
in classAuthorizableWrapper
-
memberOf
public Iterator<GroupWrapper> memberOf()
- Overrides:
memberOf
in classAuthorizableWrapper
-
remove
public void remove() throws javax.jcr.RepositoryException
- Overrides:
remove
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
getPropertyNames
public Iterator<String> getPropertyNames()
- Overrides:
getPropertyNames
in classAuthorizableWrapper
-
getPropertyNames
public Iterator<String> getPropertyNames(String relPath)
- Overrides:
getPropertyNames
in classAuthorizableWrapper
-
hasProperty
public boolean hasProperty(String relPath)
- Overrides:
hasProperty
in classAuthorizableWrapper
-
setProperty
public void setProperty(String relPath, javax.jcr.Value value)
- Overrides:
setProperty
in classAuthorizableWrapper
-
setProperty
public void setProperty(String relPath, javax.jcr.Value[] value)
- Overrides:
setProperty
in classAuthorizableWrapper
-
getProperty
public javax.jcr.Value[] getProperty(String relPath)
- Overrides:
getProperty
in classAuthorizableWrapper
-
removeProperty
public boolean removeProperty(String relPath)
- Overrides:
removeProperty
in classAuthorizableWrapper
-
-