lumis.util.security.acl
Class AccessControlDaoJdbc

Package class diagram package AccessControlDaoJdbc
java.lang.Object
  extended by 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

Constructor Summary
AccessControlDaoJdbc()
           
 
Method Summary
 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.
 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessControlDaoJdbc

public AccessControlDaoJdbc()
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 interface IAccessControlDao
Throws:
DaoException
PortalException

exists

public boolean exists(String aclId,
                      ITransaction transaction)
               throws DaoException,
                      PortalException
Specified by:
exists in interface IAccessControlDao
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 interface IAccessControlDao
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 interface IAccessControlDao
Throws:
DaoException
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 interface IAccessControlDao
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 interface IAccessControlDao
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 interface IAccessControlDao
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 interface IAccessControlDao
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 interface IAccessControlDao
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 interface IAccessControlDao
Throws:
DaoException
PortalException

getAclEntries

protected AccessControlEntry[] getAclEntries(String aclId,
                                             ITransaction transaction)
                                      throws DaoException,
                                             PortalException
Throws:
DaoException
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.