public class DataObjectDefinitionSearchPagesAndActions
extends java.lang.Object
Constructor and Description |
---|
DataObjectDefinitionSearchPagesAndActions(DataObjectDefinition object)
creates a utility class to generate search actions and pages for the given
data object
|
Modifier and Type | Method and Description |
---|---|
static void |
generateLaunchSearchActionToFile(java.lang.String name,
SourceGenerator sg,
Module module) |
protected ActionDefinition |
generateSearchAction()
general the search action for the data object
|
protected ActionDefinition |
generateSearchActionForLeftObjectLink(LinkObject<?,?> linkobject)
generate the search action looking for potential left object while building a
link
|
void |
generateSearchActionForLeftObjectLinkToFile(SourceGenerator sg,
Module module)
generates the search action looking for a potential left object for a link
|
protected ActionDefinition |
generateSearchActionForRightObjectAutolink(AutolinkObject<?> linkobject)
generates a search action for potential right objects to build an auto-link
|
void |
generateSearchActionForRightObjectAutolinkToFile(SourceGenerator sg,
Module module)
generates the source code of search action for a potential right object for
an auto-link
|
protected ActionDefinition |
generateSearchActionForRightObjectLink(LinkObject<?,?> linkobject)
generates search action looking for a potential right object
|
void |
generateSearchActionForRightObjectLinkToFile(SourceGenerator sg,
Module module)
Generates the search action source code for a potential right object
|
void |
generateSearchActionToFile(SourceGenerator sg,
Module module)
generates the source code for the normal search action for a data object
|
ActionDefinition |
generateSearchActionWithParent(LinkObject<?,?> linkobject,
LinkedToParent<?> rightobjectparentproperty)
generates a search action for all right objects with the same parents as the
left object
|
void |
generateSearchActionWithParentToFile(SourceGenerator sg,
Module module)
generates the source code of the search action for a potential right object
to build a link
|
PageDefinition |
generateSearchPage() |
void |
generateSearchPageToFile(SourceGenerator sg,
Module module)
generates the source code for the search page
|
public DataObjectDefinitionSearchPagesAndActions(DataObjectDefinition object)
object
- data objectprotected ActionDefinition generateSearchActionForRightObjectLink(LinkObject<?,?> linkobject)
linkobject
- link object propertyprotected ActionDefinition generateSearchActionForLeftObjectLink(LinkObject<?,?> linkobject)
linkobject
- link object propertyprotected ActionDefinition generateSearchActionForRightObjectAutolink(AutolinkObject<?> linkobject)
linkobject
- autolink object propertyprotected ActionDefinition generateSearchAction()
public void generateSearchActionWithParentToFile(SourceGenerator sg, Module module) throws java.io.IOException
sg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens while writing the filepublic void generateSearchActionForRightObjectLinkToFile(SourceGenerator sg, Module module) throws java.io.IOException
sg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens while writing the filepublic void generateSearchActionForLeftObjectLinkToFile(SourceGenerator sg, Module module) throws java.io.IOException
sg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens while writing the filepublic void generateSearchActionForRightObjectAutolinkToFile(SourceGenerator sg, Module module) throws java.io.IOException
sg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens while writing the filepublic void generateSearchActionToFile(SourceGenerator sg, Module module) throws java.io.IOException
sg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens while writing the filepublic PageDefinition generateSearchPage()
public void generateSearchPageToFile(SourceGenerator sg, Module module) throws java.io.IOException
sg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens while writing the filepublic ActionDefinition generateSearchActionWithParent(LinkObject<?,?> linkobject, LinkedToParent<?> rightobjectparentproperty)
linkobject
- property of the link between left and right
objectsrightobjectparentproperty
- the parent property on the right object to
considerpublic static void generateLaunchSearchActionToFile(java.lang.String name, SourceGenerator sg, Module module) throws java.io.IOException
name
- name of the data objectsg
- source generatormodule
- parent modulejava.io.IOException
- if anyting bad happens while writing the source code