Class DefaultAclManager
java.lang.Object
org.apache.sling.feature.cpconverter.accesscontrol.DefaultAclManager
- All Implemented Interfaces:
AclManager
,EnforceInfo
-
Constructor Summary
ConstructorDescriptionSame 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 TypeMethodDescriptionboolean
addAccessControlEntry
(@NotNull String systemUser, @NotNull AccessControlEntry acl) boolean
void
addMapping
(@NotNull Mapping mapping) void
addNodetypeRegistration
(@NotNull String cndStatements) void
addPrivilegeDefinitions
(@NotNull org.apache.jackrabbit.vault.fs.spi.PrivilegeDefinitions privilegeDefinitions) void
addRepoinitExtension
(@NotNull List<VaultPackageAssembler> packageAssemblers, @NotNull FeaturesManager featureManager) void
addRepoinitExtention
(@NotNull String source, @Nullable String repoInitText, @Nullable String runMode, @NotNull FeaturesManager featuresManager) boolean
addSystemUser
(@NotNull SystemUser systemUser) boolean
@NotNull String
calculateEnforcedIntermediatePath
(@Nullable String intermediatePath) boolean
enforcePath
(@NotNull String systemUserId) boolean
enforcePrincipalBased
(@NotNull String systemUserId) protected @Nullable org.apache.sling.repoinit.parser.operations.CreatePath
getCreatePath
(@NotNull RepoPath path, @NotNull List<VaultPackageAssembler> packageAssemblers) void
recordSystemUserIds
(@NotNull String... systemUserIds) void
reset()
-
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;null
otherwise.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;null
otherwise.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:
addUser
in interfaceAclManager
-
addGroup
- Specified by:
addGroup
in interfaceAclManager
-
addSystemUser
- Specified by:
addSystemUser
in interfaceAclManager
-
addMapping
- Specified by:
addMapping
in interfaceAclManager
-
addAccessControlEntry
public boolean addAccessControlEntry(@NotNull @NotNull String systemUser, @NotNull @NotNull AccessControlEntry acl) - Specified by:
addAccessControlEntry
in interfaceAclManager
-
addRepoinitExtension
public void addRepoinitExtension(@NotNull @NotNull List<VaultPackageAssembler> packageAssemblers, @NotNull @NotNull FeaturesManager featureManager) throws IOException, ConverterException - Specified by:
addRepoinitExtension
in interfaceAclManager
- Throws:
IOException
ConverterException
-
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:
addRepoinitExtention
in interfaceAclManager
- Throws:
IOException
ConverterException
-
addNodetypeRegistration
- Specified by:
addNodetypeRegistration
in interfaceAclManager
-
addPrivilegeDefinitions
public void addPrivilegeDefinitions(@NotNull @NotNull org.apache.jackrabbit.vault.fs.spi.PrivilegeDefinitions privilegeDefinitions) - Specified by:
addPrivilegeDefinitions
in interfaceAclManager
-
reset
public void reset()- Specified by:
reset
in interfaceAclManager
-
recordSystemUserIds
- Specified by:
recordSystemUserIds
in interfaceEnforceInfo
-
enforcePrincipalBased
- Specified by:
enforcePrincipalBased
in interfaceEnforceInfo
-
enforcePath
- Specified by:
enforcePath
in interfaceEnforceInfo
-
calculateEnforcedIntermediatePath
@NotNull public @NotNull String calculateEnforcedIntermediatePath(@Nullable @Nullable String intermediatePath) throws ConverterException - Specified by:
calculateEnforcedIntermediatePath
in interfaceEnforceInfo
- Throws:
ConverterException
-