public class P2PGridBasisAccessRightDao extends Object implements DataDao, AccessRightDao
Constructor and Description |
---|
P2PGridBasisAccessRightDao(AccessRightDao dao,
DaoContext context)
The constructor.
|
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) |
void |
removeEntityListener() |
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) |
void |
setEntityListener() |
AccessRight |
setGridDefaultAccessRight(String userGridId,
String serviceGridId,
String serviceId,
boolean permitted) |
AccessRight |
setServiceDefaultAccessRight(String serviceGridId,
String serviceId,
boolean permitted) |
boolean |
updateDataSource(Data data) |
boolean |
updateDataTarget(Data data) |
public P2PGridBasisAccessRightDao(AccessRightDao dao, DaoContext context)
dao
- public void setEntityListener()
setEntityListener
in interface DataDao
public void removeEntityListener()
removeEntityListener
in interface DataDao
public boolean updateDataSource(Data data) throws DataDaoException, UnmatchedDataTypeException
updateDataSource
in interface DataDao
DataDaoException
UnmatchedDataTypeException
public boolean updateDataTarget(Data data) throws DataDaoException, UnmatchedDataTypeException
updateDataTarget
in interface DataDao
DataDaoException
UnmatchedDataTypeException
public void clear() throws DaoException
clear
in interface AccessRightDao
DaoException
public void clearExceptDefaults() throws DaoException
clearExceptDefaults
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 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
public AccessRight getAccessRight(String userGridId, String userId, String serviceGridId, String serviceId) throws DaoException
getAccessRight
in interface AccessRightDao
DaoException
public List<AccessRight> listAccessRights(String serviceGridId) throws DaoException
listAccessRights
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 setAccessRight(String userGridId, String userId, String serviceGridId, String serviceId, boolean permitted) throws DaoException
setAccessRight
in interface AccessRightDao
DaoException
public Iterable<ServicePK> listAccessibleServices(String userGridId, String userid) throws DaoException
listAccessibleServices
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 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