Class DefaultAclManager
- java.lang.Object
-
- org.apache.sling.feature.cpconverter.accesscontrol.DefaultAclManager
-
- All Implemented Interfaces:
AclManager,EnforceInfo
public class DefaultAclManager extends Object implements AclManager, EnforceInfo
-
-
Constructor Summary
Constructors Constructor Description DefaultAclManager()Same 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAccessControlEntry(@NotNull String systemUser, @NotNull AccessControlEntry acl)booleanaddGroup(@NotNull Group group)voidaddMapping(@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)booleanaddUser(@NotNull User user)@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 Detail
-
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 Detail
-
addUser
public boolean addUser(@NotNull @NotNull User user)- Specified by:
addUserin interfaceAclManager
-
addGroup
public boolean addGroup(@NotNull @NotNull Group group)- Specified by:
addGroupin interfaceAclManager
-
addSystemUser
public boolean addSystemUser(@NotNull @NotNull SystemUser systemUser)- Specified by:
addSystemUserin interfaceAclManager
-
addMapping
public void addMapping(@NotNull @NotNull Mapping mapping)- 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
public void addNodetypeRegistration(@NotNull @NotNull String cndStatements)- 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
public void recordSystemUserIds(@NotNull @NotNull String... systemUserIds)- Specified by:
recordSystemUserIdsin interfaceEnforceInfo
-
enforcePrincipalBased
public boolean enforcePrincipalBased(@NotNull @NotNull String systemUserId)- Specified by:
enforcePrincipalBasedin interfaceEnforceInfo
-
enforcePath
public boolean enforcePath(@NotNull @NotNull String systemUserId)- Specified by:
enforcePathin interfaceEnforceInfo
-
calculateEnforcedIntermediatePath
@NotNull public @NotNull String calculateEnforcedIntermediatePath(@Nullable @Nullable String intermediatePath) throws ConverterException
- Specified by:
calculateEnforcedIntermediatePathin interfaceEnforceInfo- Throws:
ConverterException
-
getCreatePath
@Nullable protected @Nullable org.apache.sling.repoinit.parser.operations.CreatePath getCreatePath(@NotNull @NotNull RepoPath path, @NotNull @NotNull List<VaultPackageAssembler> packageAssemblers)
-
-