Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2013 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 package org.kuali.rice.kew.impl.extension;
 import java.util.List;

Reference implementation of the ExtensionRepositoryService. This implementation essentially sits on top of the legacy "RuleAttribute" service.

Kuali Rice Team (
 public class ExtensionRepositoryServiceImpl implements ExtensionRepositoryService {

Private constructor used only by JAXB.
     private ExtensionRepositoryServiceImpl() {
         this. = null;
     @XmlElement(name = ., required = true)
         if (StringUtils.isBlank(id)) {
             throw new RiceIllegalArgumentException("id was null or blank");
         RuleAttribute ruleAttribute = .findByRuleAttributeId(id);
         return translateFromRuleAttribute(ruleAttribute);
         if (StringUtils.isBlank(name)) {
             throw new RiceIllegalArgumentException("name was null or blank");
         RuleAttribute ruleAttribute = .findByName(name);
         return translateFromRuleAttribute(ruleAttribute);
             String resourceDescriptorthrows RiceIllegalArgumentException {
         if (StringUtils.isBlank(resourceDescriptor)) {
             throw new RiceIllegalArgumentException("resourceDescriptor was null or blank");
         List<RuleAttributeruleAttributes = .findByClassName(resourceDescriptor);
         if (CollectionUtils.isNotEmpty(ruleAttributes)) {
             List<ExtensionDefinitiondefinitions = new ArrayList<ExtensionDefinition>();
             for (RuleAttribute ruleAttribute : ruleAttributes) {
             return Collections.unmodifiableList(definitions);
         return Collections.emptyList();

Sets the rule attribute service.

ruleAttributeService the rule attribute service to set.
    public void setRuleAttributeService(RuleAttributeService ruleAttributeService) {
        this. = ruleAttributeService;
    private final Collection<Element_futureElements = null;

Defines some internal constants used on this class.
    static class Constants {
        static final String ROOT_ELEMENT_NAME = "extensionRepositoryService";
        static final String TYPE_NAME = "ExtensionRepositoryService";

A private class which exposes constants which define the XML element names to use when this object is marshalled to XML.
    static class Elements {
        static final String RULE_ATTRIBUTE_SERVICE = "ruleAttributeService";
New to GrepCode? Check out our FAQ X