public class UserModel extends AuthorizableModel
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
admin |
protected boolean |
disabled |
protected String |
disabledReason |
protected boolean |
systemUser |
protected org.apache.sling.api.resource.ValueMap |
values |
declaredMemberOf, id, memberOf, path, principalName| Constructor and Description |
|---|
UserModel(org.apache.jackrabbit.api.security.user.User jcrUser) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable String |
getDisabledReason() |
boolean |
isAdmin() |
boolean |
isDisabled() |
boolean |
isGroup() |
boolean |
isSystemUser() |
void |
toJson(com.google.gson.stream.JsonWriter writer) |
compareTo, equals, getDeclaredGroupsOf, getDeclaredMemberOf, getGroups, getGroupsOf, getId, getKey, getMemberOf, getPath, getPrincipalName, getUsers, hashCode, stripIDsprotected final org.apache.sling.api.resource.ValueMap values
protected final boolean admin
protected final boolean systemUser
protected final boolean disabled
protected final String disabledReason
public UserModel(org.apache.jackrabbit.api.security.user.User jcrUser)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic boolean isGroup()
isGroup in class AuthorizableModelpublic boolean isAdmin()
public boolean isSystemUser()
public boolean isDisabled()
@Nullable public @Nullable String getDisabledReason()
public void toJson(com.google.gson.stream.JsonWriter writer)
throws IOException
toJson in class AuthorizableModelIOExceptionCopyright © 2021. All rights reserved.