|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRepositoryFileAclDao
A data access object for reading and writing RepositoryFileAcl
instances. The methods in this interface might
closely resemble those in IUnifiedRepository
but this interface is not part of the public Pentaho API and
can evolve independently.
Method Summary | |
---|---|
void |
addAce(Serializable fileId,
RepositoryFileSid recipient,
EnumSet<RepositoryFilePermission> permission)
Adds ACE to end of ACL. |
RepositoryFileAcl |
createAcl(Serializable fileId,
RepositoryFileAcl acl)
Creates an ACL. |
RepositoryFileAcl |
getAcl(Serializable fileId)
Returns ACL for file. |
List<RepositoryFileAce> |
getEffectiveAces(Serializable fileId,
boolean forceEntriesInheriting)
Returns the list of access control entries that will be used to make an access control decision. |
boolean |
hasAccess(String relPath,
EnumSet<RepositoryFilePermission> permissions)
Returns true if the user has all of the permissions. |
void |
setFullControl(Serializable fileId,
RepositoryFileSid sid,
RepositoryFilePermission permission)
Gives full control (all permissions) to given sid. |
RepositoryFileAcl |
updateAcl(RepositoryFileAcl acl)
Updates an ACL. |
Method Detail |
---|
List<RepositoryFileAce> getEffectiveAces(Serializable fileId, boolean forceEntriesInheriting)
fileId
- file idforceEntriesInheriting
- true
to treat ACL as if isEntriesInheriting
was true; this avoids
having the caller fetch the parent of ACL belonging to file with fileId
; no change is persisted to the ACL
boolean hasAccess(String relPath, EnumSet<RepositoryFilePermission> permissions)
true
if the user has all of the permissions. The implementation should return false
if
either the user does not have access or the file does not exist.
relPath
- path to filepermissions
- permissions to check
true
if user has accessRepositoryFileAcl getAcl(Serializable fileId)
fileId
- file id
RepositoryFileAcl updateAcl(RepositoryFileAcl acl)
acl
- ACL to set; must have non-null id
RepositoryFileAcl createAcl(Serializable fileId, RepositoryFileAcl acl)
fileId
- file idacl
- file acl
void addAce(Serializable fileId, RepositoryFileSid recipient, EnumSet<RepositoryFilePermission> permission)
updateAcl(RepositoryFileAcl)
should not need to be
called after this method returns.
fileId
- file idrecipient
- recipient of permissionpermission
- permission to setvoid setFullControl(Serializable fileId, RepositoryFileSid sid, RepositoryFilePermission permission)
updateAcl(RepositoryFileAcl)
should not need to be called
after this method returns.
fileId
- file idsid
- sid that should own the domain object associated with this ACLpermision
- permission representing full control
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |