Class ServiceUserModel
- java.lang.Object
-
- com.composum.sling.core.usermanagement.model.AuthorizableModel
-
- com.composum.sling.core.usermanagement.model.UserModel
-
- com.composum.sling.core.usermanagement.model.ServiceUserModel
-
- All Implemented Interfaces:
Serializable
,Comparable<AuthorizableModel>
public class ServiceUserModel extends UserModel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
serviceInfo
protected String
serviceName
-
Fields inherited from class com.composum.sling.core.usermanagement.model.UserModel
admin, disabled, disabledReason, systemUser, values
-
Fields inherited from class com.composum.sling.core.usermanagement.model.AuthorizableModel
context, declaredMemberOf, id, memberOf, path, principalName, type, TYPE_GROUP, TYPE_SERVICE, TYPE_TO_ICON, TYPE_USER
-
-
Constructor Summary
Constructors Constructor Description ServiceUserModel(Authorizables.Context context, @NotNull ServiceUserWrapper service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Collection<AuthorizableModel>
getDeclaredUserOf()
protected int
getRank()
String
getServiceInfo()
String
getServiceName()
@NotNull Collection<AuthorizableModel>
getUserOf()
boolean
isGroup()
boolean
isServiceUser()
-
Methods inherited from class com.composum.sling.core.usermanagement.model.UserModel
getDisabledReason, getServiceUsers, getTypeIcon, isAdmin, isDisabled, isSystemUser, toJsonData
-
Methods inherited from class com.composum.sling.core.usermanagement.model.AuthorizableModel
compareTo, equals, getDeclaredMemberOf, getDeclaredModelOf, getGroups, getId, getKey, getMemberOf, getModelOf, getModels, getPath, getPrincipalName, getType, getType, getUsers, hashCode, stripIDs, toJson
-
-
-
-
Constructor Detail
-
ServiceUserModel
public ServiceUserModel(@NotNull Authorizables.Context context, @NotNull @NotNull ServiceUserWrapper service) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
-
Method Detail
-
getServiceName
public String getServiceName()
-
getServiceInfo
public String getServiceInfo()
-
isServiceUser
public boolean isServiceUser()
- Overrides:
isServiceUser
in classUserModel
-
getUserOf
@NotNull public @NotNull Collection<AuthorizableModel> getUserOf() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getDeclaredUserOf
@NotNull public @NotNull Collection<AuthorizableModel> getDeclaredUserOf() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
-