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
ConverterExceptionpublic DefaultAclManager(@Nullable
@Nullable String enforcePrincipalBasedSupportedPath,
@NotNull
@NotNull String systemRelPath)
throws ConverterException
ConverterExceptionpublic boolean addUser(@NotNull
@NotNull User user)
addUser in interface AclManagerpublic boolean addGroup(@NotNull
@NotNull Group group)
addGroup in interface AclManagerpublic boolean addSystemUser(@NotNull
@NotNull SystemUser systemUser)
addSystemUser in interface AclManagerpublic void addMapping(@NotNull
@NotNull Mapping mapping)
addMapping in interface AclManagerpublic boolean addAccessControlEntry(@NotNull
@NotNull String systemUser,
@NotNull
@NotNull AccessControlEntry acl)
addAccessControlEntry in interface AclManagerpublic void addRepoinitExtension(@NotNull
@NotNull List<VaultPackageAssembler> packageAssemblers,
@NotNull
@NotNull FeaturesManager featureManager)
throws IOException,
ConverterException
addRepoinitExtension in interface AclManagerIOExceptionConverterExceptionpublic void addRepoinitExtention(@NotNull
@NotNull String source,
@Nullable
@Nullable String repoInitText,
@Nullable
@Nullable String runMode,
@NotNull
@NotNull FeaturesManager featuresManager)
throws IOException,
ConverterException
addRepoinitExtention in interface AclManagerIOExceptionConverterExceptionpublic void addNodetypeRegistration(@NotNull
@NotNull String cndStatements)
addNodetypeRegistration in interface AclManagerpublic void addPrivilegeDefinitions(@NotNull
@NotNull org.apache.jackrabbit.vault.fs.spi.PrivilegeDefinitions privilegeDefinitions)
addPrivilegeDefinitions in interface AclManagerpublic void reset()
reset in interface AclManagerpublic void recordSystemUserIds(@NotNull
String... systemUserIds)
recordSystemUserIds in interface EnforceInfopublic boolean enforcePrincipalBased(@NotNull
@NotNull String systemUserId)
enforcePrincipalBased in interface EnforceInfo@NotNull public @NotNull String calculateEnforcedIntermediatePath(@Nullable @Nullable String intermediatePath) throws ConverterException
calculateEnforcedIntermediatePath in interface EnforceInfoConverterException@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.