Package net.officefloor.activity.model
Class ActivityChangesImpl
- java.lang.Object
-
- net.officefloor.activity.model.ActivityChangesImpl
-
- All Implemented Interfaces:
ActivityChanges
public class ActivityChangesImpl extends java.lang.Object implements ActivityChanges
Change
for theActivityModel
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ActivityChangesImpl(ActivityModel model)
Initiate.
-
Method Summary
-
-
-
Constructor Detail
-
ActivityChangesImpl
public ActivityChangesImpl(ActivityModel model)
Initiate.- Parameters:
model
-ActivityModel
to change.
-
-
Method Detail
-
getSection
public ActivitySectionModel getSection(ActivitySectionInputModel input)
Obtains theActivitySectionModel
for theActivitySectionInputModel
.- Parameters:
input
-ActivitySectionInputModel
.- Returns:
ActivitySectionModel
containing theActivitySectionInputModel
ornull
if not withinActivityModel
.
-
addInput
public Change<ActivityInputModel> addInput(java.lang.String inputName, java.lang.String argumentType)
Description copied from interface:ActivityChanges
Add anActivityInputModel
.- Specified by:
addInput
in interfaceActivityChanges
- Parameters:
inputName
- Name ofActivityInputModel
.argumentType
- Type of argument expected fromActivityInputModel
.- Returns:
Change
to addActivityInputModel
.
-
refactorInput
public Change<ActivityInputModel> refactorInput(ActivityInputModel input, java.lang.String inputName, java.lang.String argumentType)
Description copied from interface:ActivityChanges
Refactors anActivityInputModel
.- Specified by:
refactorInput
in interfaceActivityChanges
- Parameters:
input
-ActivityInputModel
to refactor.inputName
- Name ofActivityInputModel
.argumentType
- Type of argument expected fromActivityInputModel
.- Returns:
Change
to refactorActivityInputModel
.
-
removeInput
public Change<ActivityInputModel> removeInput(ActivityInputModel input)
Description copied from interface:ActivityChanges
Removes anActivityInputModel
.- Specified by:
removeInput
in interfaceActivityChanges
- Parameters:
input
-ActivityInputModel
to remove.- Returns:
Change
to remove theActivityInputModel
.
-
addSection
public Change<ActivitySectionModel> addSection(java.lang.String sectionName, java.lang.String sectionSourceClassName, java.lang.String sectionLocation, PropertyList properties, SectionType section)
Description copied from interface:ActivityChanges
Adds anActivitySectionModel
.- Specified by:
addSection
in interfaceActivityChanges
- Parameters:
sectionName
- Name of theActivitySectionModel
.sectionSourceClassName
-SectionSource
class name.sectionLocation
- Location of the section.properties
-PropertyList
.section
-SectionType
for theActivitySectionModel
.- Returns:
Change
to add theActivitySectionModel
.
-
refactorSection
public Change<ActivitySectionModel> refactorSection(ActivitySectionModel section, java.lang.String sectionName, java.lang.String sectionSourceClassName, java.lang.String sectionLocation, PropertyList properties, SectionType sectionType, java.util.Map<java.lang.String,java.lang.String> sectionInputNameMapping, java.util.Map<java.lang.String,java.lang.String> sectionOutputNameMapping)
Description copied from interface:ActivityChanges
Refactors anActivitySectionModel
.- Specified by:
refactorSection
in interfaceActivityChanges
- Parameters:
section
-ActivitySectionModel
to refactor.sectionName
- New name of theActivitySectionModel
.sectionSourceClassName
- NewSectionSource
class name for theActivitySectionModel
.sectionLocation
- New location for theActivitySectionModel
.properties
- NewPropertyList
for theActivitySectionModel
.sectionType
-SectionType
of the refactorActivitySectionModel
.sectionInputNameMapping
- Mapping ofSectionInputType
name to existingActivitySectionInputModel
name to allow maintaining links to other items within theActivityModel
.sectionOutputNameMapping
- Mapping ofSectionOutputType
name to existingActivitySectionOutputModel
name to allow maintaining links to other items within theActivityModel
.- Returns:
Change
to refactor theActivitySectionModel
.
-
removeSection
public Change<ActivitySectionModel> removeSection(ActivitySectionModel section)
Description copied from interface:ActivityChanges
Removes anActivitySectionModel
.- Specified by:
removeSection
in interfaceActivityChanges
- Parameters:
section
-ActivitySectionModel
to remove.- Returns:
Change
to remove theActivitySectionModel
.
-
addProcedure
public Change<ActivityProcedureModel> addProcedure(java.lang.String procedureName, java.lang.String resource, java.lang.String sourceName, java.lang.String procedure, PropertyList properties, ProcedureType procedureType)
Description copied from interface:ActivityChanges
Adds anActivityProcedureModel
.- Specified by:
addProcedure
in interfaceActivityChanges
- Parameters:
procedureName
- Name of theActivityProcedureModel
.resource
- Resource.sourceName
- Source name.procedure
-Procedure
name.properties
-PropertyList
procedureType
-ProcedureType
for theActivityProcedureModel
.- Returns:
Change
to add theActivityProcedureModel
.
-
refactorProcedure
public Change<ActivityProcedureModel> refactorProcedure(ActivityProcedureModel procedureModel, java.lang.String procedureName, java.lang.String resource, java.lang.String sourceName, java.lang.String procedure, PropertyList properties, ProcedureType procedureType, java.util.Map<java.lang.String,java.lang.String> outputNameMapping)
Description copied from interface:ActivityChanges
Refactors anActivityProcedureModel
.- Specified by:
refactorProcedure
in interfaceActivityChanges
- Parameters:
procedureModel
-ActivityProcedureModel
to refactor.procedureName
- Name of theActivityProcedureModel
.resource
- Resource.sourceName
- Source name.procedure
-Procedure
name.properties
-PropertyList
.procedureType
-ProcedureType
for theActivityProcedureModel
.outputNameMapping
- Mapping ofProcedureFlowType
name to existingActivityProcedureOutputModel
name to allow maintaining links to other items within theActivityModel
.- Returns:
Change
to refactor theActivityProcedureModel
.
-
removeProcedure
public Change<ActivityProcedureModel> removeProcedure(ActivityProcedureModel procedure)
Description copied from interface:ActivityChanges
Removes anActivityProcedureModel
.- Specified by:
removeProcedure
in interfaceActivityChanges
- Parameters:
procedure
-ActivityProcedureModel
to remove.- Returns:
Change
to remove theActivityProcedureModel
.
-
addOutput
public Change<ActivityOutputModel> addOutput(java.lang.String outputName, java.lang.String parameterType)
Description copied from interface:ActivityChanges
Add anActivityOutputModel
.- Specified by:
addOutput
in interfaceActivityChanges
- Parameters:
outputName
- Name ofActivityOutputModel
.parameterType
- Parameter type toActivityOutputModel
.- Returns:
Change
to addActivityOutputModel
.
-
refactorOutput
public Change<ActivityOutputModel> refactorOutput(ActivityOutputModel output, java.lang.String outputName, java.lang.String parameterType)
Description copied from interface:ActivityChanges
Refactors anActivityOutputModel
.- Specified by:
refactorOutput
in interfaceActivityChanges
- Parameters:
output
-ActivityOutputModel
to refactor.outputName
- Name ofActivityOutputModel
.parameterType
- Parameter type toActivityOutputModel
.- Returns:
Change
to refactorActivityOutputModel
.
-
removeOutput
public Change<ActivityOutputModel> removeOutput(ActivityOutputModel output)
Description copied from interface:ActivityChanges
Removes anActivityOutputModel
.- Specified by:
removeOutput
in interfaceActivityChanges
- Parameters:
output
-ActivityOutputModel
to remove.- Returns:
Change
to remove theActivityOutputModel
.
-
addException
public Change<ActivityExceptionModel> addException(java.lang.String exceptionClassName)
Description copied from interface:ActivityChanges
Adds anActivityExceptionModel
.- Specified by:
addException
in interfaceActivityChanges
- Parameters:
exceptionClassName
-Throwable
class name.- Returns:
Change
to add theActivityExceptionModel
.
-
refactorException
public Change<ActivityExceptionModel> refactorException(ActivityExceptionModel exception, java.lang.String exceptionClassName)
Description copied from interface:ActivityChanges
Refactors anActivityExceptionModel
.- Specified by:
refactorException
in interfaceActivityChanges
- Parameters:
exception
-ActivityExceptionModel
to refactor.exceptionClassName
- NewException
class name.- Returns:
Change
to refactor theActivityExceptionModel
.
-
removeException
public Change<ActivityExceptionModel> removeException(ActivityExceptionModel exception)
Description copied from interface:ActivityChanges
Removes anActivityExceptionModel
.- Specified by:
removeException
in interfaceActivityChanges
- Parameters:
exception
-ActivityExceptionModel
to remove.- Returns:
Change
to remove theActivityExceptionModel
.
-
linkInputToSectionInput
public Change<ActivityInputToActivitySectionInputModel> linkInputToSectionInput(ActivityInputModel input, ActivitySectionInputModel sectionInput)
Description copied from interface:ActivityChanges
Links theActivityInputModel
to theActivitySectionInputModel
.- Specified by:
linkInputToSectionInput
in interfaceActivityChanges
- Parameters:
input
-ActivityInputModel
.sectionInput
-ActivitySectionInputModel
.- Returns:
Change
to make the link.
-
removeInputToSectionInput
public Change<ActivityInputToActivitySectionInputModel> removeInputToSectionInput(ActivityInputToActivitySectionInputModel link)
Description copied from interface:ActivityChanges
Removes theActivityInputToActivitySectionInputModel
.- Specified by:
removeInputToSectionInput
in interfaceActivityChanges
- Parameters:
link
-ActivityInputToActivitySectionInputModel
.- Returns:
Change
to remove the link.
-
linkInputToOutput
public Change<ActivityInputToActivityOutputModel> linkInputToOutput(ActivityInputModel input, ActivityOutputModel output)
Description copied from interface:ActivityChanges
Links theActivityInputModel
to theActivityOutputModel
.- Specified by:
linkInputToOutput
in interfaceActivityChanges
- Parameters:
input
-ActivityInputModel
.output
-ActivityOutputModel
.- Returns:
Change
to make the link.
-
removeInputToOutput
public Change<ActivityInputToActivityOutputModel> removeInputToOutput(ActivityInputToActivityOutputModel link)
Description copied from interface:ActivityChanges
Removes theActivityInputToActivityOutputModel
.- Specified by:
removeInputToOutput
in interfaceActivityChanges
- Parameters:
link
-ActivityInputToActivityOutputModel
.- Returns:
Change
to remove the link.
-
linkInputToProcedure
public Change<ActivityInputToActivityProcedureModel> linkInputToProcedure(ActivityInputModel input, ActivityProcedureModel procedure)
Description copied from interface:ActivityChanges
Links theActivityInputModel
to theActivityProcedureModel
.- Specified by:
linkInputToProcedure
in interfaceActivityChanges
- Parameters:
input
-ActivityInputModel
.procedure
-ActivityProcedureModel
.- Returns:
Change
to make the link.
-
removeInputToProcedure
public Change<ActivityInputToActivityProcedureModel> removeInputToProcedure(ActivityInputToActivityProcedureModel link)
Description copied from interface:ActivityChanges
Removes theActivityInputToActivityProcedureModel
.- Specified by:
removeInputToProcedure
in interfaceActivityChanges
- Parameters:
link
-ActivityInputToActivityProcedureModel
.- Returns:
Change
to remove the link.
-
linkSectionOutputToSectionInput
public Change<ActivitySectionOutputToActivitySectionInputModel> linkSectionOutputToSectionInput(ActivitySectionOutputModel sectionOutput, ActivitySectionInputModel sectionInput)
Description copied from interface:ActivityChanges
Links theActivitySectionOutputModel
to theActivitySectionInputModel
.- Specified by:
linkSectionOutputToSectionInput
in interfaceActivityChanges
- Parameters:
sectionOutput
-ActivitySectionOutputModel
.sectionInput
-ActivitySectionInputModel
.- Returns:
Change
to make the link.
-
removeSectionOutputToSectionInput
public Change<ActivitySectionOutputToActivitySectionInputModel> removeSectionOutputToSectionInput(ActivitySectionOutputToActivitySectionInputModel link)
Description copied from interface:ActivityChanges
Removes theActivitySectionOutputToActivitySectionInputModel
.- Specified by:
removeSectionOutputToSectionInput
in interfaceActivityChanges
- Parameters:
link
-ActivitySectionOutputToActivitySectionInputModel
.- Returns:
Change
to remove the link.
-
linkSectionOutputToOutput
public Change<ActivitySectionOutputToActivityOutputModel> linkSectionOutputToOutput(ActivitySectionOutputModel sectionOutput, ActivityOutputModel output)
Description copied from interface:ActivityChanges
Links theActivitySectionOutputModel
to theActivityOutputModel
.- Specified by:
linkSectionOutputToOutput
in interfaceActivityChanges
- Parameters:
sectionOutput
-ActivitySectionOutputModel
.output
-ActivityOutputModel
.- Returns:
Change
to make the link.
-
removeSectionOutputToOutput
public Change<ActivitySectionOutputToActivityOutputModel> removeSectionOutputToOutput(ActivitySectionOutputToActivityOutputModel link)
Description copied from interface:ActivityChanges
Removes theActivitySectionOutputToActivityOutputModel
.- Specified by:
removeSectionOutputToOutput
in interfaceActivityChanges
- Parameters:
link
-ActivitySectionOutputToActivityOutputModel
.- Returns:
Change
to remove the link.
-
linkSectionOutputToProcedure
public Change<ActivitySectionOutputToActivityProcedureModel> linkSectionOutputToProcedure(ActivitySectionOutputModel sectionOutput, ActivityProcedureModel procedure)
Description copied from interface:ActivityChanges
Links theActivitySectionOutputModel
to theActivityProcedureModel
.- Specified by:
linkSectionOutputToProcedure
in interfaceActivityChanges
- Parameters:
sectionOutput
-ActivitySectionOutputModel
.procedure
-ActivityProcedureModel
.- Returns:
Change
to make the link.
-
removeSectionOutputToProcedure
public Change<ActivitySectionOutputToActivityProcedureModel> removeSectionOutputToProcedure(ActivitySectionOutputToActivityProcedureModel link)
Description copied from interface:ActivityChanges
Removes theActivitySectionOutputToActivityProcedureModel
.- Specified by:
removeSectionOutputToProcedure
in interfaceActivityChanges
- Parameters:
link
-ActivitySectionOutputToActivityProcedureModel
.- Returns:
Change
to remove the link.
-
linkProcedureNextToSectionInput
public Change<ActivityProcedureNextToActivitySectionInputModel> linkProcedureNextToSectionInput(ActivityProcedureNextModel procedureNext, ActivitySectionInputModel sectionInput)
Description copied from interface:ActivityChanges
Links theActivityProcedureNextModel
to theActivitySectionInputModel
.- Specified by:
linkProcedureNextToSectionInput
in interfaceActivityChanges
- Parameters:
procedureNext
-ActivityProcedureNextModel
.sectionInput
-ActivitySectionInputModel
.- Returns:
Change
to make the link.
-
removeProcedureNextToSectionInput
public Change<ActivityProcedureNextToActivitySectionInputModel> removeProcedureNextToSectionInput(ActivityProcedureNextToActivitySectionInputModel link)
Description copied from interface:ActivityChanges
Removes theActivityProcedureNextToActivitySectionInputModel
.- Specified by:
removeProcedureNextToSectionInput
in interfaceActivityChanges
- Parameters:
link
-ActivityProcedureNextToActivitySectionInputModel
.- Returns:
Change
to remove the link.
-
linkProcedureNextToOutput
public Change<ActivityProcedureNextToActivityOutputModel> linkProcedureNextToOutput(ActivityProcedureNextModel procedureNext, ActivityOutputModel output)
Description copied from interface:ActivityChanges
Links theActivityProcedureNextModel
to theActivityOutputModel
.- Specified by:
linkProcedureNextToOutput
in interfaceActivityChanges
- Parameters:
procedureNext
-ActivityProcedureNextModel
.output
-ActivityOutputModel
.- Returns:
Change
to make the link.
-
removeProcedureNextToOutput
public Change<ActivityProcedureNextToActivityOutputModel> removeProcedureNextToOutput(ActivityProcedureNextToActivityOutputModel link)
Description copied from interface:ActivityChanges
Removes theActivityProcedureNextToActivityOutputModel
.- Specified by:
removeProcedureNextToOutput
in interfaceActivityChanges
- Parameters:
link
-ActivityProcedureNextToActivityOutputModel
.- Returns:
Change
to remove the link.
-
linkProcedureNextToProcedure
public Change<ActivityProcedureNextToActivityProcedureModel> linkProcedureNextToProcedure(ActivityProcedureNextModel procedureNext, ActivityProcedureModel procedure)
Description copied from interface:ActivityChanges
Links theActivityProcedureNextModel
to theActivityProcedureModel
.- Specified by:
linkProcedureNextToProcedure
in interfaceActivityChanges
- Parameters:
procedureNext
-ActivityProcedureNextModel
.procedure
-ActivityProcedureModel
.- Returns:
Change
to make the link.
-
removeProcedureNextToProcedure
public Change<ActivityProcedureNextToActivityProcedureModel> removeProcedureNextToProcedure(ActivityProcedureNextToActivityProcedureModel link)
Description copied from interface:ActivityChanges
Removes theActivityProcedureNextToActivityProcedureModel
.- Specified by:
removeProcedureNextToProcedure
in interfaceActivityChanges
- Parameters:
link
-ActivityProcedureNextToActivityProcedureModel
.- Returns:
Change
to remove the link.
-
linkProcedureOutputToSectionInput
public Change<ActivityProcedureOutputToActivitySectionInputModel> linkProcedureOutputToSectionInput(ActivityProcedureOutputModel procedureOutput, ActivitySectionInputModel sectionInput)
Description copied from interface:ActivityChanges
Links theActivityProcedureOutputModel
to theActivitySectionInputModel
.- Specified by:
linkProcedureOutputToSectionInput
in interfaceActivityChanges
- Parameters:
procedureOutput
-ActivityProcedureOutputModel
.sectionInput
-ActivitySectionInputModel
.- Returns:
Change
to make the link.
-
removeProcedureOutputToSectionInput
public Change<ActivityProcedureOutputToActivitySectionInputModel> removeProcedureOutputToSectionInput(ActivityProcedureOutputToActivitySectionInputModel link)
Description copied from interface:ActivityChanges
Removes theActivityProcedureOutputToActivitySectionInputModel
.- Specified by:
removeProcedureOutputToSectionInput
in interfaceActivityChanges
- Parameters:
link
-ActivityProcedureOutputToActivitySectionInputModel
.- Returns:
Change
to remove the link.
-
linkProcedureOutputToOutput
public Change<ActivityProcedureOutputToActivityOutputModel> linkProcedureOutputToOutput(ActivityProcedureOutputModel procedureOutput, ActivityOutputModel output)
Description copied from interface:ActivityChanges
Links theActivityProcedureOutputModel
to theActivityOutputModel
.- Specified by:
linkProcedureOutputToOutput
in interfaceActivityChanges
- Parameters:
procedureOutput
-ActivityProcedureOutputModel
.output
-ActivityOutputModel
.- Returns:
Change
to make the link.
-
removeProcedureOutputToOutput
public Change<ActivityProcedureOutputToActivityOutputModel> removeProcedureOutputToOutput(ActivityProcedureOutputToActivityOutputModel link)
Description copied from interface:ActivityChanges
Removes theActivityProcedureOutputToActivityOutputModel
.- Specified by:
removeProcedureOutputToOutput
in interfaceActivityChanges
- Parameters:
link
-ActivityProcedureOutputToActivityOutputModel
.- Returns:
Change
to remove the link.
-
linkProcedureOutputToProcedure
public Change<ActivityProcedureOutputToActivityProcedureModel> linkProcedureOutputToProcedure(ActivityProcedureOutputModel procedureOutput, ActivityProcedureModel procedure)
Description copied from interface:ActivityChanges
Links theActivityProcedureOutputModel
to theActivityProcedureModel
.- Specified by:
linkProcedureOutputToProcedure
in interfaceActivityChanges
- Parameters:
procedureOutput
-ActivityProcedureOutputModel
.procedure
-ActivityProcedureModel
.- Returns:
Change
to make the link.
-
removeProcedureOutputToProcedure
public Change<ActivityProcedureOutputToActivityProcedureModel> removeProcedureOutputToProcedure(ActivityProcedureOutputToActivityProcedureModel link)
Description copied from interface:ActivityChanges
Removes theActivityProcedureOutputToActivityProcedureModel
.- Specified by:
removeProcedureOutputToProcedure
in interfaceActivityChanges
- Parameters:
link
-ActivityProcedureOutputToActivityProcedureModel
.- Returns:
Change
to remove the link.
-
linkExceptionToSectionInput
public Change<ActivityExceptionToActivitySectionInputModel> linkExceptionToSectionInput(ActivityExceptionModel exception, ActivitySectionInputModel sectionInput)
Description copied from interface:ActivityChanges
Links theActivityExceptionModel
to theActivitySectionInputModel
.- Specified by:
linkExceptionToSectionInput
in interfaceActivityChanges
- Parameters:
exception
-ActivityExceptionModel
.sectionInput
-ActivitySectionInputModel
.- Returns:
Change
to make the link.
-
removeExceptionToSectionInput
public Change<ActivityExceptionToActivitySectionInputModel> removeExceptionToSectionInput(ActivityExceptionToActivitySectionInputModel link)
Description copied from interface:ActivityChanges
Removes theActivityExceptionToActivitySectionInputModel
.- Specified by:
removeExceptionToSectionInput
in interfaceActivityChanges
- Parameters:
link
-ActivityExceptionToActivitySectionInputModel
.- Returns:
Change
to remove the link.
-
linkExceptionToOutput
public Change<ActivityExceptionToActivityOutputModel> linkExceptionToOutput(ActivityExceptionModel exception, ActivityOutputModel output)
Description copied from interface:ActivityChanges
Links theActivityExceptionModel
to theActivityOutputModel
.- Specified by:
linkExceptionToOutput
in interfaceActivityChanges
- Parameters:
exception
-ActivityExceptionModel
.output
-ActivityOutputModel
.- Returns:
Change
to make the link.
-
removeExceptionToOutput
public Change<ActivityExceptionToActivityOutputModel> removeExceptionToOutput(ActivityExceptionToActivityOutputModel link)
Description copied from interface:ActivityChanges
Removes theActivityExceptionToActivityOutputModel
.- Specified by:
removeExceptionToOutput
in interfaceActivityChanges
- Parameters:
link
-ActivityExceptionToActivityOutputModel
.- Returns:
Change
to remove the link.
-
linkExceptionToProcedure
public Change<ActivityExceptionToActivityProcedureModel> linkExceptionToProcedure(ActivityExceptionModel exception, ActivityProcedureModel procedure)
Description copied from interface:ActivityChanges
Links theActivityExceptionModel
to theActivityProcedureModel
.- Specified by:
linkExceptionToProcedure
in interfaceActivityChanges
- Parameters:
exception
-ActivityExceptionModel
.procedure
-ActivityProcedureModel
.- Returns:
Change
to make the link.
-
removeExceptionToProcedure
public Change<ActivityExceptionToActivityProcedureModel> removeExceptionToProcedure(ActivityExceptionToActivityProcedureModel link)
Description copied from interface:ActivityChanges
Removes theActivityExceptionToActivityProcedureModel
.- Specified by:
removeExceptionToProcedure
in interfaceActivityChanges
- Parameters:
link
-ActivityExceptionToActivityProcedureModel
.- Returns:
Change
to remove the link.
-
-