本文整理匯總了Java中org.kuali.rice.core.api.exception.RiceRemoteServiceConnectionException類的典型用法代碼示例。如果您正苦於以下問題:Java RiceRemoteServiceConnectionException類的具體用法?Java RiceRemoteServiceConnectionException怎麽用?Java RiceRemoteServiceConnectionException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
RiceRemoteServiceConnectionException類屬於org.kuali.rice.core.api.exception包,在下文中一共展示了RiceRemoteServiceConnectionException類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getCustomActionListAttribute
import org.kuali.rice.core.api.exception.RiceRemoteServiceConnectionException; //導入依賴的package包/類
public CustomActionListAttribute getCustomActionListAttribute() throws ResourceUnavailableException {
CustomActionListAttribute result = null;
RuleAttribute customActionListRuleAttribute = getCustomActionListRuleAttribute();
if (customActionListRuleAttribute != null) {
try {
ExtensionDefinition extensionDefinition =
KewApiServiceLocator.getExtensionRepositoryService().getExtensionById(customActionListRuleAttribute.getId());
if (extensionDefinition != null) {
result = ExtensionUtils.loadExtension(extensionDefinition, customActionListRuleAttribute.getApplicationId());
} else {
LOG.warn("Could not load ExtensionDefinition for " + customActionListRuleAttribute);
}
} catch (RiceRemoteServiceConnectionException e) {
LOG.warn("Unable to connect to load custom action list attribute for " + customActionListRuleAttribute, e);
}
}
return result;
}
示例2: getInInterceptors
import org.kuali.rice.core.api.exception.RiceRemoteServiceConnectionException; //導入依賴的package包/類
public static List<Interceptor<? extends Message>> getInInterceptors() {
try {
return (List<Interceptor<? extends Message>>) getService(KSBConstants.ServiceNames.BUS_IN_INTERCEPTORS);
}
catch(RiceRemoteServiceConnectionException ex) {
// swallow this exception, means no bus wide interceptors defined
return null;
}
}
示例3: getOutInterceptors
import org.kuali.rice.core.api.exception.RiceRemoteServiceConnectionException; //導入依賴的package包/類
public static List<Interceptor<? extends Message>> getOutInterceptors() {
try {
return (List<Interceptor<? extends Message>>) getService(KSBConstants.ServiceNames.BUS_OUT_INTERCEPTORS);
}
catch(RiceRemoteServiceConnectionException ex) {
// swallow this exception, means no bus wide interceptors defined
return null;
}
}
示例4: getDocumentSearchConfiguration
import org.kuali.rice.core.api.exception.RiceRemoteServiceConnectionException; //導入依賴的package包/類
@Override
public DocumentSearchCriteriaConfiguration getDocumentSearchConfiguration(String documentTypeName,
List<String> searchableAttributeNames) {
if (StringUtils.isBlank(documentTypeName)) {
throw new RiceIllegalArgumentException("documentTypeName was null or blank");
}
if (searchableAttributeNames == null) {
throw new RiceIllegalArgumentException("searchableAttributeNames was null");
}
DocumentSearchCriteriaConfiguration.Builder configBuilder = DocumentSearchCriteriaConfiguration.Builder.create();
if (CollectionUtils.isNotEmpty(searchableAttributeNames)) {
try {
List<AttributeFields> searchAttributeFields = new ArrayList<AttributeFields>();
for (String searchableAttributeName : searchableAttributeNames) {
ExtensionDefinition extensionDefinition = getExtensionRepositoryService().getExtensionByName(searchableAttributeName);
if (extensionDefinition == null) {
throw new RiceIllegalArgumentException("Failed to locate a SearchableAttribute with the given name: " + searchableAttributeName);
}
SearchableAttribute searchableAttribute = loadSearchableAttribute(extensionDefinition);
List<RemotableAttributeField> attributeSearchFields = searchableAttribute.getSearchFields(extensionDefinition, documentTypeName);
if (CollectionUtils.isNotEmpty(attributeSearchFields)) {
searchAttributeFields.add(AttributeFields.create(searchableAttributeName, attributeSearchFields));
}
}
configBuilder.setSearchAttributeFields(searchAttributeFields);
} catch (RiceRemoteServiceConnectionException e) {
LOG.warn("Unable to connect to load searchable attributes for document type: " + documentTypeName, e);
}
}
return configBuilder.build();
}
示例5: validateCriteria
import org.kuali.rice.core.api.exception.RiceRemoteServiceConnectionException; //導入依賴的package包/類
@Override
public List<RemotableAttributeError> validateCriteria(DocumentSearchCriteria documentSearchCriteria,
List<String> searchableAttributeNames) {
if (documentSearchCriteria == null) {
throw new RiceIllegalArgumentException("documentSearchCriteria was null or blank");
}
if (searchableAttributeNames == null) {
throw new RiceIllegalArgumentException("searchableAttributeNames was null");
}
try {
List<RemotableAttributeError> searchFieldErrors = new ArrayList<RemotableAttributeError>();
for (String searchableAttributeName : searchableAttributeNames) {
ExtensionDefinition extensionDefinition = getExtensionRepositoryService().getExtensionByName(searchableAttributeName);
if (extensionDefinition == null) {
throw new RiceIllegalArgumentException("Failed to locate a SearchableAttribute with the given name: " + searchableAttributeName);
}
SearchableAttribute searchableAttribute = loadSearchableAttribute(extensionDefinition);
List<RemotableAttributeError> errors = searchableAttribute.validateDocumentAttributeCriteria(extensionDefinition,
documentSearchCriteria);
if (!CollectionUtils.isEmpty(errors)) {
searchFieldErrors.addAll(errors);
}
}
return Collections.unmodifiableList(searchFieldErrors);
} catch (RiceRemoteServiceConnectionException e) {
LOG.warn("Unable to connect to load searchable attributes for criteria: " + documentSearchCriteria, e);
return Collections.emptyList();
}
}
示例6: loadSearchableAttributes
import org.kuali.rice.core.api.exception.RiceRemoteServiceConnectionException; //導入依賴的package包/類
public List<ExtensionHolder<SearchableAttribute>> loadSearchableAttributes() {
List<DocumentTypeAttributeBo> searchableAttributes = getSearchableAttributes();
List<ExtensionHolder<SearchableAttribute>> loadedAttributes = new ArrayList<ExtensionHolder<SearchableAttribute>>();
for (DocumentTypeAttributeBo documentTypeAttribute : searchableAttributes) {
RuleAttribute ruleAttribute = documentTypeAttribute.getRuleAttribute();
try {
ExtensionDefinition extensionDefinition = KewApiServiceLocator.getExtensionRepositoryService().getExtensionById(ruleAttribute.getId());
SearchableAttribute attributeService = ExtensionUtils.loadExtension(extensionDefinition, getApplicationId());
loadedAttributes.add(new ExtensionHolder<SearchableAttribute>(extensionDefinition, attributeService));
} catch (RiceRemoteServiceConnectionException e) {
LOG.warn("Unable to connect to load searchable attribute for " + ruleAttribute, e);
}
}
return loadedAttributes;
}
示例7: getService
import org.kuali.rice.core.api.exception.RiceRemoteServiceConnectionException; //導入依賴的package包/類
public static <T extends Object> T getService(QName serviceName) {
if (serviceName == null) {
throw new IllegalArgumentException("The service name must be non-null.");
}
LOG.debug("GlobalResourceLoader fetching service " + serviceName);
try {
ResourceLoader resourceLoader = getResourceLoader();
return resourceLoader == null ? null : resourceLoader.<T>getService(serviceName);
} catch (RiceRemoteServiceConnectionException ex) {
LOG.warn(ex.getMessage());
return null;
}
}
示例8: getService
import org.kuali.rice.core.api.exception.RiceRemoteServiceConnectionException; //導入依賴的package包/類
public static <T extends Object> T getService(QName serviceName) {
if (serviceName == null) {
throw new IllegalArgumentException("The service name must be non-null.");
}
LOG.debug("GlobalResourceLoader fetching service " + serviceName);
try {
return getResourceLoader().<T>getService(serviceName);
} catch (RiceRemoteServiceConnectionException ex) {
LOG.warn(ex.getMessage());
return null;
}
}