public interface KimTypeService
| Modifier and Type | Method and Description |
|---|---|
List<KimAttributeField> |
getAttributeDefinitions(String kimTypeId)
Gets a List of
KimAttributeField for a kim type id. |
String |
getWorkflowDocumentTypeName()
Gets the name of a workflow document type that should be passed to kew when resolving responsibilities for routing.
|
List<String> |
getWorkflowRoutingAttributes(String nodeName)
Gets an unmodifiable list of attribute names identifying the attribute qualifiers that are provided to
the KIM responsibility service when resolving responsibility-based routing at the node with the given name.
|
List<RemotableAttributeError> |
validateAttributes(String kimTypeId,
Map<String,String> attributes)
This method validates the passed in attributes for a kimTypeId generating a List of
RemotableAttributeError. |
List<RemotableAttributeError> |
validateAttributesAgainstExisting(String kimTypeId,
Map<String,String> newAttributes,
Map<String,String> oldAttributes)
This method validates the passed in attributes for a kimTypeId generating a List of
RemotableAttributeError. |
List<RemotableAttributeError> |
validateUniqueAttributes(String kimTypeId,
Map<String,String> newAttributes,
Map<String,String> oldAttributes)
This method validates the passed in attributes for a kimTypeId generating a List of
RemotableAttributeError. |
List<RemotableAttributeError> |
validateUnmodifiableAttributes(String kimTypeId,
Map<String,String> originalAttributes,
Map<String,String> newAttributes)
This method validates the passed in attributes for a kimTypeId generating a List of
RemotableAttributeError. |
String getWorkflowDocumentTypeName()
List<String> getWorkflowRoutingAttributes(String nodeName) throws RiceIllegalArgumentException
nodeName - the name of the node to retrieve attribute names for. Cannot be null or blank.IllegalArgumentException - if the nodeName is null or blank.RiceIllegalArgumentExceptionList<KimAttributeField> getAttributeDefinitions(String kimTypeId) throws RiceIllegalArgumentException
KimAttributeField for a kim type id. The order of the attribute fields in the list
can be used as a hint to a ui framework consuming these attributes as to how to organize these fields.kimTypeId - the kimTypeId to retrieve fields for. Cannot be null or blank.IllegalArgumentException - if the kimTypeId is null or blankRiceIllegalArgumentExceptionList<RemotableAttributeError> validateAttributes(String kimTypeId, Map<String,String> attributes) throws RiceIllegalArgumentException
RemotableAttributeError.
The order of the attribute errors in the list
can be used as a hint to a ui framework consuming these errors as to how to organize these errors.kimTypeId - the kimTypeId that is associated with the attributes. Cannot be null or blank.attributes - the kim type attributes to validate. Cannot be null.IllegalArgumentException - if the kimTypeId is null or blank or the attributes are nullRiceIllegalArgumentExceptionList<RemotableAttributeError> validateAttributesAgainstExisting(String kimTypeId, Map<String,String> newAttributes, Map<String,String> oldAttributes) throws RiceIllegalArgumentException
RemotableAttributeError.
This method used the oldAttributes to aid in validation. This is useful for validating "new" or "updated" attributes.
The order of the attribute errors in the list
can be used as a hint to a ui framework consuming these errors as to how to organize these errors.kimTypeId - the kimTypeId that is associated with the attributes. Cannot be null or blank.newAttributes - the kim type attributes to validate. Cannot be null.oldAttributes - the old kim type attributes to use for validation. Cannot be null.IllegalArgumentException - if the kimTypeId is null or blank or the newAttributes or oldAttributes are nullRiceIllegalArgumentExceptionList<RemotableAttributeError> validateUniqueAttributes(String kimTypeId, Map<String,String> newAttributes, Map<String,String> oldAttributes) throws RiceIllegalArgumentException
RemotableAttributeError.
This method used the oldAttributes to aid in validation. This method specifically determines if attributes should be
unique and verifying them against other attributes that have been set to determine uniqueness
The order of the attribute errors in the list
can be used as a hint to a ui framework consuming these errors as to how to organize these errors.kimTypeId - the kimTypeId that is associated with the attributes. Cannot be null or blank.newAttributes - the kim type attributes to validate. Cannot be null.oldAttributes - the old kim type attributes to use for validation. Cannot be null.IllegalArgumentException - if the kimTypeId is null or blank or the newAttributes or oldAttributes are nullRiceIllegalArgumentExceptionList<RemotableAttributeError> validateUnmodifiableAttributes(String kimTypeId, Map<String,String> originalAttributes, Map<String,String> newAttributes) throws RiceIllegalArgumentException
RemotableAttributeError.
This method used the oldAttributes to aid in validation. This method specifically validates that the new attribute
values have not been changed if they are unmodifiable.
The order of the attribute errors in the list
can be used as a hint to a ui framework consuming these errors as to how to organize these errors.kimTypeId - the kimTypeId that is associated with the attributes. Cannot be null or blank.newAttributes - the kim type attributes to validate. Cannot be null.originalAttributes - the old kim type attributes to use for validation. Cannot be null.IllegalArgumentException - if the kimTypeId is null or blank or the newAttributes or oldAttributes are nullRiceIllegalArgumentExceptionCopyright © 2005–2016 The Kuali Foundation. All rights reserved.