Class DefaultAclManager
java.lang.Object
org.apache.sling.feature.cpconverter.accesscontrol.DefaultAclManager
- All Implemented Interfaces:
AclManager,EnforceInfo
-
Constructor Summary
ConstructorsConstructorDescriptionSame asDefaultAclManager(null, "system", false)DefaultAclManager(@Nullable String enforcePrincipalBasedSupportedPath, @NotNull String systemRelPath) Deprecated.Use DefaultAclManager(String,String,boolean) insteadDefaultAclManager(@Nullable String enforcePrincipalBasedSupportedPath, @NotNull String systemRelPath, boolean alwaysForceSystemUserPath) Creates a new instance ofDefaultAclManager. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAccessControlEntry(@NotNull String systemUser, @NotNull AccessControlEntry acl) booleanvoidaddMapping(@NotNull Mapping mapping) voidaddNodetypeRegistration(@NotNull String cndStatements) voidaddPrivilegeDefinitions(@NotNull org.apache.jackrabbit.vault.fs.spi.PrivilegeDefinitions privilegeDefinitions) voidaddRepoinitExtension(@NotNull List<VaultPackageAssembler> packageAssemblers, @NotNull FeaturesManager featureManager) voidaddRepoinitExtention(@NotNull String source, @Nullable String repoInitText, @Nullable String runMode, @NotNull FeaturesManager featuresManager) booleanaddSystemUser(@NotNull SystemUser systemUser) boolean@NotNull StringcalculateEnforcedIntermediatePath(@Nullable String intermediatePath) booleanenforcePath(@NotNull String systemUserId) booleanenforcePrincipalBased(@NotNull String systemUserId) protected @Nullable org.apache.sling.repoinit.parser.operations.CreatePathgetCreatePath(@NotNull RepoPath path, @NotNull List<VaultPackageAssembler> packageAssemblers) voidrecordSystemUserIds(@NotNull String... systemUserIds) voidreset()
-
Constructor Details
-
DefaultAclManager
public DefaultAclManager()Same asDefaultAclManager(null, "system", false) -
DefaultAclManager
@Deprecated public DefaultAclManager(@Nullable @Nullable String enforcePrincipalBasedSupportedPath, @NotNull @NotNull String systemRelPath) Deprecated.Use DefaultAclManager(String,String,boolean) instead- Parameters:
enforcePrincipalBasedSupportedPath- The supported path if principal-based access control setup for service users should be enforced;nullotherwise.systemRelPath- The relative intermediate path used for all system users.
-
DefaultAclManager
public DefaultAclManager(@Nullable @Nullable String enforcePrincipalBasedSupportedPath, @NotNull @NotNull String systemRelPath, boolean alwaysForceSystemUserPath) Creates a new instance ofDefaultAclManager.- Parameters:
enforcePrincipalBasedSupportedPath- The supported path if principal-based access control setup for service users should be enforced;nullotherwise.systemRelPath- The relative intermediate path used for all system users.alwaysForceSystemUserPath- Option to make sure all system users are being created with the specified intermediate path (i.e. translating to 'with forced path' statements in repoinit).
-
-
Method Details
-
addUser
- Specified by:
addUserin interfaceAclManager
-
addGroup
- Specified by:
addGroupin interfaceAclManager
-
addSystemUser
- Specified by:
addSystemUserin interfaceAclManager
-
addMapping
- Specified by:
addMappingin interfaceAclManager
-
addAccessControlEntry
public boolean addAccessControlEntry(@NotNull @NotNull String systemUser, @NotNull @NotNull AccessControlEntry acl) - Specified by:
addAccessControlEntryin interfaceAclManager
-
addRepoinitExtension
public void addRepoinitExtension(@NotNull @NotNull List<VaultPackageAssembler> packageAssemblers, @NotNull @NotNull FeaturesManager featureManager) throws IOException, ConverterException - Specified by:
addRepoinitExtensionin interfaceAclManager- Throws:
IOExceptionConverterException
-
addRepoinitExtention
public void addRepoinitExtention(@NotNull @NotNull String source, @Nullable @Nullable String repoInitText, @Nullable @Nullable String runMode, @NotNull @NotNull FeaturesManager featuresManager) throws IOException, ConverterException - Specified by:
addRepoinitExtentionin interfaceAclManager- Throws:
IOExceptionConverterException
-
addNodetypeRegistration
- Specified by:
addNodetypeRegistrationin interfaceAclManager
-
addPrivilegeDefinitions
public void addPrivilegeDefinitions(@NotNull @NotNull org.apache.jackrabbit.vault.fs.spi.PrivilegeDefinitions privilegeDefinitions) - Specified by:
addPrivilegeDefinitionsin interfaceAclManager
-
reset
public void reset()- Specified by:
resetin interfaceAclManager
-
recordSystemUserIds
- Specified by:
recordSystemUserIdsin interfaceEnforceInfo
-
enforcePrincipalBased
- Specified by:
enforcePrincipalBasedin interfaceEnforceInfo
-
enforcePath
- Specified by:
enforcePathin interfaceEnforceInfo
-
calculateEnforcedIntermediatePath
@NotNull public @NotNull String calculateEnforcedIntermediatePath(@Nullable @Nullable String intermediatePath) throws ConverterException - Specified by:
calculateEnforcedIntermediatePathin interfaceEnforceInfo- Throws:
ConverterException
-