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, update
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact
public HibernateAccessRightDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface AccessRightDao
clear
in class HibernateCRUDDao<AccessRight>
DaoException
public void clearExceptDefaults() throws DaoException
clearExceptDefaults
in interface AccessRightDao
DaoException
public List<AccessRight> listAccessRights(String serviceGridId) throws DaoException
listAccessRights
in interface AccessRightDao
DaoException
public Iterable<ServicePK> listAccessibleServices(String userGridId, String userId) throws DaoException
listAccessibleServices
in interface AccessRightDao
DaoException
public AccessRightSearchResult searchAccessRights(int startIndex, int maxCount, String userGridId, String userId, String serviceGridId, String[] serviceIds, Order[] orders) throws DaoException
searchAccessRights
in interface AccessRightDao
DaoException
public AccessRightSearchResult searchAccessRightsAccordingToDefaultAndOwner(int startIndex, int maxCount, String userGridId, String userId, String serviceAndOwnerGridId, String[] serviceIds, String ownerUserId, Order[] orders) throws DaoException
searchAccessRightsAccordingToDefaultAndOwner
in interface AccessRightDao
DaoException
public AccessRight getAccessRight(String userGridId, String userId, String serviceGridId, String serviceId) throws DaoException
getAccessRight
in interface AccessRightDao
DaoException
public AccessRight setAccessRight(String userGridId, String userId, String serviceGridId, String serviceId, boolean permitted) throws DaoException
setAccessRight
in interface AccessRightDao
DaoException
public void deleteAccessRight(String userGridId, String userId, String serviceGridId, String serviceId) throws AccessRightNotFoundException, DaoException
deleteAccessRight
in interface AccessRightDao
AccessRightNotFoundException
DaoException
public AccessRight getServiceDefaultAccessRight(String serviceGridId, String serviceId) throws DaoException
getServiceDefaultAccessRight
in interface AccessRightDao
DaoException
public AccessRight setServiceDefaultAccessRight(String serviceGridId, String serviceId, boolean permitted) throws DaoException
setServiceDefaultAccessRight
in interface AccessRightDao
DaoException
public void adjustGridDefaultRights(String serviceGridId, String serviceId, boolean permitted) throws DaoException
adjustGridDefaultRights
in interface AccessRightDao
DaoException
public AccessRight getGridDefaultAccessRight(String userGridId, String serviceGridId, String serviceId) throws DaoException
getGridDefaultAccessRight
in interface AccessRightDao
DaoException
public AccessRight setGridDefaultAccessRight(String userGridId, String serviceGridId, String serviceId, boolean permitted) throws DaoException
setGridDefaultAccessRight
in interface AccessRightDao
DaoException
public void deleteGridDefaultAccessRight(String userGridId, String serviceGridId, String serviceId) throws AccessRightNotFoundException, DaoException
deleteGridDefaultAccessRight
in interface AccessRightDao
AccessRightNotFoundException
DaoException
public void deleteAccessRightsOfGrid(String serviceGridId) throws DaoException
deleteAccessRightsOfGrid
in interface AccessRightDao
DaoException
public void adjustUserRights(String userGridId, String serviceGridId, String serviceId, String ownerUserId, boolean permitted) throws DaoException
adjustUserRights
in interface AccessRightDao
DaoException
public void deleteAccessRightsOfService(String serviceGridId, String serviceId) throws DaoException
deleteAccessRightsOfService
in interface AccessRightDao
DaoException
public void deleteAccessRightsOfUser(String userGridId, String userId) throws DaoException
deleteAccessRightsOfUser
in interface AccessRightDao
DaoException