public abstract class AuthorizableModel extends Object implements Serializable, Comparable<AuthorizableModel>
| Modifier and Type | Field and Description |
|---|---|
protected Authorizables.Context |
context |
protected Set<String> |
declaredMemberOf |
protected String |
id |
protected Set<String> |
memberOf |
protected String |
path |
protected String |
principalName |
protected String |
type |
static String |
TYPE_GROUP |
static String |
TYPE_SERVICE |
static Map<String,String> |
TYPE_TO_ICON |
static String |
TYPE_USER |
| Modifier | Constructor and Description |
|---|---|
protected |
AuthorizableModel(Authorizables.Context context,
@NotNull org.apache.jackrabbit.api.security.user.Authorizable authorizable) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AuthorizableModel other) |
boolean |
equals(Object other) |
@NotNull Set<String> |
getDeclaredMemberOf() |
@NotNull Collection<GroupModel> |
getDeclaredModelOf() |
static @NotNull Collection<GroupModel> |
getGroups(Authorizables.Context context,
@NotNull Set<String> idSet) |
@NotNull String |
getId() |
protected String |
getKey() |
@NotNull Set<String> |
getMemberOf() |
@NotNull Collection<GroupModel> |
getModelOf() |
static @NotNull Collection<AuthorizableModel> |
getModels(Authorizables.Context context,
@NotNull Set<String> idSet) |
@NotNull String |
getPath() |
@NotNull String |
getPrincipalName() |
protected abstract int |
getRank() |
@NotNull String |
getType() |
protected static String |
getType(@NotNull org.apache.jackrabbit.api.security.user.Authorizable authorizable) |
@NotNull String |
getTypeIcon() |
static @NotNull Collection<UserModel> |
getUsers(Authorizables.Context context,
@NotNull Set<String> idSet) |
int |
hashCode() |
abstract boolean |
isGroup() |
protected static @NotNull Set<String> |
stripIDs(@NotNull Iterator<? extends org.apache.jackrabbit.api.security.user.Authorizable> authorizableIterator) |
void |
toJson(com.google.gson.stream.JsonWriter writer) |
protected void |
toJsonData(com.google.gson.stream.JsonWriter writer) |
public static final String TYPE_GROUP
public static final String TYPE_USER
public static final String TYPE_SERVICE
protected final String type
protected final String id
protected final String path
protected final String principalName
protected final Authorizables.Context context
protected AuthorizableModel(@NotNull
Authorizables.Context context,
@NotNull
@NotNull org.apache.jackrabbit.api.security.user.Authorizable authorizable)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic abstract boolean isGroup()
public void toJson(com.google.gson.stream.JsonWriter writer)
throws IOException
IOExceptionprotected void toJsonData(com.google.gson.stream.JsonWriter writer)
throws IOException
IOException@NotNull public @NotNull String getType()
@NotNull public @NotNull String getTypeIcon()
@NotNull public @NotNull String getId()
@NotNull public @NotNull String getPath()
@NotNull public @NotNull String getPrincipalName()
@NotNull public @NotNull Collection<GroupModel> getModelOf() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@NotNull public @NotNull Collection<GroupModel> getDeclaredModelOf() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic int compareTo(AuthorizableModel other)
compareTo in interface Comparable<AuthorizableModel>protected String getKey()
protected abstract int getRank()
@NotNull public static @NotNull Collection<UserModel> getUsers(@NotNull Authorizables.Context context, @NotNull @NotNull Set<String> idSet) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@NotNull public static @NotNull Collection<GroupModel> getGroups(@NotNull Authorizables.Context context, @NotNull @NotNull Set<String> idSet) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@NotNull public static @NotNull Collection<AuthorizableModel> getModels(@NotNull Authorizables.Context context, @NotNull @NotNull Set<String> idSet) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@NotNull protected static @NotNull Set<String> stripIDs(@NotNull @NotNull Iterator<? extends org.apache.jackrabbit.api.security.user.Authorizable> authorizableIterator) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected static String getType(@NotNull @NotNull org.apache.jackrabbit.api.security.user.Authorizable authorizable)
Copyright © 2021. All rights reserved.