Class AuthorizablesMap
- java.lang.Object
-
- com.composum.sling.core.usermanagement.model.AuthorizablesView
-
- com.composum.sling.core.usermanagement.model.AuthorizablesMap
-
- Direct Known Subclasses:
AuthorizablesGraph,AuthorizablesPaths,AuthorizablesRefs
public abstract class AuthorizablesMap extends AuthorizablesView
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAuthorizablesMap.Relation-
Nested classes/interfaces inherited from class com.composum.sling.core.usermanagement.model.AuthorizablesView
AuthorizablesView.NodeUrlBuilder, AuthorizablesView.PathUrlBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<AuthorizablesMap.Relation>sourceRelationsprotected Set<AuthorizablesMap.Relation>targetRelations-
Fields inherited from class com.composum.sling.core.usermanagement.model.AuthorizablesView
context, index, indexes, nodes, singleFocus
-
-
Constructor Summary
Constructors Constructor Description AuthorizablesMap(Authorizables.Context context, @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable String nameQueryPattern, Authorizables.Filter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddSourceRelations(@Nullable Class<? extends AuthorizableWrapper> selector, Authorizables.Filter filter, @NotNull AuthorizableModel target, @NotNull Set<String> done)protected voidaddTargetRelations(@NotNull AuthorizableModel source, @Nullable Set<String> done)protected voidextendedScan(@Nullable Class<? extends AuthorizableWrapper> selector, Authorizables.Filter filter, @Nullable Set<String> singleFocusDone)protected booleanisSourceOfTarget(AuthorizableWrapper source, String targetId)protected voidscanRelations(@Nullable Class<? extends AuthorizableWrapper> selector, Authorizables.Filter filter)voidtoJson(@NotNull com.google.gson.stream.JsonWriter writer)-
Methods inherited from class com.composum.sling.core.usermanagement.model.AuthorizablesView
addNode, createNode, getAuthorizableModels, getNodeClass, getSingleFocus
-
-
-
-
Field Detail
-
targetRelations
protected final Set<AuthorizablesMap.Relation> targetRelations
-
sourceRelations
protected final Set<AuthorizablesMap.Relation> sourceRelations
-
-
Constructor Detail
-
AuthorizablesMap
public AuthorizablesMap(@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
-
scanRelations
protected void scanRelations(@Nullable @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable Authorizables.Filter filter) throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
extendedScan
protected void extendedScan(@Nullable @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable Authorizables.Filter filter, @Nullable @Nullable Set<String> singleFocusDone) throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
addTargetRelations
protected void addTargetRelations(@NotNull @NotNull AuthorizableModel source, @Nullable @Nullable Set<String> done) throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
addSourceRelations
protected void addSourceRelations(@Nullable @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable Authorizables.Filter filter, @NotNull @NotNull AuthorizableModel target, @NotNull @NotNull Set<String> done) throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
isSourceOfTarget
protected boolean isSourceOfTarget(AuthorizableWrapper source, String targetId) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
toJson
public void toJson(@NotNull @NotNull com.google.gson.stream.JsonWriter writer) throws IOException- Overrides:
toJsonin classAuthorizablesView- Throws:
IOException
-
-