Package org.kuali.rice.krms.impl.ui
Class CustomOperatorUiTranslator
java.lang.Object
org.kuali.rice.krms.impl.ui.CustomOperatorUiTranslator
Utility service used by the KRMS agenda editing UI for display and access to custom operators.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kuali.rice.krms.api.repository.operator.CustomOperatorgetCustomOperator(String customOperatorFormValue) Gets the service instance given the specially formatted form value.getCustomOperatorName(String customOperatorFormValue) Gets the custom operator function name which is used for display purposesbooleanisCustomOperatorFormValue(String formValue) Checks if a form value represents a custom operator.parseCustomOperatorServiceQName(String customOperatorFormValue) Parses theQNamefor the custom operator service from the form value string, which has the formatcustomOperator:<Namespace>:<serviceName>
-
Constructor Details
-
CustomOperatorUiTranslator
public CustomOperatorUiTranslator()
-
-
Method Details
-
parseCustomOperatorServiceQName
Parses theQNamefor the custom operator service from the form value string, which has the formatcustomOperator:<Namespace>:<serviceName>- Parameters:
customOperatorFormValue-- Returns:
- the QName for the custom operator service
-
getCustomOperatorName
Gets the custom operator function name which is used for display purposes- Parameters:
customOperatorFormValue- the form value representing the custom operator- Returns:
-
getCustomOperator
public org.kuali.rice.krms.api.repository.operator.CustomOperator getCustomOperator(String customOperatorFormValue) Gets the service instance given the specially formatted form value.The form value contains the namespace and name of the service, which is used internally for retrieval.
- Parameters:
customOperatorFormValue- the custom operator form value- Returns:
- the custom operator service instance
- Throws:
IllegalArgumentException- if the customOperatorFormValue is null or is formatted incorrectly
-
isCustomOperatorFormValue
Checks if a form value represents a custom operator.The determination is made be checking for a special prefix value that is used by convention.
- Parameters:
formValue- the form value to check- Returns:
- true if the form value represents a custom operator.
-