Class AuthorizablesPaths
- java.lang.Object
-
- com.composum.sling.core.usermanagement.model.AuthorizablesView
-
- com.composum.sling.core.usermanagement.model.AuthorizablesMap
-
- com.composum.sling.core.usermanagement.model.AuthorizablesPaths
-
public class AuthorizablesPaths extends AuthorizablesMap
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.composum.sling.core.usermanagement.model.AuthorizablesMap
AuthorizablesMap.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 static Map<String,Object>
DEFAULT_NODE_CFG
protected Pattern
textPattern
-
Fields inherited from class com.composum.sling.core.usermanagement.model.AuthorizablesMap
sourceRelations, targetRelations
-
Fields inherited from class com.composum.sling.core.usermanagement.model.AuthorizablesView
context, index, indexes, nodes, singleFocus
-
-
Constructor Summary
Constructors Constructor Description AuthorizablesPaths(Authorizables.Context context, @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable String nameQueryPattern, Authorizables.Filter filter, @Nullable String textPattern)
AuthorizablesPaths(Authorizables.Context context, @Nullable String selector, @Nullable String nameQueryPattern, @Nullable String pathPattern, @Nullable String textPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull Collection<String>
filterPaths(@NotNull Collection<String> pathSet)
protected @NotNull String
i18n(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull String text)
void
toPathsTable(@NotNull org.apache.sling.api.resource.ResourceResolver resolver, @NotNull Writer writer, @Nullable org.apache.sling.api.resource.Resource config, AuthorizablesView.NodeUrlBuilder nodeUrlBuilder, AuthorizablesView.PathUrlBuilder pathUrlBuilder)
protected void
writePath(@NotNull Writer writer, @NotNull AuthorizableModel node, AuthorizablesView.PathUrlBuilder pathUrlBuilder, @Nullable String path, AuthorizableAcls.AcRuleSet acRuleSet, boolean firstLine)
protected void
writeRules(@NotNull Writer writer, AuthorizableAcls.AcRuleSet ruleSet)
-
Methods inherited from class com.composum.sling.core.usermanagement.model.AuthorizablesMap
addSourceRelations, addTargetRelations, extendedScan, isSourceOfTarget, scanRelations, toJson
-
Methods inherited from class com.composum.sling.core.usermanagement.model.AuthorizablesView
addNode, createNode, getAuthorizableModels, getNodeClass, getSingleFocus
-
-
-
-
Constructor Detail
-
AuthorizablesPaths
public AuthorizablesPaths(@NotNull Authorizables.Context context, @Nullable @Nullable String selector, @Nullable @Nullable String nameQueryPattern, @Nullable @Nullable String pathPattern, @Nullable @Nullable String textPattern) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
AuthorizablesPaths
public AuthorizablesPaths(@NotNull Authorizables.Context context, @Nullable @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable @Nullable String nameQueryPattern, @Nullable Authorizables.Filter filter, @Nullable @Nullable String textPattern) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
-
Method Detail
-
filterPaths
@NotNull protected @NotNull Collection<String> filterPaths(@NotNull @NotNull Collection<String> pathSet)
-
toPathsTable
public void toPathsTable(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resolver, @NotNull @NotNull Writer writer, @Nullable @Nullable org.apache.sling.api.resource.Resource config, @Nullable AuthorizablesView.NodeUrlBuilder nodeUrlBuilder, @Nullable AuthorizablesView.PathUrlBuilder pathUrlBuilder) throws IOException
- Throws:
IOException
-
writePath
protected void writePath(@NotNull @NotNull Writer writer, @NotNull @NotNull AuthorizableModel node, @Nullable AuthorizablesView.PathUrlBuilder pathUrlBuilder, @Nullable @Nullable String path, @Nullable AuthorizableAcls.AcRuleSet acRuleSet, boolean firstLine) throws IOException
- Throws:
IOException
-
writeRules
protected void writeRules(@NotNull @NotNull Writer writer, @NotNull AuthorizableAcls.AcRuleSet ruleSet) throws IOException
- Throws:
IOException
-
-