Package lumis.util.security.acl
Interface IAccessControlDao
-
- All Known Implementing Classes:
AccessControlDaoJdbc
public interface IAccessControlDao
Dao Interface for ACL entity- Since:
- 4.0.7
- Version:
- $Revision: 10825 $ $Date: 2009-08-04 12:36:40 -0300 (Tue, 04 Aug 2009) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(AccessControlList acl, ITransaction transaction)
Add the ACL (Access Control List).void
addAclEntry(java.lang.String parentAclId, AccessControlEntry aclEntry, ITransaction transaction)
Add the ACL entry.void
delete(java.lang.String aclId, ITransaction transaction)
Delete the ACL entry.void
deleteAclEntry(java.lang.String aclId, java.lang.String principalId, ITransaction transaction)
Delete the ACL entry.void
deleteAclEntryByPrincipalId(java.lang.String principalId, ITransaction transaction)
Delete the ACL list for the specified principal.void
deleteInheritingEntriesWithoutParent(ITransaction transaction)
Deletes all inheriting ACL entries that does not have a parent to inherit from.boolean
exists(java.lang.String aclId, ITransaction transaction)
AccessControlList
get(java.lang.String aclId, ITransaction transaction)
Get the ACL (Access Control List).java.util.Collection<java.lang.String>
getAclIdsByPrincipalId(java.lang.String principalId, ITransaction transaction)
Get the ACL list for the specified principal.java.util.Collection<java.lang.String>
getIdsByParentId(java.lang.String parentId, ITransaction transaction)
Return the Ids of the ACLs that has the given parentId.void
update(AccessControlList acl, ITransaction transaction)
Update the ACL (Access Control List).
-
-
-
Method Detail
-
add
void add(AccessControlList acl, ITransaction transaction) throws DaoException, PortalException
Add the ACL (Access Control List).- Parameters:
acl
-transaction
-- Throws:
DaoException
PortalException
-
get
AccessControlList get(java.lang.String aclId, ITransaction transaction) throws DaoException, PortalException
Get the ACL (Access Control List).- Parameters:
aclId
-transaction
-- Returns:
- Throws:
DaoException
PortalException
-
update
void update(AccessControlList acl, ITransaction transaction) throws DaoException, PortalException
Update the ACL (Access Control List).- Parameters:
acl
-transaction
-- Throws:
DaoException
PortalException
-
getIdsByParentId
java.util.Collection<java.lang.String> getIdsByParentId(java.lang.String parentId, ITransaction transaction) throws PortalException
Return the Ids of the ACLs that has the given parentId.- Parameters:
parentId
- the parent Id.transaction
- the transaction for data access.- Returns:
- the Ids.
- Throws:
PortalException
-
delete
void delete(java.lang.String aclId, ITransaction transaction) throws DaoException, PortalException
Delete the ACL entry.- Parameters:
aclId
-transaction
-- Throws:
DaoException
PortalException
-
addAclEntry
void addAclEntry(java.lang.String parentAclId, AccessControlEntry aclEntry, ITransaction transaction) throws DaoException, PortalException
Add the ACL entry.- Parameters:
parentAclId
-aclEntry
-transaction
-- Throws:
DaoException
PortalException
-
deleteAclEntry
void deleteAclEntry(java.lang.String aclId, java.lang.String principalId, ITransaction transaction) throws DaoException, PortalException
Delete the ACL entry.- Parameters:
aclId
-principalId
-transaction
-- Throws:
DaoException
PortalException
-
getAclIdsByPrincipalId
java.util.Collection<java.lang.String> getAclIdsByPrincipalId(java.lang.String principalId, ITransaction transaction) throws DaoException, PortalException
Get the ACL list for the specified principal.- Parameters:
principalId
-transaction
-- Throws:
DaoException
PortalException
-
deleteAclEntryByPrincipalId
void deleteAclEntryByPrincipalId(java.lang.String principalId, ITransaction transaction) throws DaoException, PortalException
Delete the ACL list for the specified principal.- Parameters:
principalId
-transaction
-- Throws:
DaoException
PortalException
-
exists
boolean exists(java.lang.String aclId, ITransaction transaction) throws DaoException, PortalException
- Throws:
DaoException
PortalException
-
deleteInheritingEntriesWithoutParent
void deleteInheritingEntriesWithoutParent(ITransaction transaction) throws PortalException
Deletes all inheriting ACL entries that does not have a parent to inherit from.- Parameters:
transaction
- the transaction for persistence access.- Throws:
PortalException
- Since:
- 5.0.0
-
-