Package lumis.util.security.acl
Class AccessControlDaoJdbc
- java.lang.Object
-
- lumis.util.security.acl.AccessControlDaoJdbc
-
- All Implemented Interfaces:
IAccessControlDao
public class AccessControlDaoJdbc extends Object implements IAccessControlDao
Dao implementation for ACLs, based on JDBC.- Since:
- 4.0.7
- Version:
- $Revision: 10825 $ $Date: 2009-08-04 12:36:40 -0300 (Tue, 04 Aug 2009) $
-
-
Constructor Summary
Constructors Constructor Description AccessControlDaoJdbc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(AccessControlList acl, ITransaction transaction)
Add the ACL (Access Control List).void
addAclEntry(String parentAclId, AccessControlEntry aclEntry, ITransaction transaction)
Add the ACL entry.void
delete(String aclId, ITransaction transaction)
Delete the ACL entry.void
deleteAclEntry(String aclId, String principalId, ITransaction transaction)
Delete the ACL entry.void
deleteAclEntryByPrincipalId(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(String aclId, ITransaction transaction)
AccessControlList
get(String aclId, ITransaction transaction)
Get the ACL (Access Control List).protected AccessControlEntry[]
getAclEntries(String aclId, ITransaction transaction)
Collection<String>
getAclIdsByPrincipalId(String principalId, ITransaction transaction)
Get the ACL list for the specified principal.Collection<String>
getIdsByParentId(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
public void add(AccessControlList acl, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IAccessControlDao
Add the ACL (Access Control List).- Specified by:
add
in interfaceIAccessControlDao
- Throws:
DaoException
PortalException
-
exists
public boolean exists(String aclId, ITransaction transaction) throws DaoException, PortalException
- Specified by:
exists
in interfaceIAccessControlDao
- Throws:
DaoException
PortalException
-
get
public AccessControlList get(String aclId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IAccessControlDao
Get the ACL (Access Control List).- Specified by:
get
in interfaceIAccessControlDao
- Returns:
- Throws:
DaoException
PortalException
-
update
public void update(AccessControlList acl, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IAccessControlDao
Update the ACL (Access Control List).- Specified by:
update
in interfaceIAccessControlDao
- Throws:
DaoException
PortalException
-
deleteInheritingEntriesWithoutParent
public void deleteInheritingEntriesWithoutParent(ITransaction transaction) throws PortalException
Description copied from interface:IAccessControlDao
Deletes all inheriting ACL entries that does not have a parent to inherit from.- Specified by:
deleteInheritingEntriesWithoutParent
in interfaceIAccessControlDao
- Parameters:
transaction
- the transaction for persistence access.- Throws:
PortalException
-
delete
public void delete(String aclId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IAccessControlDao
Delete the ACL entry.- Specified by:
delete
in interfaceIAccessControlDao
- Throws:
DaoException
PortalException
-
getIdsByParentId
public Collection<String> getIdsByParentId(String parentId, ITransaction transaction) throws PortalException
Description copied from interface:IAccessControlDao
Return the Ids of the ACLs that has the given parentId.- Specified by:
getIdsByParentId
in interfaceIAccessControlDao
- Parameters:
parentId
- the parent Id.transaction
- the transaction for data access.- Returns:
- the Ids.
- Throws:
PortalException
-
addAclEntry
public void addAclEntry(String parentAclId, AccessControlEntry aclEntry, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IAccessControlDao
Add the ACL entry.- Specified by:
addAclEntry
in interfaceIAccessControlDao
- Throws:
DaoException
PortalException
-
deleteAclEntry
public void deleteAclEntry(String aclId, String principalId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IAccessControlDao
Delete the ACL entry.- Specified by:
deleteAclEntry
in interfaceIAccessControlDao
- Throws:
DaoException
PortalException
-
getAclIdsByPrincipalId
public Collection<String> getAclIdsByPrincipalId(String principalId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IAccessControlDao
Get the ACL list for the specified principal.- Specified by:
getAclIdsByPrincipalId
in interfaceIAccessControlDao
- Throws:
DaoException
PortalException
-
deleteAclEntryByPrincipalId
public void deleteAclEntryByPrincipalId(String principalId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IAccessControlDao
Delete the ACL list for the specified principal.- Specified by:
deleteAclEntryByPrincipalId
in interfaceIAccessControlDao
- Throws:
DaoException
PortalException
-
getAclEntries
protected AccessControlEntry[] getAclEntries(String aclId, ITransaction transaction) throws DaoException, PortalException
- Throws:
DaoException
PortalException
-
-