public class JcrRepositoryFileAclUtils extends Object
These utility methods are static because they are used from within Jackrabbit.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT |
static String |
SYSTEM_PROPERTY |
Modifier and Type | Method and Description |
---|---|
static void |
addAce(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
Serializable id,
org.pentaho.platform.api.repository2.unified.RepositoryFileSid recipient,
EnumSet<org.pentaho.platform.api.repository2.unified.RepositoryFilePermission> permission) |
static void |
addPermission(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
Serializable fileId,
org.pentaho.platform.api.repository2.unified.RepositoryFileSid recipient,
EnumSet<org.pentaho.platform.api.repository2.unified.RepositoryFilePermission> permissions) |
static org.pentaho.platform.api.repository2.unified.RepositoryFileAcl |
createAcl(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
Serializable fileId,
org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl) |
static javax.jcr.security.Privilege[] |
expandPrivileges(javax.jcr.security.Privilege[] privileges,
boolean expandNonStandardOnly)
Expands all aggregate privileges.
|
static org.pentaho.platform.api.repository2.unified.RepositoryFileAcl |
getAcl(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
Serializable id) |
static IAclMetadataStrategy.AclMetadata |
getAclMetadata(javax.jcr.Session session,
String path,
javax.jcr.security.AccessControlList acList) |
static List<javax.jcr.security.AccessControlEntry> |
removeAclMetadata(List<javax.jcr.security.AccessControlEntry> acEntries) |
static void |
setAclMetadata(javax.jcr.Session session,
String path,
javax.jcr.security.AccessControlList acList,
IAclMetadataStrategy.AclMetadata aclMetadata) |
static void |
setFullControl(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
Serializable fileId,
org.pentaho.platform.api.repository2.unified.RepositoryFileSid sid) |
static void |
setOwner(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
org.pentaho.platform.api.repository2.unified.RepositoryFile file,
org.pentaho.platform.api.repository2.unified.RepositoryFileSid owner) |
static void |
updateAcl(javax.jcr.Session session,
org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl) |
public static final String DEFAULT
public static final String SYSTEM_PROPERTY
public static IAclMetadataStrategy.AclMetadata getAclMetadata(javax.jcr.Session session, String path, javax.jcr.security.AccessControlList acList) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static void setAclMetadata(javax.jcr.Session session, String path, javax.jcr.security.AccessControlList acList, IAclMetadataStrategy.AclMetadata aclMetadata) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static List<javax.jcr.security.AccessControlEntry> removeAclMetadata(List<javax.jcr.security.AccessControlEntry> acEntries) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static javax.jcr.security.Privilege[] expandPrivileges(javax.jcr.security.Privilege[] privileges, boolean expandNonStandardOnly)
privileges
- input privilegesexpandNonStandardOnly
- if true
expand only privileges outside of jcr: namespacepublic static org.pentaho.platform.api.repository2.unified.RepositoryFileAcl createAcl(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, Serializable fileId, org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public static void addPermission(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, Serializable fileId, org.pentaho.platform.api.repository2.unified.RepositoryFileSid recipient, EnumSet<org.pentaho.platform.api.repository2.unified.RepositoryFilePermission> permissions) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static void setOwner(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, org.pentaho.platform.api.repository2.unified.RepositoryFile file, org.pentaho.platform.api.repository2.unified.RepositoryFileSid owner) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static void setFullControl(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, Serializable fileId, org.pentaho.platform.api.repository2.unified.RepositoryFileSid sid) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static void addAce(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, Serializable id, org.pentaho.platform.api.repository2.unified.RepositoryFileSid recipient, EnumSet<org.pentaho.platform.api.repository2.unified.RepositoryFilePermission> permission) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static void updateAcl(javax.jcr.Session session, org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static org.pentaho.platform.api.repository2.unified.RepositoryFileAcl getAcl(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, Serializable id) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2019 Hitachi Vantara. All rights reserved.