public class HibernateAccessRightDao extends HibernateCRUDDao<AccessRight> implements AccessRightDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>| Constructor and Description |
|---|
HibernateAccessRightDao(HibernateDaoContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustGridDefaultRights(String serviceGridId,
String serviceId,
boolean permitted) |
void |
adjustUserRights(String userGridId,
String serviceGridId,
String serviceId,
String ownerUserId,
boolean permitted) |
void |
clear() |
void |
clearExceptDefaults() |
void |
deleteAccessRight(String userGridId,
String userId,
String serviceGridId,
String serviceId) |
void |
deleteAccessRightsOfGrid(String serviceGridId) |
void |
deleteAccessRightsOfService(String serviceGridId,
String serviceId) |
void |
deleteAccessRightsOfUser(String userGridId,
String userId) |
void |
deleteGridDefaultAccessRight(String userGridId,
String serviceGridId,
String serviceId) |
AccessRight |
getAccessRight(String userGridId,
String userId,
String serviceGridId,
String serviceId) |
AccessRight |
getGridDefaultAccessRight(String userGridId,
String serviceGridId,
String serviceId) |
AccessRight |
getServiceDefaultAccessRight(String serviceGridId,
String serviceId) |
Iterable<ServicePK> |
listAccessibleServices(String userGridId,
String userId) |
List<AccessRight> |
listAccessRights(String serviceGridId) |
AccessRightSearchResult |
searchAccessRights(int startIndex,
int maxCount,
String userGridId,
String userId,
String serviceGridId,
String[] serviceIds,
Order[] orders) |
AccessRightSearchResult |
searchAccessRightsAccordingToDefaultAndOwner(int startIndex,
int maxCount,
String userGridId,
String userId,
String serviceAndOwnerGridId,
String[] serviceIds,
String ownerUserId,
Order[] orders) |
AccessRight |
setAccessRight(String userGridId,
String userId,
String serviceGridId,
String serviceId,
boolean permitted) |
AccessRight |
setGridDefaultAccessRight(String userGridId,
String serviceGridId,
String serviceId,
boolean permitted) |
AccessRight |
setServiceDefaultAccessRight(String serviceGridId,
String serviceId,
boolean permitted) |
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, list, updatecreateDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transactpublic HibernateAccessRightDao(HibernateDaoContext context)
public void clear()
throws DaoException
clear in interface AccessRightDaoclear in class HibernateCRUDDao<AccessRight>DaoExceptionpublic void clearExceptDefaults()
throws DaoException
clearExceptDefaults in interface AccessRightDaoDaoExceptionpublic List<AccessRight> listAccessRights(String serviceGridId) throws DaoException
listAccessRights in interface AccessRightDaoDaoExceptionpublic Iterable<ServicePK> listAccessibleServices(String userGridId, String userId) throws DaoException
listAccessibleServices in interface AccessRightDaoDaoExceptionpublic AccessRightSearchResult searchAccessRights(int startIndex, int maxCount, String userGridId, String userId, String serviceGridId, String[] serviceIds, Order[] orders) throws DaoException
searchAccessRights in interface AccessRightDaoDaoExceptionpublic AccessRightSearchResult searchAccessRightsAccordingToDefaultAndOwner(int startIndex, int maxCount, String userGridId, String userId, String serviceAndOwnerGridId, String[] serviceIds, String ownerUserId, Order[] orders) throws DaoException
searchAccessRightsAccordingToDefaultAndOwner in interface AccessRightDaoDaoExceptionpublic AccessRight getAccessRight(String userGridId, String userId, String serviceGridId, String serviceId) throws DaoException
getAccessRight in interface AccessRightDaoDaoExceptionpublic AccessRight setAccessRight(String userGridId, String userId, String serviceGridId, String serviceId, boolean permitted) throws DaoException
setAccessRight in interface AccessRightDaoDaoExceptionpublic void deleteAccessRight(String userGridId, String userId, String serviceGridId, String serviceId) throws AccessRightNotFoundException, DaoException
deleteAccessRight in interface AccessRightDaoAccessRightNotFoundExceptionDaoExceptionpublic AccessRight getServiceDefaultAccessRight(String serviceGridId, String serviceId) throws DaoException
getServiceDefaultAccessRight in interface AccessRightDaoDaoExceptionpublic AccessRight setServiceDefaultAccessRight(String serviceGridId, String serviceId, boolean permitted) throws DaoException
setServiceDefaultAccessRight in interface AccessRightDaoDaoExceptionpublic void adjustGridDefaultRights(String serviceGridId, String serviceId, boolean permitted) throws DaoException
adjustGridDefaultRights in interface AccessRightDaoDaoExceptionpublic AccessRight getGridDefaultAccessRight(String userGridId, String serviceGridId, String serviceId) throws DaoException
getGridDefaultAccessRight in interface AccessRightDaoDaoExceptionpublic AccessRight setGridDefaultAccessRight(String userGridId, String serviceGridId, String serviceId, boolean permitted) throws DaoException
setGridDefaultAccessRight in interface AccessRightDaoDaoExceptionpublic void deleteGridDefaultAccessRight(String userGridId, String serviceGridId, String serviceId) throws AccessRightNotFoundException, DaoException
deleteGridDefaultAccessRight in interface AccessRightDaoAccessRightNotFoundExceptionDaoExceptionpublic void deleteAccessRightsOfGrid(String serviceGridId) throws DaoException
deleteAccessRightsOfGrid in interface AccessRightDaoDaoExceptionpublic void adjustUserRights(String userGridId, String serviceGridId, String serviceId, String ownerUserId, boolean permitted) throws DaoException
adjustUserRights in interface AccessRightDaoDaoExceptionpublic void deleteAccessRightsOfService(String serviceGridId, String serviceId) throws DaoException
deleteAccessRightsOfService in interface AccessRightDaoDaoExceptionpublic void deleteAccessRightsOfUser(String userGridId, String userId) throws DaoException
deleteAccessRightsOfUser in interface AccessRightDaoDaoException