Class ApplicationPublication

java.lang.Object
org.eclipse.core.runtime.PlatformObject
com.e1c.g5.dt.internal.applications.infobases.publications.ApplicationPublication
All Implemented Interfaces:
IApplicationPublication, IUrlAccess, org.eclipse.core.runtime.IAdaptable

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

    • ApplicationPublication

      public ApplicationPublication(IApplication application, Publication publication, URL url)
      Creates an instance of ApplicationPublication.
      Parameters:
      the - context application, cannot be null
      publication - the publication instance, cannot be null
      url - the publication URL or null if none
  • Method Details

    • getId

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

      public IApplication getApplication()
      Description copied from interface: IUrlAccess
      Returns the context application.
      Specified by:
      getApplication in interface IUrlAccess
      Returns:
      the context application, 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
    • getName

      public String getName()
      Description copied from interface: IApplicationPublication
      Returns the name of the publication.
      Specified by:
      getName in interface IApplicationPublication
      Returns:
      the name of the publication, never null
    • getType

      public IApplicationPublication.Type getType()
      Description copied from interface: IApplicationPublication
      Returns the type of the application publication.
      Specified by:
      getType in interface IApplicationPublication
      Returns:
      the type of the application publication, never null
    • getPublication

      public Publication getPublication()
      Description copied from interface: IApplicationPublication
      Returns the publication model instance.
      Specified by:
      getPublication in interface IApplicationPublication
      Returns:
      the publication model instance, never null
    • 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