Interface PropositionBoService
- All Known Implementing Classes:
PropositionBoServiceImpl
public interface PropositionBoService
This is the interface for accessing KRMS repository Proposition related
business objects.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateParameter(org.kuali.rice.krms.api.repository.proposition.PropositionParameter parameter) This will create aPropositionParameterexactly like the parameter passed in.org.kuali.rice.krms.api.repository.proposition.PropositionDefinitioncreateProposition(org.kuali.rice.krms.api.repository.proposition.PropositionDefinition prop) This will create aPropositionDefinitionexactly like the parameter passed in.voiddeleteProposition(String propId) This will delete an existingPropositionDefinition.org.kuali.rice.krms.api.repository.proposition.PropositionParameterLookup the proposition parameter based on the id.org.kuali.rice.krms.api.repository.proposition.PropositionParametergetParameterByPropIdAndSequenceNumber(String propId, Integer sequenceNumber) Lookup the proposition parameter based on the proposition id and sequence number.List<org.kuali.rice.krms.api.repository.proposition.PropositionParameter> getParameters(String propId) Lookup the proposition parameters based on the given proposition id.org.kuali.rice.krms.api.repository.proposition.PropositionDefinitiongetPropositionById(String propId) Lookup the proposition based on the given proposition id.Set<org.kuali.rice.krms.api.repository.proposition.PropositionDefinition> getPropositionsByRule(String ruleId) Set<org.kuali.rice.krms.api.repository.proposition.PropositionDefinition> getPropositionsByType(String typeId) org.kuali.rice.krms.api.repository.proposition.PropositionParameterupdateParameter(org.kuali.rice.krms.api.repository.proposition.PropositionParameter parameter) This will update aPropositionParameter.org.kuali.rice.krms.api.repository.proposition.PropositionDefinitionupdateProposition(org.kuali.rice.krms.api.repository.proposition.PropositionDefinition prop) This will update an existingPropositionDefinition.
-
Method Details
-
createProposition
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/PropositionType","http://rice.kuali.org/krms/v2_0/RuleType"}, allEntries=true) org.kuali.rice.krms.api.repository.proposition.PropositionDefinition createProposition(org.kuali.rice.krms.api.repository.proposition.PropositionDefinition prop) This will create aPropositionDefinitionexactly like the parameter passed in.- Parameters:
prop- the proposition to create- Throws:
IllegalArgumentException- if the proposition is nullIllegalStateException- if the proposition already exists in the system
-
updateProposition
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/PropositionType","http://rice.kuali.org/krms/v2_0/RuleType"}, allEntries=true) org.kuali.rice.krms.api.repository.proposition.PropositionDefinition updateProposition(org.kuali.rice.krms.api.repository.proposition.PropositionDefinition prop) This will update an existingPropositionDefinition.- Parameters:
prop- the proposition to update- Throws:
IllegalArgumentException- if the proposition is nullIllegalStateException- if the proposition does not exist in the system
-
deleteProposition
This will delete an existingPropositionDefinition.- Parameters:
propId- the proposition to delete- Throws:
IllegalArgumentException- if the proposition is nullIllegalStateException- if the proposition does not exist in the system
-
getPropositionById
@Cacheable(value="http://rice.kuali.org/krms/v2_0/PropositionType", key="\'propId=\' + #p0") org.kuali.rice.krms.api.repository.proposition.PropositionDefinition getPropositionById(String propId) Lookup the proposition based on the given proposition id.- 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.
-
getPropositionsByType
-
getPropositionsByRule
-
createParameter
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/PropositionType","http://rice.kuali.org/krms/v2_0/RuleType"}, allEntries=true) void createParameter(org.kuali.rice.krms.api.repository.proposition.PropositionParameter parameter) This will create aPropositionParameterexactly like the parameter passed in.- Parameters:
parameter- the proposition parameter to create- Throws:
IllegalArgumentException- if the proposition parameter is nullIllegalStateException- if the proposition parameter is already existing in the system
-
updateParameter
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/PropositionType","http://rice.kuali.org/krms/v2_0/RuleType"}, allEntries=true) org.kuali.rice.krms.api.repository.proposition.PropositionParameter updateParameter(org.kuali.rice.krms.api.repository.proposition.PropositionParameter parameter) This will update aPropositionParameter.- Parameters:
parameter- the proposition parameter to update- Throws:
IllegalArgumentException- if the proposition parameter is nullIllegalStateException- if the proposition parameter does not exist in the system
-
getParameters
List<org.kuali.rice.krms.api.repository.proposition.PropositionParameter> getParameters(String propId) Lookup the proposition parameters based on the given proposition id.- 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.
-
getParameterById
Lookup the proposition parameter based on the id.- 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.
-
getParameterByPropIdAndSequenceNumber
org.kuali.rice.krms.api.repository.proposition.PropositionParameter getParameterByPropIdAndSequenceNumber(String propId, Integer sequenceNumber) Lookup the proposition parameter based on the proposition id and sequence number.- 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.
-