Class AuthorizablesImpl
- java.lang.Object
-
- com.composum.sling.core.usermanagement.service.impl.AuthorizablesImpl
-
- All Implemented Interfaces:
Authorizables
public class AuthorizablesImpl extends Object implements Authorizables
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.composum.sling.core.usermanagement.service.Authorizables
Authorizables.Context, Authorizables.Filter
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.sling.serviceusermapping.ServiceUserMapper
serviceUserMapper
-
Fields inherited from interface com.composum.sling.core.usermanagement.service.Authorizables
SELECTORS
-
-
Constructor Summary
Constructors Constructor Description AuthorizablesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate()
protected @NotNull Iterator<AuthorizableWrapper>
findAuthorizables(@NotNull Authorizables.Context context, @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable String nameQueryPattern)
@NotNull Set<? extends AuthorizableWrapper>
findAuthorizables(@NotNull Authorizables.Context context, @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable String nameQueryPattern, @Nullable Authorizables.Filter filter)
protected @NotNull List<ServiceUserWrapper>
findServiceUsers(@NotNull Authorizables.Context context, @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable String nameQueryPattern)
@Nullable AuthorizableWrapper
getAuthorizable(@NotNull Authorizables.Context context, @NotNull String id)
protected @Nullable ServiceUserWrapper
getServiceUser(@NotNull String id)
<T extends AuthorizableWrapper>
@NotNull Collection<T>loadAuthorizables(@NotNull Authorizables.Context context, @NotNull Class<T> selector, @NotNull Set<String> idSet)
-
-
-
Method Detail
-
activate
protected void activate()
-
getAuthorizable
@Nullable public @Nullable AuthorizableWrapper getAuthorizable(@NotNull @NotNull Authorizables.Context context, @NotNull @NotNull String id) throws javax.jcr.RepositoryException
- Specified by:
getAuthorizable
in interfaceAuthorizables
- Throws:
javax.jcr.RepositoryException
-
findAuthorizables
@NotNull public @NotNull Set<? extends AuthorizableWrapper> findAuthorizables(@NotNull @NotNull Authorizables.Context context, @Nullable @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable @Nullable String nameQueryPattern, @Nullable @Nullable Authorizables.Filter filter) throws javax.jcr.RepositoryException
- Specified by:
findAuthorizables
in interfaceAuthorizables
- Throws:
javax.jcr.RepositoryException
-
loadAuthorizables
@NotNull public <T extends AuthorizableWrapper> @NotNull Collection<T> loadAuthorizables(@NotNull @NotNull Authorizables.Context context, @NotNull @NotNull Class<T> selector, @NotNull @NotNull Set<String> idSet) throws javax.jcr.RepositoryException
- Specified by:
loadAuthorizables
in interfaceAuthorizables
- Throws:
javax.jcr.RepositoryException
-
findAuthorizables
@NotNull protected @NotNull Iterator<AuthorizableWrapper> findAuthorizables(@NotNull @NotNull Authorizables.Context context, @Nullable @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable @Nullable String nameQueryPattern) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
findServiceUsers
@NotNull protected @NotNull List<ServiceUserWrapper> findServiceUsers(@NotNull @NotNull Authorizables.Context context, @Nullable @Nullable Class<? extends AuthorizableWrapper> selector, @Nullable @Nullable String nameQueryPattern) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getServiceUser
@Nullable protected @Nullable ServiceUserWrapper getServiceUser(@NotNull @NotNull String id)
-
-