public class AccessControlDaoJdbc extends Object implements IAccessControlDao
Constructor and Description |
---|
AccessControlDaoJdbc() |
Modifier and Type | Method and 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).
|
public void add(AccessControlList acl, ITransaction transaction) throws DaoException, PortalException
IAccessControlDao
add
in interface IAccessControlDao
DaoException
PortalException
public boolean exists(String aclId, ITransaction transaction) throws DaoException, PortalException
exists
in interface IAccessControlDao
DaoException
PortalException
public AccessControlList get(String aclId, ITransaction transaction) throws DaoException, PortalException
IAccessControlDao
get
in interface IAccessControlDao
DaoException
PortalException
public void update(AccessControlList acl, ITransaction transaction) throws DaoException, PortalException
IAccessControlDao
update
in interface IAccessControlDao
DaoException
PortalException
public void deleteInheritingEntriesWithoutParent(ITransaction transaction) throws PortalException
IAccessControlDao
deleteInheritingEntriesWithoutParent
in interface IAccessControlDao
transaction
- the transaction for persistence access.PortalException
public void delete(String aclId, ITransaction transaction) throws DaoException, PortalException
IAccessControlDao
delete
in interface IAccessControlDao
DaoException
PortalException
public Collection<String> getIdsByParentId(String parentId, ITransaction transaction) throws PortalException
IAccessControlDao
getIdsByParentId
in interface IAccessControlDao
parentId
- the parent Id.transaction
- the transaction for data access.PortalException
public void addAclEntry(String parentAclId, AccessControlEntry aclEntry, ITransaction transaction) throws DaoException, PortalException
IAccessControlDao
addAclEntry
in interface IAccessControlDao
DaoException
PortalException
public void deleteAclEntry(String aclId, String principalId, ITransaction transaction) throws DaoException, PortalException
IAccessControlDao
deleteAclEntry
in interface IAccessControlDao
DaoException
PortalException
public Collection<String> getAclIdsByPrincipalId(String principalId, ITransaction transaction) throws DaoException, PortalException
IAccessControlDao
getAclIdsByPrincipalId
in interface IAccessControlDao
DaoException
PortalException
public void deleteAclEntryByPrincipalId(String principalId, ITransaction transaction) throws DaoException, PortalException
IAccessControlDao
deleteAclEntryByPrincipalId
in interface IAccessControlDao
DaoException
PortalException
protected AccessControlEntry[] getAclEntries(String aclId, ITransaction transaction) throws DaoException, PortalException
DaoException
PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.