org.kuali.rice.krms.impl.repository
Class PropositionBoServiceImpl

java.lang.Object
  extended by org.kuali.rice.krms.impl.repository.PropositionBoServiceImpl
All Implemented Interfaces:
PropositionBoService

public final class PropositionBoServiceImpl
extends Object
implements PropositionBoService

Implementation of the interface for accessing KRMS repository Proposition related business objects.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
PropositionBoServiceImpl()
           
 
Method Summary
 Set<PropositionDefinition> convertBosToImmutables(Collection<org.kuali.rice.krms.impl.repository.PropositionBo> propositionBos)
           
 void createParameter(PropositionParameter parameter)
          This overridden method creates a PropositionParameter if it does not already exist in the repository.
 PropositionDefinition createProposition(PropositionDefinition prop)
          This overridden method creates a Proposition if it does not already exist in the repository.
 void deleteProposition(String propId)
          This will delete an existing PropositionDefinition.
 org.kuali.rice.krms.impl.repository.PropositionBo from(PropositionDefinition proposition)
          Converts a immutable PropositionDefinition to its mutable PropositionBo counterpart.
 PropositionParameter getParameterById(String id)
          This overridden method gets a parameter by the parameter id
 PropositionParameter getParameterByPropIdAndSequenceNumber(String propId, Integer sequenceNumber)
          This overridden method gets a parameter by the Proposition Id and Sequence Number
 List<PropositionParameter> getParameters(String propId)
          This overridden method retrieves a list of parameters for a given proposition
 PropositionDefinition getPropositionById(String propId)
          This overridden method retrieves a proposition by the give proposition id.
 Set<PropositionDefinition> getPropositionsByRule(String ruleId)
           
 Set<PropositionDefinition> getPropositionsByType(String typeId)
           
 void setBusinessObjectService(BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 PropositionDefinition to(org.kuali.rice.krms.impl.repository.PropositionBo propositionBo)
           
 void updateParameter(PropositionParameter parameter)
          This overridden method updates an existing proposition parameter
 void updateProposition(PropositionDefinition prop)
          This overridden method updates an existing proposition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropositionBoServiceImpl

public PropositionBoServiceImpl()
Method Detail

createProposition

public PropositionDefinition createProposition(PropositionDefinition prop)
This overridden method creates a Proposition if it does not already exist in the repository.

Specified by:
createProposition in interface PropositionBoService
Parameters:
prop - the proposition to create
See Also:
PropositionBoService.createProposition(org.kuali.rice.krms.api.repository.proposition.PropositionDefinition)

updateProposition

public void updateProposition(PropositionDefinition prop)
This overridden method updates an existing proposition

Specified by:
updateProposition in interface PropositionBoService
Parameters:
prop - the proposition to update
See Also:
PropositionBoService.updateProposition(org.kuali.rice.krms.api.repository.proposition.PropositionDefinition)

getPropositionById

public PropositionDefinition getPropositionById(String propId)
This overridden method retrieves a proposition by the give proposition id.

Specified by:
getPropositionById in interface PropositionBoService
Parameters:
propId - the given proposition id
Returns:
a proposition associated with the given proposition id. A null reference is returned if an invalid or non-existent id is supplied.
See Also:
PropositionBoService.getPropositionById(java.lang.String)

getPropositionsByType

public Set<PropositionDefinition> getPropositionsByType(String typeId)
Specified by:
getPropositionsByType in interface PropositionBoService

getPropositionsByRule

public Set<PropositionDefinition> getPropositionsByRule(String ruleId)
Specified by:
getPropositionsByRule in interface PropositionBoService

convertBosToImmutables

public Set<PropositionDefinition> convertBosToImmutables(Collection<org.kuali.rice.krms.impl.repository.PropositionBo> propositionBos)

to

public PropositionDefinition to(org.kuali.rice.krms.impl.repository.PropositionBo propositionBo)

createParameter

public void createParameter(PropositionParameter parameter)
This overridden method creates a PropositionParameter if it does not already exist in the repository.

Specified by:
createParameter in interface PropositionBoService
Parameters:
parameter - the proposition parameter to create
See Also:
PropositionBoService.createParameter(org.kuali.rice.krms.api.repository.proposition.PropositionParameter)

updateParameter

public void updateParameter(PropositionParameter parameter)
This overridden method updates an existing proposition parameter

Specified by:
updateParameter in interface PropositionBoService
Parameters:
parameter - the proposition parameter to update
See Also:
PropositionBoService.updateParameter(org.kuali.rice.krms.api.repository.proposition.PropositionParameter)

deleteProposition

public void deleteProposition(String propId)
Description copied from interface: PropositionBoService
This will delete an existing PropositionDefinition.

Specified by:
deleteProposition in interface PropositionBoService
Parameters:
propId - the proposition to delete

getParameters

public List<PropositionParameter> getParameters(String propId)
This overridden method retrieves a list of parameters for a given proposition

Specified by:
getParameters in interface PropositionBoService
Parameters:
propId - the given proposition id
Returns:
a list of PropositionParameters associated with the given proposition id. A null reference is returned if an invalid or non-existant id is supplied.
See Also:
org.kuali.rice.krms.impl.repository.PropositionBoService#getParameters(java.lang.Long)

getParameterById

public PropositionParameter getParameterById(String id)
This overridden method gets a parameter by the parameter id

Specified by:
getParameterById in interface PropositionBoService
Parameters:
id - the given proposition id
Returns:
an immutable PropositionParameters associated with the given id. A null reference is returned if an invalid or non-existant id is supplied.
See Also:
PropositionBoService.getParameterById(java.lang.String)

getParameterByPropIdAndSequenceNumber

public PropositionParameter getParameterByPropIdAndSequenceNumber(String propId,
                                                                  Integer sequenceNumber)
This overridden method gets a parameter by the Proposition Id and Sequence Number

Specified by:
getParameterByPropIdAndSequenceNumber in interface PropositionBoService
Parameters:
propId - the given proposition id
Returns:
an immutable PropositionParameters associated with the given proposition id and sequence number. A null reference is returned if an invalid or non-existant.
See Also:
org.kuali.rice.krms.impl.repository.PropositionBoService#getParameterByPropIdAndSequenceNumber(java.lang.String, java.lang.String)

from

public org.kuali.rice.krms.impl.repository.PropositionBo from(PropositionDefinition proposition)
Converts a immutable PropositionDefinition to its mutable PropositionBo counterpart.

Parameters:
proposition - the immutable object.
Returns:
a PropositionBo the mutable PropositionBo.

setBusinessObjectService

public void setBusinessObjectService(BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService - The businessObjectService to set.


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.