Class OperationGenerator

java.lang.Object
org.tentackle.buildsupport.codegen.AbstractGenerator
org.tentackle.maven.plugin.wizard.AbstractValidateableGenerator
org.tentackle.maven.plugin.wizard.OperationGenerator
All Implemented Interfaces:
org.tentackle.validate.ScopeConfigurator, org.tentackle.validate.Validateable

public class OperationGenerator extends AbstractValidateableGenerator
Generator for the operation files.
  • Constructor Details

    • OperationGenerator

      public OperationGenerator()
  • Method Details

    • generate

      public List<org.tentackle.validate.ValidationResult> generate() throws IOException, freemarker.template.TemplateException
      Creates the operation files.
      Returns:
      the validation results, empty if okay, never null
      Throws:
      IOException - if file creation failed
      freemarker.template.TemplateException - if code generation failed
    • initializeRemoteDefault

      public void initializeRemoteDefault()
    • isDomainValid

      public boolean isDomainValid()
    • isPersistenceValid

      public boolean isPersistenceValid()
    • getProfile

      @Bindable @NotNull public OperationProfile getProfile()
    • setProfile

      @Bindable public void setProfile(OperationProfile profile)
    • getOperationName

      @Bindable @NotNull(message="missing operation name") public String getOperationName()
    • setOperationName

      @Bindable public void setOperationName(String operationName)
    • getSuperOperationName

      @Bindable public String getSuperOperationName()
    • setSuperOperationName

      @Bindable public void setSuperOperationName(String superOperationName)
    • isAbstractOperation

      @Bindable public boolean isAbstractOperation()
    • setAbstractOperation

      @Bindable public void setAbstractOperation(boolean abstractOperation)
    • getShortDescription

      @Bindable @NotNull(message="missing short description") public String getShortDescription()
    • setShortDescription

      @Bindable public void setShortDescription(String shortDescription)
    • getLongDescription

      @Bindable public String getLongDescription()
    • setLongDescription

      @Bindable public void setLongDescription(String longDescription)
    • getDomainInterface

      @Bindable @NotNull(message="missing domain interface", condition="!$isPersistenceValid") public String getDomainInterface()
    • setDomainInterface

      @Bindable public void setDomainInterface(String domainInterface)
    • getPersistenceInterface

      @Bindable @NotNull(message="missing persistence interface", condition="!$isDomainValid") public String getPersistenceInterface()
    • setPersistenceInterface

      @Bindable public void setPersistenceInterface(String persistenceInterface)
    • getDomainImplementation

      @Bindable @Changeable(condition="$isDomainValid") public String getDomainImplementation()
    • setDomainImplementation

      @Bindable public void setDomainImplementation(String domainImplementation)
    • getPersistenceImplementation

      @Bindable @Changeable(condition="$isPersistenceValid") public String getPersistenceImplementation()
    • setPersistenceImplementation

      @Bindable public void setPersistenceImplementation(String persistenceImplementation)
    • isRemoteEnabled

      @Bindable @Changeable(condition="$isPersistenceValid") public boolean isRemoteEnabled()
    • setRemoteEnabled

      @Bindable public void setRemoteEnabled(boolean remoteEnabled)
    • getSuperOperationInterface

      public String getSuperOperationInterface()
      Gets the name of the parent operation interface.
      Returns:
      the super interface
    • getSuperDomainInterface

      public String getSuperDomainInterface()
      Gets the name of the parent domain interface.
      Returns:
      the super domain interface
    • getSuperPersistenceInterface

      public String getSuperPersistenceInterface()
      Gets the name of the parent persistence interface.
      Returns:
      the super persistence interface
    • getSuperDomainImplementation

      public String getSuperDomainImplementation()
      Gets the name of the parent domain class.
      Returns:
      the super domain class
    • getSuperPersistenceImplementation

      public String getSuperPersistenceImplementation()
      Gets the name of the parent persistence class.
      Returns:
      the super persistence class