Coverage Report - org.kuali.rice.kns.service.RiceApplicationConfigurationService
 
Classes in this File Line Coverage Branch Coverage Complexity
RiceApplicationConfigurationService
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2005-2009 The Kuali Foundation
 3  
  * 
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in
 5  
  * compliance with the License. You may obtain a copy of the License at
 6  
  * 
 7  
  * http://www.opensource.org/licenses/ecl2.php
 8  
  * 
 9  
  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS
 10  
  * IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
 11  
  * language governing permissions and limitations under the License.
 12  
  */
 13  
 package org.kuali.rice.kns.service;
 14  
 
 15  
 import java.util.List;
 16  
 
 17  
 import org.kuali.rice.kns.bo.ParameterDetailType;
 18  
 import org.kuali.rice.kns.datadictionary.AttributeDefinition;
 19  
 
 20  
 /**
 21  
  * This interface defines methods that a KualiConfiguration Service must provide. Provides methods for getting string
 22  
  * resources.
 23  
  */
 24  
 public interface RiceApplicationConfigurationService {
 25  
     /**
 26  
      * Given a property name (parameterName), returns the value associated with it.
 27  
      * 
 28  
      * @param parameterName
 29  
      * @return String associated with the given parameterName
 30  
      */
 31  
     String getConfigurationParameter( String parameterName ); 
 32  
     
 33  
     /**
 34  
      * This method can be used to supplement the list of ParameterDetailTypes defined in the database from other sources.
 35  
      * 
 36  
      * @return List<ParameterDetailedType> containing the detailed types configured in non-database sources
 37  
      */
 38  
     List<ParameterDetailType> getNonDatabaseComponents();
 39  
     
 40  
     /**
 41  
      * Checks whether this application is responsible for the package given.  It will
 42  
      * ensure that it falls within a set of configured parent packages.
 43  
      */
 44  
     boolean isResponsibleForPackage( String packageName );
 45  
     
 46  
     /**
 47  
      * Checks whether this application supports the given business object (whether
 48  
      * it is defined in the data dictionary) 
 49  
      */
 50  
     boolean supportsBusinessObjectClass( String businessObjectClassName );
 51  
     
 52  
     /**
 53  
          * This method will return the attribute definition from the local data dictionary.  It assumes that
 54  
          * the #supportsBusinessObjectClass(java.lang.String) method has already been checked to make sure that
 55  
          * this service will handle that class.  If not present, this method will return null.
 56  
          * 
 57  
          * This method also returns null if the given attribute definition can not be found on the business object.
 58  
      */
 59  
     AttributeDefinition getBusinessObjectAttributeDefinition( String businessObjectClassName, String attributeName );
 60  
     
 61  
     String getBaseLookupUrl( String businessObjectClassName );
 62  
     String getBaseInquiryUrl( String businessObjectClassName );
 63  
     String getBaseHelpUrl( String businessObjectClassName );
 64  
 }