|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zeroexchange.resource.read.DAOResourceReader
public class DAOResourceReader
The default implementation of the resource service.
Constructor Summary | |
---|---|
DAOResourceReader()
|
Method Summary | ||
---|---|---|
protected void |
addProcessors(ProcessorAwareDataSet<Resource> dataSet,
SortDescriptor sortDescriptor,
Object resourcesFilter)
Adds the sort/filtering processors. |
|
SlicingDataSet<Resource> |
getContractResources(Integer contractId,
SortDescriptor sortDescriptor,
Object resourcesFilter)
Returns the resource for the specified contract. |
|
PropertySpecification |
getPropertySpecification(Resource resource,
String propertyName)
Returns property specification. |
|
|
getResource(Integer resourceId)
Returns the resource by its id. |
|
DictionaryItem |
getUnitOfMeasure(Resource resource)
Deprecated. |
|
SlicingDataSet<Resource> |
getUserRelatedResources(int userId,
SortDescriptor sortDescriptor,
String filterQuery)
Returns resources where user is participant. |
|
Collection<Resource> |
getUserResources(int userId,
Set<Integer> resourcesIds)
Returns resources belonging to the current user by their PKs. |
|
boolean |
isResourceAccepted(Resource resource)
Returns true if the resource is accepted by the partner of the specified user. |
|
boolean |
isUserInRole(Resource resource,
TenderType role,
User flowUser)
|
|
boolean |
isUserParticipant(Resource resource,
Integer currentUserId)
Returns true if the resource have the tender from the specified user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DAOResourceReader()
Method Detail |
---|
public PropertySpecification getPropertySpecification(Resource resource, String propertyName) throws BusinessLogicException
getPropertySpecification
in interface ResourceReader
BusinessLogicException
public Collection<Resource> getUserResources(int userId, Set<Integer> resourcesIds)
getUserResources
in interface ResourceReader
public <T extends Resource> T getResource(Integer resourceId)
getResource
in interface ResourceReader
public SlicingDataSet<Resource> getUserRelatedResources(int userId, SortDescriptor sortDescriptor, String filterQuery)
getUserRelatedResources
in interface ResourceReader
public SlicingDataSet<Resource> getContractResources(Integer contractId, SortDescriptor sortDescriptor, Object resourcesFilter)
getContractResources
in interface ResourceReader
protected void addProcessors(ProcessorAwareDataSet<Resource> dataSet, SortDescriptor sortDescriptor, Object resourcesFilter)
public boolean isUserInRole(Resource resource, TenderType role, User flowUser)
isUserInRole
in interface ResourceReader
public boolean isUserParticipant(Resource resource, Integer currentUserId)
isUserParticipant
in interface ResourceReader
resource
- TODOpublic boolean isResourceAccepted(Resource resource)
isResourceAccepted
in interface ResourceReader
resource
- TODO@Deprecated public DictionaryItem getUnitOfMeasure(Resource resource)
getUnitOfMeasure
in interface ResourceReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |