Coverage Report - org.kuali.rice.kim.service.support.KimTypeService
 
Classes in this File Line Coverage Branch Coverage Complexity
KimTypeService
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2008 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kim.service.support;
 17  
 
 18  
 import java.util.List;
 19  
 
 20  
 import org.kuali.rice.core.util.KeyLabelPair;
 21  
 import org.kuali.rice.kim.bo.types.dto.AttributeDefinitionMap;
 22  
 import org.kuali.rice.kim.bo.types.dto.AttributeSet;
 23  
 
 24  
 /**
 25  
  *  This is the base service interface for handling type-specific behavior.  Types can be attached
 26  
  *  to various objects (currently groups and roles) in KIM to add additional attributes and
 27  
  *  modify their behavior.
 28  
  * 
 29  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 30  
  *
 31  
  */
 32  
 public interface KimTypeService {
 33  
         
 34  
         /**
 35  
          * Get the workflow document type which
 36  
          * will be used for the role qualifiers when routing objects with this type.
 37  
          * 
 38  
          * If no special document type is needed, this method must return null.
 39  
          */
 40  
         String getWorkflowDocumentTypeName();
 41  
         
 42  
         /**
 43  
          * Perform validation on the attributes of an object.  The resultant map
 44  
          * will contain (attributeName,errorMessage) pairs from the validation process.
 45  
          * An empty map or null indicates that there were no errors.
 46  
          * 
 47  
          * This method can be used to perform compound validations across multiple
 48  
          * attributes attached to an object.
 49  
          */
 50  
         AttributeSet validateAttributes(String kimTypeId, AttributeSet attributes);
 51  
 
 52  
         AttributeSet validateAttributesAgainstExisting(String kimTypeId, AttributeSet newAttributes, AttributeSet oldAttributes);
 53  
     
 54  
         AttributeSet validateUnmodifiableAttributes(String kimTypeId, AttributeSet mainAttributes, AttributeSet delegationAttributes);
 55  
         
 56  
         boolean validateUniqueAttributes(String kimTypeId, AttributeSet newAttributes, AttributeSet oldAttributes);
 57  
         
 58  
     List<KeyLabelPair> getAttributeValidValues(String kimTypeId, String attributeName);
 59  
     
 60  
     AttributeDefinitionMap getAttributeDefinitions(String kimTypeId);
 61  
     
 62  
     List<String> getWorkflowRoutingAttributes( String routeLevel );
 63  
     
 64  
     List<String> getUniqueAttributes(String kimTypeId);
 65  
 
 66  
 }