public class DefaultAclManager extends Object implements AclManager, EnforceInfo
Constructor and Description |
---|
DefaultAclManager() |
DefaultAclManager(@Nullable String enforcePrincipalBasedSupportedPath,
@NotNull String systemRelPath) |
Modifier and Type | Method and Description |
---|---|
boolean |
addAccessControlEntry(@NotNull String systemUser,
@NotNull AccessControlEntry acl) |
boolean |
addGroup(@NotNull Group group) |
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 |
addUser(@NotNull User user) |
@NotNull String |
calculateEnforcedIntermediatePath(@Nullable String intermediatePath) |
boolean |
enforcePrincipalBased(@NotNull String systemUserId) |
protected @Nullable org.apache.sling.repoinit.parser.operations.CreatePath |
getCreatePath(@NotNull RepoPath path,
@NotNull List<VaultPackageAssembler> packageAssemblers) |
void |
recordSystemUserIds(String... systemUserIds) |
void |
reset() |
public DefaultAclManager() throws ConverterException
ConverterException
public DefaultAclManager(@Nullable @Nullable String enforcePrincipalBasedSupportedPath, @NotNull @NotNull String systemRelPath) throws ConverterException
ConverterException
public boolean addUser(@NotNull @NotNull User user)
addUser
in interface AclManager
public boolean addGroup(@NotNull @NotNull Group group)
addGroup
in interface AclManager
public boolean addSystemUser(@NotNull @NotNull SystemUser systemUser)
addSystemUser
in interface AclManager
public void addMapping(@NotNull @NotNull Mapping mapping)
addMapping
in interface AclManager
public boolean addAccessControlEntry(@NotNull @NotNull String systemUser, @NotNull @NotNull AccessControlEntry acl)
addAccessControlEntry
in interface AclManager
public void addRepoinitExtension(@NotNull @NotNull List<VaultPackageAssembler> packageAssemblers, @NotNull @NotNull FeaturesManager featureManager) throws IOException, ConverterException
addRepoinitExtension
in interface AclManager
IOException
ConverterException
public void addRepoinitExtention(@NotNull @NotNull String source, @Nullable @Nullable String repoInitText, @Nullable @Nullable String runMode, @NotNull @NotNull FeaturesManager featuresManager) throws IOException, ConverterException
addRepoinitExtention
in interface AclManager
IOException
ConverterException
public void addNodetypeRegistration(@NotNull @NotNull String cndStatements)
addNodetypeRegistration
in interface AclManager
public void addPrivilegeDefinitions(@NotNull @NotNull org.apache.jackrabbit.vault.fs.spi.PrivilegeDefinitions privilegeDefinitions)
addPrivilegeDefinitions
in interface AclManager
public void reset()
reset
in interface AclManager
public void recordSystemUserIds(@NotNull String... systemUserIds)
recordSystemUserIds
in interface EnforceInfo
public boolean enforcePrincipalBased(@NotNull @NotNull String systemUserId)
enforcePrincipalBased
in interface EnforceInfo
@NotNull public @NotNull String calculateEnforcedIntermediatePath(@Nullable @Nullable String intermediatePath) throws ConverterException
calculateEnforcedIntermediatePath
in interface EnforceInfo
ConverterException
@Nullable protected @Nullable org.apache.sling.repoinit.parser.operations.CreatePath getCreatePath(@NotNull @NotNull RepoPath path, @NotNull @NotNull List<VaultPackageAssembler> packageAssemblers)
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.