Class S2SFormGeneratorRetrievalServiceImpl
java.lang.Object
org.kuali.coeus.s2sgen.impl.generate.S2SFormGeneratorRetrievalServiceImpl
- All Implemented Interfaces:
S2SFormGeneratorRetrievalService,org.springframework.beans.factory.InitializingBean
@Component("s2SFormGeneratorRetrievalService")
public class S2SFormGeneratorRetrievalServiceImpl
extends Object
implements S2SFormGeneratorRetrievalService, org.springframework.beans.factory.InitializingBean
This class is used as a service implementation that is used to create instances of opportunity form generator classes. It
provides an abstraction level over the different generator class implementations.
- Author:
- Kuali Research Administration Team (kualidev@oncourse.iu.edu)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid<T extends org.apache.xmlbeans.XmlObject>
S2SFormGenerator<T> getS2SGenerator(String namespace) This method is used to create and return a form generator instance.final <T extends org.apache.xmlbeans.XmlObject>
S2SFormGenerator<T> getS2SGenerator(String namespace, String proposalNumber) This method is used to create and return a form generator instance.<T extends org.apache.xmlbeans.XmlObject>
List<S2SFormGenerator<T>> This method is used to create and return form generators instances excluding DynamicForm types.<T extends org.apache.xmlbeans.XmlObject>
List<S2SFormGenerator<T>> getS2SGenerators(Set<String> namespaces, String proposalNumber) This method is used to create and return form generators instances.org.kuali.coeus.propdev.api.s2s.UserAttachedFormServiceorg.apache.xmlbeans.XmlOptionsThis method is to get the namespace prefixes for some individual forms like, Subaward Budget and PHS398_ResearchTrainingProgramPlanvoidsetUserAttachedFormService(org.kuali.coeus.propdev.api.s2s.UserAttachedFormService userAttachedFormService)
-
Constructor Details
-
S2SFormGeneratorRetrievalServiceImpl
public S2SFormGeneratorRetrievalServiceImpl()
-
-
Method Details
-
getS2SGenerator
public <T extends org.apache.xmlbeans.XmlObject> S2SFormGenerator<T> getS2SGenerator(String namespace) throws S2SException Description copied from interface:S2SFormGeneratorRetrievalServiceThis method is used to create and return a form generator instance. Based on the namespace provided as parameter, it instantiates the respective generator class and returns it.- Specified by:
getS2SGeneratorin interfaceS2SFormGeneratorRetrievalService- Parameters:
namespace- the namespace for the generator- Returns:
- S2SFormGenerator form generator instances corresponding to the name space.
- Throws:
S2SException
-
getS2SGenerator
public final <T extends org.apache.xmlbeans.XmlObject> S2SFormGenerator<T> getS2SGenerator(String namespace, String proposalNumber) throws S2SException Description copied from interface:S2SFormGeneratorRetrievalServiceThis method is used to create and return a form generator instance. Based on the namespace provided as parameter, it instantiates the respective generator class and returns it.- Specified by:
getS2SGeneratorin interfaceS2SFormGeneratorRetrievalService- Parameters:
namespace- the namespace for the generatorproposalNumber- a proposal number which is used to first find if a user attached form exists matching the namespace.- Returns:
- S2SFormGenerator form generator instances corresponding to the name space.
- Throws:
S2SException
-
getS2SGenerators
public <T extends org.apache.xmlbeans.XmlObject> List<S2SFormGenerator<T>> getS2SGenerators(Set<String> namespaces, String proposalNumber) throws S2SException Description copied from interface:S2SFormGeneratorRetrievalServiceThis method is used to create and return form generators instances. Based on the namespaces provided as parameter, it instantiates the respective generator class and returns it. The generators in the list are ordered by the generators sort index.- Specified by:
getS2SGeneratorsin interfaceS2SFormGeneratorRetrievalService- Parameters:
namespaces- a set of namespacesproposalNumber- a proposal number which is used to first find if user attached forms exist matching the namespaces.- Returns:
- S2SFormGenerator form generator instances corresponding to the name space.
- Throws:
S2SException
-
getS2SGenerators
public <T extends org.apache.xmlbeans.XmlObject> List<S2SFormGenerator<T>> getS2SGenerators() throws S2SExceptionDescription copied from interface:S2SFormGeneratorRetrievalServiceThis method is used to create and return form generators instances excluding DynamicForm types.- Specified by:
getS2SGeneratorsin interfaceS2SFormGeneratorRetrievalService- Returns:
- S2SFormGenerator form generator instances corresponding to the name space.
- Throws:
S2SException
-
getXmlOptionsPrefixes
public org.apache.xmlbeans.XmlOptions getXmlOptionsPrefixes()Description copied from interface:S2SFormGeneratorRetrievalServiceThis method is to get the namespace prefixes for some individual forms like, Subaward Budget and PHS398_ResearchTrainingProgramPlan- Specified by:
getXmlOptionsPrefixesin interfaceS2SFormGeneratorRetrievalService
-
getUserAttachedFormService
public org.kuali.coeus.propdev.api.s2s.UserAttachedFormService getUserAttachedFormService() -
setUserAttachedFormService
public void setUserAttachedFormService(org.kuali.coeus.propdev.api.s2s.UserAttachedFormService userAttachedFormService) -
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-