|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.utah.further.mdr.common.asset.AbstractAssetService
edu.utah.further.mdr.impl.service.asset.AssetServiceImpl
@Implementation @Service(value="assetService") @Transactional(readOnly=true) public class AssetServiceImpl
Asset service implementation.
-----------------------------------------------------------------------------------
(c) 2008-2011 FURTHeR Project, AVP Health Sciences IT Office, University of Utah
Contact: Dr. Scott Narus <scott.narus@hsc.utah.edu>
Biomedical Informatics, 26 South 2000 East
Room 5775 HSEB, Salt Lake City, UT 84112
Day Phone: 1-801-213-3288
-----------------------------------------------------------------------------------
<oren.livne@utah.edu>
Constructor Summary | |
---|---|
AssetServiceImpl()
|
Method Summary | ||
---|---|---|
Asset |
findAssetById(Long id)
Find an asset by unique identifier. |
|
List<Asset> |
findAssetsByLikeLabel(String label)
Find assets that match (LIKE) an asset label. |
|
Resource |
findResourceById(Long id)
Find a resource by unique identifier. |
|
List<Resource> |
findResourcesByLikeTypeLabel(String typeLabel)
Find resources that match (LIKE) a resource type label. |
|
List<Resource> |
findResourcesByTypeId(Long typeId)
Find resources that match a resource type identifier. |
|
List<ResourceType> |
findResourceTypesByLikeTypeLabel(String typeLabel)
Find resource types that match (LIKE) a resource type label. |
|
Resource |
getActiveResourceByPath(String path)
|
|
Resource |
getActiveResourceByPathHelper(String path)
A helper method whose purpose is to filter the resource using AOP. |
|
|
getResourceContent(Class<T> type,
Long id)
Return the content of a resource by unique resource identifier. |
|
String |
getTransformedResource(DocumentType docType,
String docPath,
TransformType transType,
String transPath,
Map<String,String> params)
|
|
void |
setDao(Dao dao)
Set a new value for the dao property. |
|
void |
setDaoEager(Dao daoEager)
Set a new value for the daoEager property. |
|
void |
setFetchProperties(boolean fetchProperties)
Set a new value for the fetchProperties property. |
|
void |
setXqueryService(XQueryService xqueryService)
Set a new value for the xqueryService property. |
Methods inherited from class edu.utah.further.mdr.common.asset.AbstractAssetService |
---|
getActiveResourceContentByPath, getActiveResourceInputstreamByPath, getResolver, getResourceContentService, getSelf, setResolver, setResourceContentService |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssetServiceImpl()
Method Detail |
---|
public Asset findAssetById(Long id)
id
- asset unique identifier to look for
null
AssetService.findAssetById(java.lang.Long)
public List<Asset> findAssetsByLikeLabel(String label)
label
- asset label (description) substring
edu.utah.further.mdr.api.service.asset.AssetService#findAssetsByLikeLabel(java.lang.Long)
@Filtered public Resource findResourceById(Long id)
id
- resource unique identifier to look for
null
AssetService.findAssetById(java.lang.Long)
@Filtered public List<Resource> findResourcesByTypeId(Long typeId)
typeId
- resource type identifier to look for
AssetService.findResourcesByTypeId(java.lang.Long)
@Filtered public List<Resource> findResourcesByLikeTypeLabel(String typeLabel)
typeLabel
- resource type label (description) substring
edu.utah.further.mdr.api.service.asset.AssetService#findResourcesByLikeTypeLabel(java.lang.Long)
public Resource getActiveResourceByPath(String path)
path
-
AssetService.getActiveResourceByPath(java.lang.String)
public <T> T getResourceContent(Class<T> type, Long id)
id
- resource unique identifier to look forclazz
- the type of resource to return
null
ClassCastException
- if the cast to type T
failsAssetService.findAssetById(java.lang.Long)
public List<ResourceType> findResourceTypesByLikeTypeLabel(String typeLabel)
typeLabel
- resource type label (description) substring
edu.utah.further.mdr.api.service.asset.AssetService#findResourceTypesByLikeTypeLabel(java.lang.Long)
public String getTransformedResource(DocumentType docType, String docPath, TransformType transType, String transPath, Map<String,String> params)
public void setDao(Dao dao)
dao
- the dao to setpublic void setDaoEager(Dao daoEager)
daoEager
- the daoEager to setpublic void setFetchProperties(boolean fetchProperties)
fetchProperties
- the fetchProperties to setpublic void setXqueryService(XQueryService xqueryService)
xqueryService
- the xqueryService to set@Filtered public Resource getActiveResourceByPathHelper(String path)
path
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |