Coverage Report - org.kuali.rice.kim.api.type.KimTypeServiceTemp
 
Classes in this File Line Coverage Branch Coverage Complexity
KimTypeServiceTemp
N/A
N/A
1
 
 1  
 package org.kuali.rice.kim.api.type;
 2  
 
 3  
 
 4  
 
 5  
 import java.util.List;
 6  
 import java.util.Map;
 7  
 
 8  
 /**
 9  
  *  This is the base service interface for handling type-specific behavior.  Types can be attached
 10  
  *  to various objects (currently groups and roles) in KIM to add additional attributes and
 11  
  *  modify their behavior.
 12  
  *
 13  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 14  
  *
 15  
  */
 16  
 public interface KimTypeServiceTemp {
 17  
     /**
 18  
          * Get the workflow document type which
 19  
          * will be used for the role qualifiers when routing objects with this type.
 20  
          *
 21  
          * If no special document type is needed, this method must return null.
 22  
          */
 23  
         String getWorkflowDocumentTypeName();
 24  
 
 25  
         /**
 26  
          * Perform validation on the attributes of an object.  The resultant map
 27  
          * will contain (attributeName,errorMessage) pairs from the validation process.
 28  
          * An empty attributes indicates that there were no errors.
 29  
          *
 30  
          * This method can be used to perform compound validations across multiple
 31  
          * attributes attached to an object.
 32  
          */
 33  
         Map<String, String> validateAttributes(String kimTypeId, Map<String, String> attributes);
 34  
 
 35  
         Map<String, String> validateAttributesAgainstExisting(String kimTypeId, Map<String, String> newAttributes, Map<String, String> oldAttributes);
 36  
 
 37  
         Map<String, String> validateUnmodifiableAttributes(String kimTypeId, Map<String, String> mainAttributes, Map<String, String> delegationAttributes);
 38  
 
 39  
         boolean validateUniqueAttributes(String kimTypeId, Map<String, String> newAttributes, Map<String, String> oldAttributes);
 40  
 
 41  
     Map<String, String> getAttributeValidValues(String kimTypeId, String attributeName);
 42  
 
 43  
     List<String> getWorkflowRoutingAttributes( String routeLevel );
 44  
 
 45  
     List<String> getUniqueAttributes(String kimTypeId);
 46  
 }
 47