Search in sources :

Example 1 with AuthorizableAction

use of org.apache.jackrabbit.oak.spi.security.user.action.AuthorizableAction in project jackrabbit-oak by apache.

the class SystemUserImplTest method getSecurityConfigParameters.

@Override
protected ConfigurationParameters getSecurityConfigParameters() {
    return ConfigurationParameters.of(UserConfiguration.NAME, ConfigurationParameters.of(UserConstants.PARAM_AUTHORIZABLE_ACTION_PROVIDER, new AuthorizableActionProvider() {

        @Nonnull
        @Override
        public List<? extends AuthorizableAction> getAuthorizableActions(@Nonnull SecurityProvider securityProvider) {
            AuthorizableAction action = new AccessControlAction();
            action.init(securityProvider, ConfigurationParameters.of(AccessControlAction.USER_PRIVILEGE_NAMES, new String[] { PrivilegeConstants.JCR_ALL }));
            return ImmutableList.of(action);
        }
    }));
}
Also used : AccessControlAction(org.apache.jackrabbit.oak.spi.security.user.action.AccessControlAction) Nonnull(javax.annotation.Nonnull) SecurityProvider(org.apache.jackrabbit.oak.spi.security.SecurityProvider) AuthorizableAction(org.apache.jackrabbit.oak.spi.security.user.action.AuthorizableAction) AuthorizableActionProvider(org.apache.jackrabbit.oak.spi.security.user.action.AuthorizableActionProvider)

Aggregations

Nonnull (javax.annotation.Nonnull)1 SecurityProvider (org.apache.jackrabbit.oak.spi.security.SecurityProvider)1 AccessControlAction (org.apache.jackrabbit.oak.spi.security.user.action.AccessControlAction)1 AuthorizableAction (org.apache.jackrabbit.oak.spi.security.user.action.AuthorizableAction)1 AuthorizableActionProvider (org.apache.jackrabbit.oak.spi.security.user.action.AuthorizableActionProvider)1