public interface KrmsTypeRepositoryService
| Modifier and Type | Field and Description |
|---|---|
static String |
AGENDA_SERVICE_NAME |
static String |
COMPOUND_PROPOSITION_SERVICE_NAME |
static String |
CONSTANT_VALUE_PROPOSITION_PARAMETER_SERVICE_NAME |
static String |
CONTEXT_SERVICE_NAME |
static String |
FUNCTION_PROPOSITION_PARAMETER_SERVICE_NAME |
static String |
OPERATOR_PROPOSITION_PARAMETER_SERVICE_NAME |
static String[] |
PROPOSITION_PARAMETER_SERVICE_NAMES |
static String[] |
PROPOSITION_SERVICE_NAMES |
static String |
RULE_SERVICE_NAME |
static String |
SIMPLE_PROPOSITION_SERVICE_NAME |
static String |
TERM_PARAMETER_SERVICE_NAME |
static String |
TERM_PROPOSITION_PARAMETER_SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
KrmsTypeDefinition |
createKrmsType(KrmsTypeDefinition krmsType)
This will create a
KrmsTypeDefinition exactly like the parameter passed in. |
TypeTypeRelation |
createTypeTypeRelation(TypeTypeRelation typeTypeRelation)
This will create a
TypeTypeRelation exactly like the parameter
passed in. |
void |
deleteTypeTypeRelation(String typeTypeRelationId)
Delete the
TypeTypeRelation with the given id. |
List<KrmsTypeDefinition> |
findAgendaTypesForAgendaType(String agendaTypeId)
find all agenda types for context type
|
List<KrmsTypeDefinition> |
findAgendaTypesForContextType(String contextTypeId)
find all agenda types for context type
|
List<KrmsTypeDefinition> |
findAllActionTypesByContextId(String contextId)
Returns all action types for the given contextId.
|
List<KrmsTypeDefinition> |
findAllAgendaTypes()
find all agenda types
|
List<KrmsTypeDefinition> |
findAllAgendaTypesByContextId(String contextId)
Returns all agenda types for the given contextId.
|
List<KrmsTypeDefinition> |
findAllContextTypes()
find all context types
|
List<KrmsTypeDefinition> |
findAllPropositionParameterTypes()
find all Proposition Parameter types
|
List<KrmsTypeDefinition> |
findAllPropositionTypes()
find all Proposition types
|
List<KrmsTypeDefinition> |
findAllRuleTypes()
find all rule types
|
List<KrmsTypeDefinition> |
findAllRuleTypesByContextId(String contextId)
Returns all rule types for the given contextId.
|
List<KrmsTypeDefinition> |
findAllTypes()
Returns all KRMS types
|
List<KrmsTypeDefinition> |
findAllTypesByNamespace(String namespaceCode)
Returns all KRMS types that for a given namespace.
|
List<KrmsTypeDefinition> |
findAllTypesByServiceName(String serviceName)
Returns all KRMS types that for a given serviceName
|
List<KrmsTypeDefinition> |
findPropositionParameterTypesForPropositionType(String propositionTypeId)
find Proposition Parameter types for the specified proposition type
|
List<KrmsTypeDefinition> |
findPropositionTypesForRuleType(String ruleTypeId)
find all Proposition types for the specified rule type
|
List<KrmsTypeDefinition> |
findRuleTypesForAgendaType(String agendaTypeId)
find the rule types for the specified agenda type
|
List<KrmsTypeDefinition> |
findTermParameterTypesForTermPropositionParameterType(String termPropositionParameterTypeId)
find term parameter types for the given Term based Proposition Parameter type
|
List<TypeTypeRelation> |
findTypeTypeRelationsByFromType(String fromTypeId)
find type type relations by from type
|
List<TypeTypeRelation> |
findTypeTypeRelationsByRelationshipType(RelationshipType relationshipType)
find type type relations by relationship type
|
List<TypeTypeRelation> |
findTypeTypeRelationsByToType(String toTypeId)
find type type relations by To type
|
KrmsTypeDefinition |
getActionTypeByActionTypeIdAndContextId(String actionTypeId,
String contextId)
Return the action type by actionItemId for the given contextId.
|
KrmsTypeDefinition |
getAgendaTypeByAgendaTypeIdAndContextId(String agendaTypeId,
String contextId)
Return the agenda type by agendaItemId for the given contextId.
|
KrmsAttributeDefinition |
getAttributeDefinitionById(String attributeDefinitionId)
Retrieves an attribute definition for the given id.
|
KrmsAttributeDefinition |
getAttributeDefinitionByName(String namespaceCode,
String name)
Retrieves an attribute definition for the given namespace code and name.
|
KrmsTypeDefinition |
getRuleTypeByRuleTypeIdAndContextId(String ruleTypeId,
String contextId)
Return the rule type by ruleItemId for the given contextId.
|
KrmsTypeDefinition |
getTypeById(String id)
Lookup a krms type based on the given id.
|
KrmsTypeDefinition |
getTypeByName(String namespaceCode,
String name)
Get a krms type object based on name and namespace
|
TypeTypeRelation |
getTypeTypeRelation(String typeTypeRelationId)
Retrieves a TypeTypeRelation from the repository based on the given id.
|
KrmsTypeDefinition |
updateKrmsType(KrmsTypeDefinition krmsType)
This will update an existing
KrmsTypeDefinition |
void |
updateTypeTypeRelation(TypeTypeRelation typeTypeRelation)
This will update an existing
TypeTypeRelation. |
static final String CONTEXT_SERVICE_NAME
static final String AGENDA_SERVICE_NAME
static final String RULE_SERVICE_NAME
static final String SIMPLE_PROPOSITION_SERVICE_NAME
static final String COMPOUND_PROPOSITION_SERVICE_NAME
static final String TERM_PROPOSITION_PARAMETER_SERVICE_NAME
static final String OPERATOR_PROPOSITION_PARAMETER_SERVICE_NAME
static final String CONSTANT_VALUE_PROPOSITION_PARAMETER_SERVICE_NAME
static final String FUNCTION_PROPOSITION_PARAMETER_SERVICE_NAME
static final String[] PROPOSITION_SERVICE_NAMES
static final String[] PROPOSITION_PARAMETER_SERVICE_NAMES
static final String TERM_PARAMETER_SERVICE_NAME
@CacheEvict(value="http://rice.kuali.org/krms/v2_0/KRMSTypeType",
allEntries=true)
KrmsTypeDefinition createKrmsType(KrmsTypeDefinition krmsType)
throws RiceIllegalArgumentException,
RiceIllegalStateException
KrmsTypeDefinition exactly like the parameter passed in.krmsType - - KrmsTypeIllegalArgumentException - if the krmsType is
+IllegalStateException - if the KrmsType already exists in the systemRiceIllegalArgumentExceptionRiceIllegalStateException@CacheEvict(value="http://rice.kuali.org/krms/v2_0/KRMSTypeType",
allEntries=true)
KrmsTypeDefinition updateKrmsType(KrmsTypeDefinition krmsType)
throws RiceIllegalArgumentException,
RiceIllegalStateException
KrmsTypeDefinitionkrmsType - - KrmsTypeIllegalArgumentException - if the krmsType is nullIllegalStateException - if the KrmsType does not exist in the systemRiceIllegalArgumentExceptionRiceIllegalStateException@Cacheable(value="http://rice.kuali.org/krms/v2_0/KRMSTypeType",
key="\'id=\' + #p0")
KrmsTypeDefinition getTypeById(String id)
throws RiceIllegalArgumentException
id - the given KRMS type idRiceIllegalArgumentException@Cacheable(value="http://rice.kuali.org/krms/v2_0/KRMSTypeType",
key="\'namespaceCode=\' + #p0 + \'|\' + \'name=\' + #p1")
KrmsTypeDefinition getTypeByName(String namespaceCode,
String name)
throws RiceIllegalArgumentException,
RiceIllegalStateException
namespaceCode - the given type namespacename - the given type nameRiceIllegalArgumentException - if the given namespaceCode or name is a null or blank valueRiceIllegalStateException - if multiple krms types exist with the same name and namespace@Cacheable(value="http://rice.kuali.org/krms/v2_0/KRMSTypeType",
key="\'allByNamespaceCode=\' + #p0")
List<KrmsTypeDefinition> findAllTypesByNamespace(String namespaceCode)
throws RiceIllegalArgumentException
IllegalArgumentException - if the given namespaceCode is a null or blank valueRiceIllegalArgumentException@Cacheable(value="http://rice.kuali.org/krms/v2_0/KRMSTypeType",
key="\'all\'")
List<KrmsTypeDefinition> findAllTypes()
@Cacheable(value="http://rice.kuali.org/krms/v2_0/KRMSTypeType",
key="\'{AgendaType}contextId=\' + #p0")
List<KrmsTypeDefinition> findAllAgendaTypesByContextId(String contextId)
throws RiceIllegalArgumentException
contextId - the id of the contextIllegalArgumentException - if the given contextId is a null or blank valueRiceIllegalArgumentException@Cacheable(value="http://rice.kuali.org/krms/v2_0/KRMSTypeType",
key="\'agendaTypeId=\' + #p0 + \'|\' + \'contextId=\' + #p1")
KrmsTypeDefinition getAgendaTypeByAgendaTypeIdAndContextId(String agendaTypeId,
String contextId)
throws RiceIllegalArgumentException
agendaTypeId - the id of the agendaTypecontextId - the id of the contextIllegalArgumentException - if the given agendaTypeId or contextId is a null or blank valueRiceIllegalArgumentException@Cacheable(value="http://rice.kuali.org/krms/v2_0/KRMSTypeType",
key="\'{RuleType}contextId=\' + #p0")
List<KrmsTypeDefinition> findAllRuleTypesByContextId(String contextId)
throws RiceIllegalArgumentException
contextId - the id of the contextIllegalArgumentException - if the given contextId is a null or blank valueRiceIllegalArgumentException@Cacheable(value="http://rice.kuali.org/krms/v2_0/KRMSTypeType",
key="\'ruleTypeId=\' + #p0 + \'|\' + \'contextId=\' + #p1")
KrmsTypeDefinition getRuleTypeByRuleTypeIdAndContextId(String ruleTypeId,
String contextId)
throws RiceIllegalArgumentException
ruleTypeId - the id of the ruleTypecontextId - the id of the contextIllegalArgumentException - if the given ruleTypeId or contextId is a null or blank valueRiceIllegalArgumentException@Cacheable(value="http://rice.kuali.org/krms/v2_0/KRMSTypeType",
key="\'{ActionType}contextId=\' + #p0")
List<KrmsTypeDefinition> findAllActionTypesByContextId(String contextId)
throws RiceIllegalArgumentException
contextId - the id of the contextIllegalArgumentException - if the given contextId is a null or blank valueRiceIllegalArgumentException@Cacheable(value="http://rice.kuali.org/krms/v2_0/KRMSTypeType",
key="\'actionTypeId=\' + #p0 + \'|\' + \'contextId=\' + #p1")
KrmsTypeDefinition getActionTypeByActionTypeIdAndContextId(String actionTypeId,
String contextId)
throws RiceIllegalArgumentException
actionTypeId - the id of the actionTypecontextId - the id of the contextIllegalArgumentException - if the given actionTypeId or contextId is a null or blank valueRiceIllegalArgumentException@Cacheable(value="http://rice.kuali.org/krms/v2_0/KrmsAttributionDefinitionType",
key="\'attributeDefinitionId=\' + #p0")
KrmsAttributeDefinition getAttributeDefinitionById(String attributeDefinitionId)
throws RiceIllegalArgumentException
attributeDefinitionId - the id of the attribute definition to retrieveIllegalArgumentException - if the given attributeDefinitionId is a null or blank valueRiceIllegalArgumentException@Cacheable(value="http://rice.kuali.org/krms/v2_0/KrmsAttributionDefinitionType",
key="\'namespaceCode=\' + #p0 + \'|\' + \'name=\' + #p1")
KrmsAttributeDefinition getAttributeDefinitionByName(String namespaceCode,
String name)
throws RiceIllegalArgumentException
namespaceCode - the namespace under which to locate the attribute definitionname - the name of the attribute definition to retrieveRiceIllegalArgumentException - if the given namespaceCode or name is a null or blank valueTypeTypeRelation createTypeTypeRelation(TypeTypeRelation typeTypeRelation) throws RiceIllegalArgumentException
TypeTypeRelation exactly like the parameter
passed in.typeTypeRelation - The TypeTypeRelation to create.TypeTypeRelation exactly like the parameter passed in.IllegalArgumentException - if the TypeTypeRelation is null.IllegalStateException - if the TypeTypeRelation already exists in
the system.RiceIllegalArgumentExceptionTypeTypeRelation getTypeTypeRelation(String typeTypeRelationId) throws RiceIllegalArgumentException
typeTypeRelationId - to retrieve.TypeTypeRelation identified by the given id. A null
reference is returned if an invalid or non-existent id is supplied.RiceIllegalArgumentExceptionvoid updateTypeTypeRelation(TypeTypeRelation typeTypeRelation) throws RiceIllegalArgumentException
TypeTypeRelation.typeTypeRelation - The TypeTypeRelation to update.IllegalArgumentException - if the TypeTypeRelation is null.IllegalStateException - if the TypeTypeRelation does not exists in
the system.RiceIllegalArgumentExceptionvoid deleteTypeTypeRelation(String typeTypeRelationId) throws RiceIllegalArgumentException
TypeTypeRelation with the given id.typeTypeRelationId - to delete.IllegalArgumentException - if the TypeTypeRelation is null.IllegalStateException - if the TypeTypeRelation does not exists in
the systemRiceIllegalArgumentExceptionList<TypeTypeRelation> findTypeTypeRelationsByFromType(String fromTypeId) throws RiceIllegalArgumentException
fromTypeId - to search onRiceIllegalArgumentExceptionList<TypeTypeRelation> findTypeTypeRelationsByToType(String toTypeId) throws RiceIllegalArgumentException
toTypeId - to type to search onRiceIllegalArgumentExceptionList<TypeTypeRelation> findTypeTypeRelationsByRelationshipType(RelationshipType relationshipType) throws RiceIllegalArgumentException
relationshipType - to search onRiceIllegalArgumentExceptionList<KrmsTypeDefinition> findAllTypesByServiceName(String serviceName) throws RiceIllegalArgumentException
IllegalArgumentException - if the given serviceName is a null or
blank valueRiceIllegalArgumentExceptionList<KrmsTypeDefinition> findAllContextTypes() throws RiceIllegalArgumentException
RiceIllegalArgumentExceptionList<KrmsTypeDefinition> findAllAgendaTypes() throws RiceIllegalArgumentException
RiceIllegalArgumentExceptionList<KrmsTypeDefinition> findAgendaTypesForContextType(String contextTypeId) throws RiceIllegalArgumentException
contextTypeId - to search onRiceIllegalArgumentExceptionList<KrmsTypeDefinition> findAgendaTypesForAgendaType(String agendaTypeId) throws RiceIllegalArgumentException
agendaTypeId - to search onRiceIllegalArgumentExceptionList<KrmsTypeDefinition> findAllRuleTypes() throws RiceIllegalArgumentException
RiceIllegalArgumentExceptionList<KrmsTypeDefinition> findRuleTypesForAgendaType(String agendaTypeId) throws RiceIllegalArgumentException
agendaTypeId - to search onRiceIllegalArgumentExceptionList<KrmsTypeDefinition> findAllPropositionTypes() throws RiceIllegalArgumentException
RiceIllegalArgumentExceptionList<KrmsTypeDefinition> findPropositionTypesForRuleType(String ruleTypeId) throws RiceIllegalArgumentException
ruleTypeId - to search onRiceIllegalArgumentExceptionList<KrmsTypeDefinition> findAllPropositionParameterTypes() throws RiceIllegalArgumentException
RiceIllegalArgumentExceptionList<KrmsTypeDefinition> findPropositionParameterTypesForPropositionType(String propositionTypeId) throws RiceIllegalArgumentException
propositionTypeId - to search onRiceIllegalArgumentExceptionList<KrmsTypeDefinition> findTermParameterTypesForTermPropositionParameterType(String termPropositionParameterTypeId) throws RiceIllegalArgumentException
termPropositionParameterTypeId - to search onRiceIllegalArgumentExceptionCopyright © 2005–2016 The Kuali Foundation. All rights reserved.