Class InfobaseApplication

java.lang.Object
org.eclipse.core.runtime.PlatformObject
com.e1c.g5.dt.internal.applications.infobases.InfobaseApplication
All Implemented Interfaces:
IApplication, ILifecycleAware, IInfobaseApplication, IUrlAccess, org.eclipse.core.runtime.IAdaptable

public class InfobaseApplication extends org.eclipse.core.runtime.PlatformObject implements IInfobaseApplication
The default implementation of IInfobaseApplication.
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Description copied from interface: IApplication
      Returns the application unique id.
      Specified by:
      getId in interface IApplication
      Specified by:
      getId in interface IUrlAccess
      Returns:
      the application unique id, never null
    • getName

      public String getName()
      Description copied from interface: IApplication
      Returns the application localized name.
      Specified by:
      getName in interface IApplication
      Returns:
      the application localized name, never null
    • getType

      public IApplicationType getType()
      Description copied from interface: IApplication
      Returns the application type.
      Specified by:
      getType in interface IApplication
      Returns:
      the application type, never null
      See Also:
    • getArtifacts

      public List<IApplicationArtifact> getArtifacts()
      Description copied from interface: IApplication
      Returns a list of application artifacts. May be empty.
      Specified by:
      getArtifacts in interface IApplication
      Returns:
      a list of application artifacts, never null
    • getInfobase

      public InfobaseReference getInfobase()
      Description copied from interface: IInfobaseApplication
      Returns the infobase to run application with.
      Specified by:
      getInfobase in interface IInfobaseApplication
      Returns:
      the infobase to run application with, never null
    • getProject

      public org.eclipse.core.resources.IProject getProject()
      Description copied from interface: IApplication
      Returns the parent project of the application.
      Specified by:
      getProject in interface IApplication
      Returns:
      the parent project of the application, never null
    • getApplication

      public IApplication getApplication()
      Description copied from interface: ILifecycleAware
      Returns the parent application of this lifecycle aware object.
      Specified by:
      getApplication in interface ILifecycleAware
      Specified by:
      getApplication in interface IUrlAccess
      Returns:
      the parent application of this lifecycle aware object, never null
    • getUrl

      public Optional<URL> getUrl() throws ApplicationException
      Description copied from interface: IUrlAccess
      Returns the optional available url access URL. This method may return nothing if an application or application related entity does not have a valid configuration or if it is not running.
      Specified by:
      getUrl in interface IUrlAccess
      Returns:
      the optional available accessible URL
      Throws:
      ApplicationException - if endpoint URL get error occurred
    • getAdapter

      public <T> T getAdapter(Class<T> adapter)
      Specified by:
      getAdapter in interface org.eclipse.core.runtime.IAdaptable
      Overrides:
      getAdapter in class org.eclipse.core.runtime.PlatformObject
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object