当前位置: 首页>>代码示例>>Java>>正文


Java DocumentSearchCustomizationHandlerService类代码示例

本文整理汇总了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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:20,代码来源:DocumentSearchCustomizationMediatorImpl.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:18,代码来源:DocumentSearchCustomizationMediatorImpl.java

示例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;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:17,代码来源:DocumentSearchCustomizationMediatorImpl.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:DocumentSearchCustomizationMediatorImpl.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:DocumentSearchCustomizationMediatorImpl.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:9,代码来源:DocumentSearchCustomizationMediatorImpl.java

示例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);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:5,代码来源:KewFrameworkServiceLocator.java


注:本文中的org.kuali.rice.kew.framework.document.search.DocumentSearchCustomizationHandlerService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。