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 interface
AuthorizablesView.NodeUrlBuilder
static interface
AuthorizablesView.PathUrlBuilder
-
Field Summary
Fields Modifier and Type Field Description protected Authorizables.Context
context
protected int
index
protected Map<String,Integer>
indexes
protected Map<String,AuthorizableModel>
nodes
protected AuthorizableModel
singleFocus
-
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 AuthorizableModel
addNode(@Nullable AuthorizableWrapper authorizable)
protected @Nullable AuthorizableModel
createNode(@NotNull AuthorizableWrapper authorizable)
Collection<AuthorizableModel>
getAuthorizableModels()
protected String
getNodeClass(AuthorizableModel node)
AuthorizableModel
getSingleFocus()
void
toJson(@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)
-
-