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.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.e1c.g5.dt.applications.infobases.publications.IApplicationPublication
IApplicationPublication.Type -
Constructor Summary
ConstructorsConstructorDescriptionApplicationPublication(IApplication application, Publication publication, URL url) Creates an instance ofApplicationPublication. -
Method Summary
Modifier and TypeMethodDescriptionboolean<T> TgetAdapter(Class<T> adapter) Returns the context application.getId()Returns the application URL access unique id.getName()Returns the name of the publication.Returns the publication model instance.getType()Returns the type of the application publication.getUrl()Returns the optional available url accessURL.inthashCode()toString()
-
Constructor Details
-
ApplicationPublication
Creates an instance ofApplicationPublication.- Parameters:
the- context application, cannot benullpublication- the publication instance, cannot benullurl- the publication URL ornullif none
-
-
Method Details
-
getId
Description copied from interface:IUrlAccessReturns the application URL access unique id.- Specified by:
getIdin interfaceIUrlAccess- Returns:
- the application URL access unique id, never
null
-
getApplication
Description copied from interface:IUrlAccessReturns the context application.- Specified by:
getApplicationin interfaceIUrlAccess- Returns:
- the context application, never
null
-
getUrl
Description copied from interface:IUrlAccessReturns the optional available url accessURL. 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:
getUrlin interfaceIUrlAccess- Returns:
- the optional available accessible
URL - Throws:
ApplicationException- if endpointURLget error occurred
-
getName
Description copied from interface:IApplicationPublicationReturns the name of the publication.- Specified by:
getNamein interfaceIApplicationPublication- Returns:
- the name of the publication, never
null
-
getType
Description copied from interface:IApplicationPublicationReturns the type of the application publication.- Specified by:
getTypein interfaceIApplicationPublication- Returns:
- the type of the application publication, never
null
-
getPublication
Description copied from interface:IApplicationPublicationReturns the publication model instance.- Specified by:
getPublicationin interfaceIApplicationPublication- Returns:
- the publication model instance, never
null
-
getAdapter
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable- Overrides:
getAdapterin classorg.eclipse.core.runtime.PlatformObject
-
hashCode
public int hashCode() -
equals
-
toString
-