public abstract class AuthorizableModel extends Object implements Serializable, Comparable<AuthorizableModel>
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
declaredMemberOf |
protected String |
id |
protected Set<String> |
memberOf |
protected String |
path |
protected String |
principalName |
| Modifier | Constructor and Description |
|---|---|
protected |
AuthorizableModel(org.apache.jackrabbit.api.security.user.Authorizable authorizable) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AuthorizableModel other) |
boolean |
equals(Object other) |
@NotNull Collection<GroupModel> |
getDeclaredGroupsOf(@Nullable org.apache.jackrabbit.api.security.user.UserManager userManager) |
@NotNull Set<String> |
getDeclaredMemberOf() |
static @NotNull Collection<GroupModel> |
getGroups(@Nullable org.apache.jackrabbit.api.security.user.UserManager userManager,
@NotNull Set<String> idSet) |
@NotNull Collection<GroupModel> |
getGroupsOf(@Nullable org.apache.jackrabbit.api.security.user.UserManager userManager) |
@NotNull String |
getId() |
protected String |
getKey() |
@NotNull Set<String> |
getMemberOf() |
@NotNull String |
getPath() |
@NotNull String |
getPrincipalName() |
static @NotNull Collection<UserModel> |
getUsers(@Nullable org.apache.jackrabbit.api.security.user.UserManager userManager,
@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) |
abstract void |
toJson(com.google.gson.stream.JsonWriter writer) |
protected final String id
protected final String path
protected final String principalName
protected AuthorizableModel(org.apache.jackrabbit.api.security.user.Authorizable authorizable)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic abstract boolean isGroup()
public abstract void toJson(com.google.gson.stream.JsonWriter writer)
throws IOException
IOException@NotNull public @NotNull String getId()
@NotNull public @NotNull String getPath()
@NotNull public @NotNull String getPrincipalName()
@NotNull public @NotNull Collection<GroupModel> getGroupsOf(@Nullable @Nullable org.apache.jackrabbit.api.security.user.UserManager userManager) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@NotNull public @NotNull Collection<GroupModel> getDeclaredGroupsOf(@Nullable @Nullable org.apache.jackrabbit.api.security.user.UserManager userManager) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@NotNull public static @NotNull Collection<UserModel> getUsers(@Nullable @Nullable org.apache.jackrabbit.api.security.user.UserManager userManager, @NotNull @NotNull Set<String> idSet) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic int compareTo(AuthorizableModel other)
compareTo in interface Comparable<AuthorizableModel>protected String getKey()
@NotNull public static @NotNull Collection<GroupModel> getGroups(@Nullable @Nullable org.apache.jackrabbit.api.security.user.UserManager userManager, @NotNull @NotNull Set<String> idSet) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2021. All rights reserved.