Package wt.change2.handler
Interface ChangeItemOriginationHandler
- All Known Implementing Classes:
DefaultChangeItemOriginationHandler
public interface ChangeItemOriginationHandler
Validates if the originatedBy and originatingLocation is a valid for the
change item.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionThe change item is stored on the handler when instantiated.Class<?>[]An array of supported classes for originatedBy attribute on a change item.Class<?>[]An array of supported classes for originatingLocation attribute on a change item.booleanisOriginatedByValid(ObjectReference originatedBy) Validates if the originatedBy is a valid for the change item.booleanisOriginatingLocationValid(ObjectReference originatingLocation) Validates if the originatingLocation is a valid for the change item.voidsetChangeItem(VersionableChangeItem changeItem) Setter method for the change item
Supported API: true
-
Method Details
-
setChangeItem
Setter method for the change item
Supported API: true- Parameters:
changeItem-
-
getChangeItem
VersionableChangeItem getChangeItem()The change item is stored on the handler when instantiated.
Supported API: true- Returns:
- the change item
-
getSupportedOriginatedByClasses
Class<?>[] getSupportedOriginatedByClasses()An array of supported classes for originatedBy attribute on a change item.
Supported API: true -
getSupportedOriginatingLocationClasses
Class<?>[] getSupportedOriginatingLocationClasses()An array of supported classes for originatingLocation attribute on a change item.
Supported API: true -
isOriginatedByValid
Validates if the originatedBy is a valid for the change item.
Supported API: true- Parameters:
originatedBy- - the proposed originatedBy value- Returns:
- true if valid
-
isOriginatingLocationValid
Validates if the originatingLocation is a valid for the change item.
Supported API: true- Parameters:
originatingLocation- - the proposed originatingLocation value- Returns:
- true if valid
-