public class P2PGridBasisAccessLimitDao extends Object implements DataDao, AccessLimitDao
Constructor and Description |
---|
P2PGridBasisAccessLimitDao(AccessLimitDao dao,
DaoContext context)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
clearExceptDefaults() |
void |
deleteAccessLimit(String userGridId,
String userId,
String serviceGridId,
String serviceId,
Period period,
LimitType limitType) |
void |
deleteAccessLimits(String userGridId,
String userId,
String serviceGridId,
String serviceId) |
void |
deleteAccessLimitsOfGrid(String gridId) |
void |
deleteAccessLimitsOfService(String serviceGridId,
String serviceId) |
void |
deleteAccessLimitsOfUser(String userGridId,
String userId) |
AccessLimit |
getAccessLimit(String userGridId,
String userId,
String serviceGridId,
String serviceId,
Period period,
LimitType limitType) |
List<AccessLimit> |
getAccessLimits(String userGridId,
String userId,
String serviceGridId,
String serviceId) |
AccessLimit |
getServiceDefaultAccessLimit(String userGridId,
String serviceGridId,
String serviceId,
Period period,
LimitType limitType) |
List<AccessLimit> |
getServiceDefaultAccessLimits(String userGridId,
String serviceGridId,
String serviceId) |
List<AccessLimit> |
listAccessLimits(String serviceGridId) |
void |
removeEntityListener() |
AccessLimitSearchResult |
searchAccessLimits(int startIndex,
int maxCount,
String userGridId,
String userId,
String serviceGridId,
String[] serviceIds,
Order[] orders) |
AccessLimit |
setAccessLimit(String userGridId,
String userId,
String serviceGridId,
String serviceId,
Period period,
LimitType limitType,
int limitCount) |
void |
setEntityListener() |
void |
setServiceDefaultAccessLimit(String userGridId,
String serviceGridId,
String serviceId,
Period period,
LimitType limitType,
int limit) |
boolean |
updateDataSource(Data data) |
boolean |
updateDataTarget(Data data) |
public P2PGridBasisAccessLimitDao(AccessLimitDao 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 AccessLimitDao
DaoException
public void clearExceptDefaults() throws DaoException
clearExceptDefaults
in interface AccessLimitDao
DaoException
public void deleteAccessLimit(String userGridId, String userId, String serviceGridId, String serviceId, Period period, LimitType limitType) throws AccessLimitNotFoundException, DaoException
deleteAccessLimit
in interface AccessLimitDao
AccessLimitNotFoundException
DaoException
public void deleteAccessLimits(String userGridId, String userId, String serviceGridId, String serviceId) throws DaoException
deleteAccessLimits
in interface AccessLimitDao
DaoException
public void deleteAccessLimitsOfGrid(String gridId) throws DaoException
deleteAccessLimitsOfGrid
in interface AccessLimitDao
DaoException
public void deleteAccessLimitsOfService(String serviceGridId, String serviceId) throws DaoException
deleteAccessLimitsOfService
in interface AccessLimitDao
DaoException
public void deleteAccessLimitsOfUser(String userGridId, String userId) throws DaoException
deleteAccessLimitsOfUser
in interface AccessLimitDao
DaoException
public AccessLimit getAccessLimit(String userGridId, String userId, String serviceGridId, String serviceId, Period period, LimitType limitType) throws AccessLimitNotFoundException, DaoException
getAccessLimit
in interface AccessLimitDao
AccessLimitNotFoundException
DaoException
public List<AccessLimit> getAccessLimits(String userGridId, String userId, String serviceGridId, String serviceId) throws DaoException
getAccessLimits
in interface AccessLimitDao
DaoException
public AccessLimit getServiceDefaultAccessLimit(String userGridId, String serviceGridId, String serviceId, Period period, LimitType limitType) throws DaoException
getServiceDefaultAccessLimit
in interface AccessLimitDao
DaoException
public List<AccessLimit> getServiceDefaultAccessLimits(String userGridId, String serviceGridId, String serviceId) throws DaoException
getServiceDefaultAccessLimits
in interface AccessLimitDao
DaoException
public List<AccessLimit> listAccessLimits(String serviceGridId) throws DaoException
listAccessLimits
in interface AccessLimitDao
DaoException
public AccessLimitSearchResult searchAccessLimits(int startIndex, int maxCount, String userGridId, String userId, String serviceGridId, String[] serviceIds, Order[] orders) throws DaoException
searchAccessLimits
in interface AccessLimitDao
DaoException
public AccessLimit setAccessLimit(String userGridId, String userId, String serviceGridId, String serviceId, Period period, LimitType limitType, int limitCount) throws DaoException
setAccessLimit
in interface AccessLimitDao
DaoException
public void setServiceDefaultAccessLimit(String userGridId, String serviceGridId, String serviceId, Period period, LimitType limitType, int limit) throws DaoException
setServiceDefaultAccessLimit
in interface AccessLimitDao
DaoException