@Entity public class ApplicationEntity extends SetupFileEntity
GENIE_ID_TAG_NAMESPACE, GENIE_NAME_TAG_NAMESPACE, GENIE_TAG_NAMESPACE, TAG_DELIMITER, TAG_DELIMITER_REGEX
Constructor and Description |
---|
ApplicationEntity()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Application |
getDTO()
Get a DTO from this entity.
|
java.util.Optional<java.lang.String> |
getType()
Get the type of this application.
|
protected void |
onCreateOrUpdateApplication()
Check to make sure everything is OK before persisting.
|
protected void |
setCommands(java.util.Set<CommandEntity> commands)
Set all the commands associated with this application.
|
void |
setConfigs(java.util.Set<java.lang.String> configs)
Sets the configurations for this application.
|
void |
setDependencies(java.util.Set<java.lang.String> dependencies)
Sets the dependencies needed for this application.
|
getSetupFile
getDescription, getFinalTags, getTags, setTags
getCreated, getEntityVersion, getId, getUpdated, onCreateBaseEntity, onUpdateBaseEntity, setCreated, setEntityVersion, setId, setUpdated
protected void onCreateOrUpdateApplication() throws GenieException
GenieException
- If any preconditions aren't met.public java.util.Optional<java.lang.String> getType()
public void setConfigs(java.util.Set<java.lang.String> configs)
configs
- The configuration files that this application needspublic void setDependencies(java.util.Set<java.lang.String> dependencies)
dependencies
- All dependencies needed for execution of this applicationprotected void setCommands(java.util.Set<CommandEntity> commands)
commands
- The commands to set.public Application getDTO()