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> T
getAdapter
(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
.int
hashCode()
toString()
-
Constructor Details
-
ApplicationPublication
Creates an instance ofApplicationPublication
.- Parameters:
the
- context application, cannot benull
publication
- the publication instance, cannot benull
url
- the publication URL ornull
if none
-
-
Method Details
-
getId
Description copied from interface:IUrlAccess
Returns the application URL access unique id.- Specified by:
getId
in interfaceIUrlAccess
- Returns:
- the application URL access unique id, never
null
-
getApplication
Description copied from interface:IUrlAccess
Returns the context application.- Specified by:
getApplication
in interfaceIUrlAccess
- Returns:
- the context application, never
null
-
getUrl
Description copied from interface:IUrlAccess
Returns 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:
getUrl
in interfaceIUrlAccess
- Returns:
- the optional available accessible
URL
- Throws:
ApplicationException
- if endpointURL
get error occurred
-
getName
Description copied from interface:IApplicationPublication
Returns the name of the publication.- Specified by:
getName
in interfaceIApplicationPublication
- Returns:
- the name of the publication, never
null
-
getType
Description copied from interface:IApplicationPublication
Returns the type of the application publication.- Specified by:
getType
in interfaceIApplicationPublication
- Returns:
- the type of the application publication, never
null
-
getPublication
Description copied from interface:IApplicationPublication
Returns the publication model instance.- Specified by:
getPublication
in interfaceIApplicationPublication
- Returns:
- the publication model instance, never
null
-
getAdapter
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
- Overrides:
getAdapter
in classorg.eclipse.core.runtime.PlatformObject
-
hashCode
public int hashCode() -
equals
-
toString
-