Class ProjectDiff
java.lang.Object
com.inductiveautomation.ignition.common.project.ProjectDiff
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ProjectDiff.AbsoluteDiff
,ProjectDiff.EffectiveDiff
The
ChangeOperation
s associated with a project when pulled from the Gateway.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
An absolute diff, i.e.static final class
An effective diff, i.e. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
isEmpty()
static ProjectDiff.AbsoluteDiff
newAbsoluteDiff
(String projectName, List<ChangeOperation> changeOperations) Create anProjectDiff.AbsoluteDiff
.static ProjectDiff.EffectiveDiff
newEffectiveDiff
(String projectName, List<ChangeOperation> changeOperations) Create anProjectDiff.EffectiveDiff
.toString()
-
Method Details
-
isEmpty
public boolean isEmpty()- Returns:
true
if this diff has an emptyChangeOperation
list.
-
getProjectName
- Returns:
- the name of the project this diff applies to.
-
getChangeOperations
- Returns:
- the list of
ChangeOperation
s comprising this diff.
-
isAbsoluteDiff
public boolean isAbsoluteDiff()- Returns:
true
if this diff is anProjectDiff.AbsoluteDiff
.
-
isEffectiveDiff
public boolean isEffectiveDiff()- Returns:
true
if this diff is anProjectDiff.EffectiveDiff
.
-
toString
-
newAbsoluteDiff
public static ProjectDiff.AbsoluteDiff newAbsoluteDiff(String projectName, List<ChangeOperation> changeOperations) Create anProjectDiff.AbsoluteDiff
.- Parameters:
projectName
- the name of the project the diff applies to.changeOperations
- the list ofChangeOperation
s.- Returns:
- an
ProjectDiff.AbsoluteDiff
. - See Also:
-
newEffectiveDiff
public static ProjectDiff.EffectiveDiff newEffectiveDiff(String projectName, List<ChangeOperation> changeOperations) Create anProjectDiff.EffectiveDiff
.- Parameters:
projectName
- the name of the project the diff applies to.changeOperations
- the list ofChangeOperation
s.- Returns:
- an
ProjectDiff.EffectiveDiff
. - See Also:
-