本文整理汇总了Java中org.kuali.rice.kew.framework.document.search.DocumentSearchCustomizationHandlerService类的典型用法代码示例。如果您正苦于以下问题:Java DocumentSearchCustomizationHandlerService类的具体用法?Java DocumentSearchCustomizationHandlerService怎么用?Java DocumentSearchCustomizationHandlerService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DocumentSearchCustomizationHandlerService类属于org.kuali.rice.kew.framework.document.search包,在下文中一共展示了DocumentSearchCustomizationHandlerService类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: customizeResults
import org.kuali.rice.kew.framework.document.search.DocumentSearchCustomizationHandlerService; //导入依赖的package包/类
@Override
public DocumentSearchResultValues customizeResults(DocumentType documentType,
DocumentSearchCriteria documentSearchCriteria, DocumentSearchResults results) {
if (!results.getSearchResults().isEmpty()) {
DocumentTypeAttributeBo customizerAttribute = documentType.getCustomizerAttribute();
if (customizerAttribute != null) {
DocumentSearchCustomizationHandlerService service = loadCustomizationService(customizerAttribute.getRuleAttribute().getApplicationId());
if (service.getEnabledCustomizations(documentType.getName(), customizerAttribute.getRuleAttribute().getName()).contains(
DocumentSearchCustomization.RESULTS)) {
DocumentSearchResultValues customizedResults = service.customizeResults(documentSearchCriteria, results.getSearchResults(), customizerAttribute.getRuleAttribute().getName());
if (customizedResults != null) {
return customizedResults;
}
}
}
return null;
}
return null;
}
示例2: customizeResultSetConfiguration
import org.kuali.rice.kew.framework.document.search.DocumentSearchCustomizationHandlerService; //导入依赖的package包/类
@Override
public DocumentSearchResultSetConfiguration customizeResultSetConfiguration(DocumentType documentType,
DocumentSearchCriteria documentSearchCriteria) {
DocumentTypeAttributeBo customizerAttribute = documentType.getCustomizerAttribute();
if (customizerAttribute != null) {
DocumentSearchCustomizationHandlerService service = loadCustomizationService(customizerAttribute.getRuleAttribute().getApplicationId());
if (service.getEnabledCustomizations(documentType.getName(), customizerAttribute.getRuleAttribute().getName()).contains(
DocumentSearchCustomization.RESULT_SET_FIELDS)) {
DocumentSearchResultSetConfiguration resultSetConfiguration = service.customizeResultSetConfiguration(
documentSearchCriteria, customizerAttribute.getRuleAttribute().getName());
if (resultSetConfiguration != null) {
return resultSetConfiguration;
}
}
}
return null;
}
示例3: customizeResults
import org.kuali.rice.kew.framework.document.search.DocumentSearchCustomizationHandlerService; //导入依赖的package包/类
@Override
public DocumentSearchResultValues customizeResults(DocumentType documentType,
DocumentSearchCriteria documentSearchCriteria, DocumentSearchResults results) {
DocumentTypeAttributeBo customizerAttribute = documentType.getCustomizerAttribute();
if (customizerAttribute != null) {
DocumentSearchCustomizationHandlerService service = loadCustomizationService(customizerAttribute.getRuleAttribute().getApplicationId());
if (service.getEnabledCustomizations(documentType.getName(), customizerAttribute.getRuleAttribute().getName()).contains(
DocumentSearchCustomization.RESULTS)) {
DocumentSearchResultValues customizedResults = service.customizeResults(documentSearchCriteria, results.getSearchResults(), customizerAttribute.getRuleAttribute().getName());
if (customizedResults != null) {
return customizedResults;
}
}
}
return null;
}
示例4: customizeCriteria
import org.kuali.rice.kew.framework.document.search.DocumentSearchCustomizationHandlerService; //导入依赖的package包/类
@Override
public DocumentSearchCriteria customizeCriteria(DocumentType documentType, DocumentSearchCriteria documentSearchCriteria) {
DocumentTypeAttributeBo customizerAttribute = documentType.getCustomizerAttribute();
if (customizerAttribute != null) {
DocumentSearchCustomizationHandlerService service = loadCustomizationService(customizerAttribute.getRuleAttribute().getApplicationId());
if (service.getEnabledCustomizations(documentType.getName(), customizerAttribute.getRuleAttribute().getName()).contains(
DocumentSearchCustomization.CRITERIA)) {
DocumentSearchCriteria customizedCriteria = service.customizeCriteria(documentSearchCriteria, customizerAttribute.getRuleAttribute().getName());
if (customizedCriteria != null) {
return customizedCriteria;
}
}
}
return null;
}
示例5: customizeClearCriteria
import org.kuali.rice.kew.framework.document.search.DocumentSearchCustomizationHandlerService; //导入依赖的package包/类
@Override
public DocumentSearchCriteria customizeClearCriteria(DocumentType documentType, DocumentSearchCriteria documentSearchCriteria) {
DocumentTypeAttributeBo customizerAttribute = documentType.getCustomizerAttribute();
if (customizerAttribute != null) {
DocumentSearchCustomizationHandlerService service = loadCustomizationService(customizerAttribute.getRuleAttribute().getApplicationId());
if (service.getEnabledCustomizations(documentType.getName(), customizerAttribute.getRuleAttribute().getName()).contains(
DocumentSearchCustomization.CLEAR_CRITERIA)) {
DocumentSearchCriteria customizedCriteria = service.customizeClearCriteria(documentSearchCriteria, customizerAttribute.getRuleAttribute().getName());
if (customizedCriteria != null) {
return customizedCriteria;
}
}
}
return null;
}
示例6: loadCustomizationService
import org.kuali.rice.kew.framework.document.search.DocumentSearchCustomizationHandlerService; //导入依赖的package包/类
protected DocumentSearchCustomizationHandlerService loadCustomizationService(String applicationId) {
DocumentSearchCustomizationHandlerService service = KewFrameworkServiceLocator.getDocumentSearchCustomizationHandlerService(
applicationId);
if (service == null) {
throw new WorkflowRuntimeException("Failed to locate DocumentSearchCustomizationService for applicationId: " + applicationId);
}
return service;
}
示例7: getDocumentSearchCustomizationHandlerService
import org.kuali.rice.kew.framework.document.search.DocumentSearchCustomizationHandlerService; //导入依赖的package包/类
public static DocumentSearchCustomizationHandlerService getDocumentSearchCustomizationHandlerService(
String applicationId) {
return getServiceOnBus(DOCUMENT_SEARCH_CUSTOMIZATION_HANDLER_SERVICE, applicationId);
}