public class JsonicAccessRightDao extends Object implements AccessRightDao
Constructor and Description |
---|
JsonicAccessRightDao(JsonicDaoContext 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 gridId) |
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 serviceGridId,
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) |
public JsonicAccessRightDao(JsonicDaoContext context)
public void clear() throws DaoException
clear
in interface AccessRightDao
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 serviceGridId, 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 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 adjustUserRights(String userGridId, String serviceGridId, String serviceId, String ownerUserId, boolean permitted) throws DaoException
adjustUserRights
in interface AccessRightDao
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 void deleteAccessRightsOfGrid(String gridId) throws DaoException
deleteAccessRightsOfGrid
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