Class AuthorizablesView
- java.lang.Object
-
- com.composum.sling.core.usermanagement.model.AuthorizablesView
-
- Direct Known Subclasses:
AuthorizablesMap,AuthorizablesTree
public class AuthorizablesView extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAuthorizablesView.NodeUrlBuilderstatic interfaceAuthorizablesView.PathUrlBuilder
-
Field Summary
Fields Modifier and Type Field Description protected Authorizables.Contextcontextprotected intindexprotected Map<String,Integer>indexesprotected Map<String,AuthorizableModel>nodesprotected AuthorizableModelsingleFocus
-
Constructor Summary
Constructors Constructor Description AuthorizablesView(Authorizables.Context context, @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable String nameQueryPattern, Authorizables.Filter filter)AuthorizablesView(Authorizables.Context context, @Nullable String selector, @Nullable String nameQueryPattern, @Nullable String pathPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthorizableModeladdNode(@Nullable AuthorizableWrapper authorizable)protected @Nullable AuthorizableModelcreateNode(@NotNull AuthorizableWrapper authorizable)Collection<AuthorizableModel>getAuthorizableModels()protected StringgetNodeClass(AuthorizableModel node)AuthorizableModelgetSingleFocus()voidtoJson(@NotNull com.google.gson.stream.JsonWriter writer)
-
-
-
Field Detail
-
index
protected int index
-
nodes
protected final Map<String,AuthorizableModel> nodes
-
singleFocus
protected final AuthorizableModel singleFocus
-
context
protected final Authorizables.Context context
-
-
Constructor Detail
-
AuthorizablesView
public AuthorizablesView(@NotNull Authorizables.Context context, @Nullable @Nullable String selector, @Nullable @Nullable String nameQueryPattern, @Nullable @Nullable String pathPattern) throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
AuthorizablesView
public AuthorizablesView(@NotNull Authorizables.Context context, @Nullable @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable @Nullable String nameQueryPattern, @Nullable Authorizables.Filter filter) throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
-
Method Detail
-
getSingleFocus
public AuthorizableModel getSingleFocus()
-
getAuthorizableModels
public Collection<AuthorizableModel> getAuthorizableModels()
-
addNode
protected AuthorizableModel addNode(@Nullable @Nullable AuthorizableWrapper authorizable) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
createNode
@Nullable protected @Nullable AuthorizableModel createNode(@NotNull @NotNull AuthorizableWrapper authorizable) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
toJson
public void toJson(@NotNull @NotNull com.google.gson.stream.JsonWriter writer) throws IOException- Throws:
IOException
-
getNodeClass
protected String getNodeClass(AuthorizableModel node)
-
-