Interface DocumentTypeQueryService
- All Superinterfaces:
org.kuali.rice.core.framework.impex.xml.XmlLoader
- All Known Subinterfaces:
DocumentTypeService
- All Known Implementing Classes:
DocumentTypeServiceImpl
public interface DocumentTypeQueryService
extends org.kuali.rice.core.framework.impex.xml.XmlLoader
A service for querying document type stuff for plugins without exposing the document type service.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionfind(DocumentType documentType, String docGroupName, boolean climbHierarchy) findByDocumentId(String documentId) Returns the DocumentType of the Document with the given ID.findByName(String name) findRootDocumentType(DocumentType docType) Methods inherited from interface org.kuali.rice.core.framework.impex.xml.XmlLoader
loadXml
-
Method Details
-
findById
@Cacheable(value="http://rice.kuali.org/kew/v2_0/DocumentTypeType", key="\'{BO}\' + \'documentTypeId=\' + #p0") DocumentType findById(String documentTypeId) -
findByName
@Cacheable(value="http://rice.kuali.org/kew/v2_0/DocumentTypeType", key="\'{BO}\' + \'name=\' + #p0") DocumentType findByName(String name) -
find
@Cacheable(value="http://rice.kuali.org/kew/v2_0/DocumentTypeType", key="\'{BO}\' + \'documentTypeId=\' + #p0.getId() + \'|\' + \'name=\' + #p0.getName() + \'|\' + \'label=\' + #p0.getLabel() + \'|\' + \'active=\' + #p0.isActive() +\'docGroupName=\' + #p1 + \'|\' + \'climbHierarchy=\' + #p2") Collection<DocumentType> find(DocumentType documentType, String docGroupName, boolean climbHierarchy) -
findRootDocumentType
@Cacheable(value="http://rice.kuali.org/kew/v2_0/DocumentTypeType", key="\'{BO}{root}\' + \'documentTypeId=\' + #p0.getId()") DocumentType findRootDocumentType(DocumentType docType) -
findByDocumentId
@Cacheable(value="http://rice.kuali.org/kew/v2_0/DocumentTypeType", key="\'{BO}\' + \'documentId=\' + #p0") DocumentType findByDocumentId(String documentId) Returns the DocumentType of the Document with the given ID.- Since:
- 2.3
-