Package flexagon.fd.core.plugin
Class PluginObjectResults
java.lang.Object
flexagon.fd.core.plugin.PluginObjectResults
A model to assist in creating partial deploy plugins and updating the status of files as you go.
It will set all the files to NOT_ATTEMPTED at the start, and then allow you pass in a project or
package object and a status to edit it later.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new PluginObjectResults with a current timestamp for start time and with all the objects in it set to NOT_ATTEMPTED.PluginObjectResults(WorkflowExecutionContext context, DeployStatusEnum pInitialStatus) Creates a new PluginObjectResults with a current timestamp for start time and with all the objects in it set to the value of pInitialStatus. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPackageObject(PackageObject pPo, DeployStatusEnum pInitialStatus) voidSets the starttime for a package object.voidUpdates the starttime for a project object.voidupdateStatusForPackageObject(PackageObject pPo, DeployStatusEnum pStatus) Updates the status, and sets the endtime.voidupdateStatusForProjectObject(ProjectObject pPo, DeployStatusEnum pStatus) Updates the status, and sets the endtime.voidwriteXml()Please call this from a finally block wrapping your execute method's contents.
-
Constructor Details
-
PluginObjectResults
Creates a new PluginObjectResults with a current timestamp for start time and with all the objects in it set to NOT_ATTEMPTED. It contains a map that allows you to reference the deployresults and edit the status of the objects as needed. -
PluginObjectResults
Creates a new PluginObjectResults with a current timestamp for start time and with all the objects in it set to the value of pInitialStatus. It contains a map that allows you to reference the deployresults and edit the status of the objects as needed.
-
-
Method Details
-
getDeployResultsMap
-
addPackageObject
-
updateStatusForPackageObject
public void updateStatusForPackageObject(PackageObject pPo, DeployStatusEnum pStatus) throws FlexCheckedException Updates the status, and sets the endtime.- Throws:
FlexCheckedException
-
updateStatusForProjectObject
public void updateStatusForProjectObject(ProjectObject pPo, DeployStatusEnum pStatus) throws FlexCheckedException Updates the status, and sets the endtime.- Throws:
FlexCheckedException
-
setStartTimeForPackageObject
Sets the starttime for a package object.- Throws:
FlexCheckedException
-
setStartTimeForProjectObject
Updates the starttime for a project object.- Throws:
FlexCheckedException
-
writeXml
Please call this from a finally block wrapping your execute method's contents. See the FlexPartialDeploy class for an example.- Throws:
FlexCheckedException
-