Package com.e1c.g5.v8.dt.form.extension
Interface IFormExtensionManagementService
- All Known Implementing Classes:
FormExtensionManagementService
public interface IFormExtensionManagementService
Extensiond management facility which is responsible to support the adoption process
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdoptChangeListener(IAdoptEventListener listener) Adds adopt process status listener.voidadoptObject(Object object) Adopts form objectvoidfireAdoptEvent(Form form, AdoptStatus status) Trigger event on adopt processgetAdopted(Object object) Gets the adopted status of the object (if applicable).Collection<org.eclipse.emf.ecore.EStructuralFeature>getChangedFormItemFeatures(FormVisualEntity formVisualEntity) Returns collection of all unchanged features of the form item.booleanisAdoptedObject(Object object) Returnstrueif the object was adopted from source formbooleanisAutoAdoptedObject(Object object) Returnstrueif the object is in source form and not adoptedbooleanisExtensionBelongingUnderlyingObject(AbstractDataPath dataPath, Form form) Returnstrueif data path belongs to the extensionbooleanisExtensionBelongingUnderlyingObject(DataItem dataItem) Returnstrueif underlying object (Command or FormAttribute) of form data item has been created from the extension or adopted to the extension by user.booleanReturnstrueif underlying object of form data item has been created from the extension or adopted to the extension by user.booleanisOwnExtensionObject(Object object) Returnstrueif the object was created in form extensionbooleanisUnchangedObject(Object object) Checks if the given object is unchanged according to the rules of the form adoptionvoidremoveAdoptChangeListener(IAdoptEventListener listener) Removes event listener
-
Method Details
-
addAdoptChangeListener
Adds adopt process status listener.- Parameters:
listener- event listener, cannot benull
-
adoptObject
Adopts form object- Parameters:
eObject- The object to adop
-
fireAdoptEvent
Trigger event on adopt process- Parameters:
form- form to be adopted, cannot benullstatus- adopt process status, cannot benull
-
getAdopted
Gets the adopted status of the object (if applicable). Checks the hierarchy of the object to find the nearest adopted status- Parameters:
object- The object to get adopted status for. May not benull- Returns:
- The adopted status of the object.
nullmeans the non-adopted native element of the form
-
isAdoptedObject
Returnstrueif the object was adopted from source form- Parameters:
object- the object being examined, cannot benull- Returns:
trueif the object was adopted from source form
-
isAutoAdoptedObject
Returnstrueif the object is in source form and not adopted- Parameters:
object- the object being examined, cannot benull- Returns:
trueif the object is in source form and not adopted
-
isOwnExtensionObject
Returnstrueif the object was created in form extension- Parameters:
object- the object being examined, cannot benull- Returns:
trueif the object was created in form extension
-
isUnchangedObject
Checks if the given object is unchanged according to the rules of the form adoption- Parameters:
object- The object to check. May not benull- Returns:
- True if the object was changed by the user/service
-
removeAdoptChangeListener
Removes event listener- Parameters:
listener- the event listener to remove (notnull)
-
getChangedFormItemFeatures
Collection<org.eclipse.emf.ecore.EStructuralFeature> getChangedFormItemFeatures(FormVisualEntity formVisualEntity) Returns collection of all unchanged features of the form item. The given form item should be from adopted form.- Parameters:
formVisualEntity- the form visual entity, cannot benull- Returns:
- collection of all unchanged features of the form visual entity or empty collection for not adopted or
non-extension form, never
null
-
isExtensionBelongingUnderlyingObject
Returnstrueif underlying object of form data item has been created from the extension or adopted to the extension by user.- Parameters:
element- some form object, cannot benull- Returns:
trueif underlying object has been created from the extension or adopted to the extension by user
-
isExtensionBelongingUnderlyingObject
Returnstrueif data path belongs to the extension- Parameters:
dataPath- the data path to check, can benullform- , the form, cannot benull- Returns:
-
isExtensionBelongingUnderlyingObject
Returnstrueif underlying object (Command or FormAttribute) of form data item has been created from the extension or adopted to the extension by user.- Parameters:
dataItem- some form data item (either Button or FormField), cannot benull- Returns:
trueif underlying object has been created from the extension or adopted to the extension by user
-