public class ObjectIdArgument extends ArgumentContent
Constructor and Description |
---|
ObjectIdArgument(java.lang.String name,
DataObjectDefinition payload)
creates an argument holding as payload the id of an object
|
ObjectIdArgument(java.lang.String name,
DataObjectDefinition payload,
boolean securityargument)
creates an argument holding as payload the id of an object
|
Modifier and Type | Method and Description |
---|---|
ArgumentContent |
generateCopy(java.lang.String newname)
generates a deep copy of the argument with a new name
|
java.lang.String |
getGenericDataEltName() |
java.util.ArrayList<java.lang.String> |
getImports() |
DataObjectDefinition |
getMasterObject()
This method is used to assess if a security argument is used in a manner
compatible with security rules
|
DataObjectDefinition |
getObject() |
java.lang.String |
getObjectType() |
java.lang.String |
getPreciseDataEltName() |
java.lang.String |
getPreciseDataEltTypeName() |
java.lang.String |
getType() |
java.lang.String |
initblank() |
boolean |
needDefinitionForInit() |
void |
writeImports(SourceGenerator sg,
Module module)
writes to a java class the imports necessary for automatic generation of
actions using this parameter
|
getDisplaylabel, getPreciseDataEltTypeNameWithArgument, isOptional, isSecurityrelevant, setDisplaylabel, setOptional
changeName, cleanName, equals, getName
public ObjectIdArgument(java.lang.String name, DataObjectDefinition payload)
name
- name of the argument, should be unique amongst input and
output argument, should be a valid java field namepayload
- the type of data object held as payloadpublic ObjectIdArgument(java.lang.String name, DataObjectDefinition payload, boolean securityargument)
name
- name of the argument, should be unique amongst input
and output argument, should be a valid java field
namepayload
- the type of data object held as payloadsecurityargument
- if true, this argument is the security argument. If
input argument of an action, a check will be done
before the action, if output argument of an action,
data will be filtered before being sent to the clientpublic DataObjectDefinition getObject()
public java.lang.String getType()
getType
in class ArgumentContent
public java.lang.String getObjectType()
public java.lang.String getGenericDataEltName()
getGenericDataEltName
in class ArgumentContent
public java.lang.String getPreciseDataEltTypeName()
getPreciseDataEltTypeName
in class ArgumentContent
public boolean needDefinitionForInit()
needDefinitionForInit
in class ArgumentContent
public java.lang.String getPreciseDataEltName()
getPreciseDataEltName
in class ArgumentContent
public void writeImports(SourceGenerator sg, Module module) throws java.io.IOException
ArgumentContent
writeImports
in class ArgumentContent
sg
- source generatormodule
- parent modulejava.io.IOException
- if any error is encountered writing to a filepublic ArgumentContent generateCopy(java.lang.String newname)
ArgumentContent
generateCopy
in class ArgumentContent
newname
- new namepublic java.util.ArrayList<java.lang.String> getImports()
getImports
in class ArgumentContent
public java.lang.String initblank()
initblank
in class ArgumentContent
public DataObjectDefinition getMasterObject()
ArgumentContent
getMasterObject
in class ArgumentContent