Class GroupModel
- java.lang.Object
-
- com.composum.sling.core.usermanagement.model.AuthorizableModel
-
- com.composum.sling.core.usermanagement.model.GroupModel
-
- All Implemented Interfaces:
Serializable
,Comparable<AuthorizableModel>
public class GroupModel extends AuthorizableModel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
declaredMembers
protected Set<String>
members
-
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 GroupModel(Authorizables.Context context, @NotNull GroupWrapper jcrGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Collection<GroupModel>
getDeclaredGroups()
@NotNull Set<String>
getDeclaredMembers()
@NotNull Collection<UserModel>
getDeclaredUsers()
@NotNull Collection<GroupModel>
getGroups()
@NotNull Set<String>
getMembers()
protected int
getRank()
@NotNull Collection<UserModel>
getUsers()
boolean
isGroup()
protected void
toJsonData(com.google.gson.stream.JsonWriter writer)
-
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, getTypeIcon, getUsers, hashCode, stripIDs, toJson
-
-
-
-
Constructor Detail
-
GroupModel
public GroupModel(@NotNull Authorizables.Context context, @NotNull @NotNull GroupWrapper jcrGroup) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
-
Method Detail
-
getRank
protected int getRank()
- Specified by:
getRank
in classAuthorizableModel
-
isGroup
public boolean isGroup()
- Specified by:
isGroup
in classAuthorizableModel
-
getUsers
@NotNull public @NotNull Collection<UserModel> getUsers() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getDeclaredUsers
@NotNull public @NotNull Collection<UserModel> getDeclaredUsers() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getGroups
@NotNull public @NotNull Collection<GroupModel> getGroups() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getDeclaredGroups
@NotNull public @NotNull Collection<GroupModel> getDeclaredGroups() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
toJsonData
protected void toJsonData(com.google.gson.stream.JsonWriter writer) throws IOException
- Overrides:
toJsonData
in classAuthorizableModel
- Throws:
IOException
-
-