java.lang.Object
dev.getelements.elements.sdk.model.application.Application
All Implemented Interfaces:
Serializable

public class Application extends Object implements Serializable
Represents an application. This serves as place to house the application's basic metadata such as app id and display name. Since an application can exist on multiple platforms, this seeks to simply tie all platforms together. Created by patricktwohig on 7/9/15.
See Also:
  • Field Details

    • APPLICATION_ATTRIBUTE

      public static final String APPLICATION_ATTRIBUTE
      Used as the key for the application attribute where appropriate. This is equivalent to the FQN of the Application class.
  • Constructor Details

    • Application

      public Application()
  • Method Details

    • getId

      public String getId()
      The globally-unique identifier.
      Returns:
      the identifier
    • setId

      public void setId(String id)
      The identifier.
      Parameters:
      id - the identifier
    • getName

      public String getName()
      Gets the unique name of the application. Must be alpha-numeric as it is used to form REST URLs.
      Returns:
    • setName

      public void setName(String name)
      Sets the unique name of the application.
      Parameters:
      name -
    • getGitBranch

      public String getGitBranch()
      Gets the git branch of the application. If blank, assume the default branch.
      Returns:
      the git branch
    • setGitBranch

      public void setGitBranch(String gitBranch)
      Sets the git branch of the application. If blank, assume the default branch.
      Parameters:
      gitBranch - the git branch
    • getDescription

      public String getDescription()
      Gets the description. This is just an optional description for the application used for reference.
      Returns:
    • setDescription

      public void setDescription(String description)
      Sets the description.
      Parameters:
      description -
    • getScriptRepoUrl

      public String getScriptRepoUrl()
      Gets script repo URL.
      Returns:
      the script repo URL
    • setScriptRepoUrl

      public void setScriptRepoUrl(String scriptRepoUrl)
      Sets the script repo URL.
      Parameters:
      scriptRepoUrl - the script repo URL
    • getHttpDocumentationUrl

      public String getHttpDocumentationUrl()
      Gets the HTTP documentation endpoint for the application if it is available. Otherwise null.
      Returns:
      the HTTP documentation endpoint
    • setHttpDocumentationUrl

      public void setHttpDocumentationUrl(String httpDocumentationUrl)
      Sets the HTTP documentation endpoint for the application if it is available. Otherwise null.
      Parameters:
      httpDocumentationUrl - the HTTP documentation endpoint
    • getHttpDocumentationUiUrl

      public String getHttpDocumentationUiUrl()
      Gets the HTTP documentation UI URL for the application if it is available. Otherwise null.
      Returns:
      the HTTP documentation UI url
    • setHttpDocumentationUiUrl

      public void setHttpDocumentationUiUrl(String httpDocumentationUiUrl)
      Sets the HTTP documentation UI URL for the application if it is available. Otherwise null.
      Parameters:
      httpDocumentationUiUrl - the HTTP documentation UI url
    • getHttpTunnelEndpointUrl

      public String getHttpTunnelEndpointUrl()
      Gets the HTTP tunnel endpoint, if this is available. Otherwise null.
      Returns:
      the HTTP tunnel endpoint
    • setHttpTunnelEndpointUrl

      public void setHttpTunnelEndpointUrl(String httpTunnelEndpointUrl)
      Sets the HTTP tunnel endpoint, if this is available. Otherwise null.
      Parameters:
      httpTunnelEndpointUrl - the HTTP tunnel endpoint
    • getApplicationConfiguration

      public ApplicationConfiguration getApplicationConfiguration()
      Gets the application configuration for this application, if this is available. Otherwise null.
      Returns:
      the application configuration
    • setApplicationConfiguration

      public void setApplicationConfiguration(ApplicationConfiguration applicationConfiguration)
      Sets the application configuration.
      Parameters:
      applicationConfiguration - the application configuration
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAttributes

      public Map<String,Object> getAttributes()
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)