public class DataObjectDefinitionOtherActions
extends java.lang.Object
Constructor and Description |
---|
DataObjectDefinitionOtherActions() |
Modifier and Type | Method and Description |
---|---|
static void |
generateaddAttachment(java.lang.String name,
SourceGenerator sg,
Module module)
generates the add attachment action for the data object
|
static void |
generateChangeParentActionToFile(java.lang.String name,
SourceGenerator sg,
Module module,
LinkedToParent<?> linkedtoparent)
generates the change parent action to file
|
static void |
generateChangeStateActionToFile(java.lang.String name,
Lifecycle lifecycle,
SourceGenerator sg,
Module module)
Generates the change state action for a data object
|
static void |
generateCreateAutolinkActionToFile(DataObjectDefinition dataobject,
SourceGenerator sg,
Module module)
generates the code for the create auto-link action
|
static void |
generateCreateLinkActionAndShowRightToFile(DataObjectDefinition dataobject,
SourceGenerator sg,
Module module)
generates the code for create link action (and show right object)
|
static void |
generateCreateLinkActionToFile(DataObjectDefinition dataobject,
SourceGenerator sg,
Module module)
generates the code for create link action (and show left object)
|
static void |
generateCreateLinkAndRightObjectActionToFile(DataObjectDefinition dataobject,
SourceGenerator sg,
Module module,
LinkObject<?,?> linkobjectproperty)
generate an action creating a link and right object action
|
static void |
generateDownloadAttachment(java.lang.String name,
SourceGenerator sg,
Module module)
generates the download attachment action for the data object
|
static void |
generateForceAsLatestVersionToFile(DataObjectDefinition dataobject,
SourceGenerator sg,
Module module)
generates the code for force version as latest
|
static void |
generateGetFullImageToFile(java.lang.String name,
ImageContent imagecontent,
SourceGenerator sg,
Module module)
generates the get full image action for the data object
|
static void |
generateNewVersionActionToFile(DataObjectDefinition dataobject,
SourceGenerator sg,
Module module)
generates new version action to file
|
static void |
generatePrepareStandardCreateActionToFile(DataObjectDefinition dataobject,
SourceGenerator sg,
Module module)
generates the code for the standard create action
|
static void |
generatePrintOutPreviewToFile(java.lang.String name,
SourceGenerator sg,
Module module,
PrintOut printoutproperty)
generate print-out preview action to file
|
static void |
generateRenumberActionToFile(DataObjectDefinition dataobject,
SourceGenerator sg,
Module module)
generates renumber action to file
|
static void |
generateSaveAsActionToFile(DataObjectDefinition dataobject,
SourceGenerator sg,
Module module)
generates the code for the save-as (somehow deep copy) action
|
static void |
generateSetImageToFile(java.lang.String name,
ImageContent imagecontent,
SourceGenerator sg,
Module module)
generates the set image to file action for the data object
|
static void |
generateSetTargetDateActionToFile(java.lang.String name,
SourceGenerator sg,
Module module)
generate the code for the set target date action
|
static void |
generateShowActionForIterationToFile(DataObjectDefinition dataobject,
SourceGenerator sg,
Module module)
generates the show action for iteration to a file (automatically generated
code)
|
static void |
generateShowAutoLinkTreeToFile(java.lang.String name,
SourceGenerator sg,
Module module,
AutolinkObject<?> autolink)
generates the show autolink tree action to file
|
static void |
generateShowHistoryActionToFile(java.lang.String name,
boolean isiterated,
boolean isversioned,
SourceGenerator sg,
Module module)
generate the show history action to file
|
static void |
generateStandardCreateActionToFile(DataObjectDefinition dataobject,
SourceGenerator sg,
Module module)
generates the code for the standard creation action
|
public static void generateSetTargetDateActionToFile(java.lang.String name, SourceGenerator sg, Module module) throws java.io.IOException
name
- name of the data object in javasg
- source generatormodule
- parent modulejava.io.IOException
- if anyting bad happens while writing the source codepublic static void generateChangeStateActionToFile(java.lang.String name, Lifecycle lifecycle, SourceGenerator sg, Module module) throws java.io.IOException
name
- valid java name of the data objectlifecycle
- lifecycle propertysg
- source generatormodule
- parent modulejava.io.IOException
- if anyting bad happens while writing the source codepublic static void generateShowHistoryActionToFile(java.lang.String name, boolean isiterated, boolean isversioned, SourceGenerator sg, Module module) throws java.io.IOException
name
- name of the data objectisiterated
- true if object is iteratedisversioned
- true if object is versionedsg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens while writing the source codepublic static void generatePrintOutPreviewToFile(java.lang.String name, SourceGenerator sg, Module module, PrintOut printoutproperty) throws java.io.IOException
name
- name of the data objectsg
- source generatormodule
- parent moduleprintoutproperty
- print-out property of the data objectjava.io.IOException
- if anything bad happens while writing the source codepublic static void generateShowActionForIterationToFile(DataObjectDefinition dataobject, SourceGenerator sg, Module module) throws java.io.IOException
dataobject
- data objectsg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens while writing the source codepublic static void generateChangeParentActionToFile(java.lang.String name, SourceGenerator sg, Module module, LinkedToParent<?> linkedtoparent) throws java.io.IOException
name
- java name of the data objectsg
- source generatormodule
- parent modulelinkedtoparent
- relevant linked to parent propertyjava.io.IOException
- if anything bad happens while writing the source codepublic static void generateDownloadAttachment(java.lang.String name, SourceGenerator sg, Module module) throws java.io.IOException
name
- java name of the data objectsg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens while writing the source codepublic static void generateaddAttachment(java.lang.String name, SourceGenerator sg, Module module) throws java.io.IOException
name
- java name of the data objectsg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens while writing the source codepublic static void generateGetFullImageToFile(java.lang.String name, ImageContent imagecontent, SourceGenerator sg, Module module) throws java.io.IOException
name
- java name of the data objectimagecontent
- image content propertysg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens while writing the source codepublic static void generateSetImageToFile(java.lang.String name, ImageContent imagecontent, SourceGenerator sg, Module module) throws java.io.IOException
name
- java name of the data objectimagecontent
- image content propertysg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens while writing the source codepublic static void generateShowAutoLinkTreeToFile(java.lang.String name, SourceGenerator sg, Module module, AutolinkObject<?> autolink) throws java.io.IOException
name
- java name of the data objectsg
- source generatormodule
- parent moduleautolink
- autolink object property relevant for this file generationjava.io.IOException
- if anything bad happens while writing the source codepublic static void generateStandardCreateActionToFile(DataObjectDefinition dataobject, SourceGenerator sg, Module module) throws java.io.IOException
dataobject
- data object definitionsg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens during the generationpublic static void generateSaveAsActionToFile(DataObjectDefinition dataobject, SourceGenerator sg, Module module) throws java.io.IOException
dataobject
- data object definitionsg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens during the generationpublic static void generateCreateLinkActionToFile(DataObjectDefinition dataobject, SourceGenerator sg, Module module) throws java.io.IOException
dataobject
- data object definitionsg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens during the generationpublic static void generateCreateLinkActionAndShowRightToFile(DataObjectDefinition dataobject, SourceGenerator sg, Module module) throws java.io.IOException
dataobject
- data object definitionsg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens during the generationpublic static void generatePrepareStandardCreateActionToFile(DataObjectDefinition dataobject, SourceGenerator sg, Module module) throws java.io.IOException
dataobject
- data object definitionsg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens during the generationpublic static void generateCreateLinkAndRightObjectActionToFile(DataObjectDefinition dataobject, SourceGenerator sg, Module module, LinkObject<?,?> linkobjectproperty) throws java.io.IOException
dataobject
- data object definitionsg
- source generatormodule
- parent modulelinkobjectproperty
- the link object to generate the action forjava.io.IOException
- if anything bad happens during the generationpublic static void generateCreateAutolinkActionToFile(DataObjectDefinition dataobject, SourceGenerator sg, Module module) throws java.io.IOException
dataobject
- data object definitionsg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens during the generationpublic static void generateForceAsLatestVersionToFile(DataObjectDefinition dataobject, SourceGenerator sg, Module module) throws java.io.IOException
dataobject
- data object definitionsg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens during the generationpublic static void generateNewVersionActionToFile(DataObjectDefinition dataobject, SourceGenerator sg, Module module) throws java.io.IOException
dataobject
- data object definitionsg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens during the generationpublic static void generateRenumberActionToFile(DataObjectDefinition dataobject, SourceGenerator sg, Module module) throws java.io.IOException
dataobject
- data object definitionsg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens during the generation