public class GCUBEPublisher extends Object implements org.gcube.common.core.informationsystem.publisher.ISPublisher
ISPublisher interface| Modifier and Type | Field and Description |
|---|---|
protected static org.gcube.common.core.utils.logging.GCUBELog |
logger
Object logger.
|
| Constructor and Description |
|---|
GCUBEPublisher()
There MUST be a constructor with NO parameter to instantiate it with the reflection API
|
| Modifier and Type | Method and Description |
|---|---|
InstanceStatePublisher |
getWSRPDocumentManager(org.gcube.common.core.state.GCUBEWSResource resource,
org.gcube.common.core.scope.GCUBEScope... scope)
Gets an instance of a
InstanceStatePublisher. |
String |
registerGCUBEResource(org.gcube.common.core.resources.GCUBEResource profile,
org.gcube.common.core.scope.GCUBEScope scope,
org.gcube.common.core.security.GCUBESecurityManager manager)
Registers a
GCUBEResource on the Information System |
void |
registerWSResource(org.gcube.common.core.state.GCUBEWSResource resource,
org.gcube.common.core.scope.GCUBEScope... scope)
Publishes
GCUBEWSResource registration on a Information System. |
void |
removeGCUBEResource(String ID,
String type,
org.gcube.common.core.scope.GCUBEScope scope,
org.gcube.common.core.security.GCUBESecurityManager manager)
Removes a
GCUBEResource from the Information System |
void |
removeWSResource(org.gcube.common.core.state.GCUBEWSResource resource,
org.gcube.common.core.scope.GCUBEScope... scope)
Unpublishes the registration of a
GCUBEWSResource form the Information System |
void |
updateGCUBEResource(org.gcube.common.core.resources.GCUBEResource profile,
org.gcube.common.core.scope.GCUBEScope scope,
org.gcube.common.core.security.GCUBESecurityManager manager)
Updates a
GCUBEResource in the Information System |
void |
updateWSResource(org.gcube.common.core.state.GCUBEWSResource resource,
org.gcube.common.core.scope.GCUBEScope... scope)
Updates a
GCUBEWSResource in the Information System |
protected static final org.gcube.common.core.utils.logging.GCUBELog logger
public GCUBEPublisher()
public InstanceStatePublisher getWSRPDocumentManager(org.gcube.common.core.state.GCUBEWSResource resource, org.gcube.common.core.scope.GCUBEScope... scope) throws GCUBEPublisherException
InstanceStatePublisher. The returned object provides functionalities to register/unregister GCUBEWSResource on the
IS-ICresource - the GCUBEWSResourcescope - optional registration GCUBEScope, replace the one in the resourceInstanceStatePublisher to register the RP document of the resourceGCUBEPublisherException - Exceptionpublic void registerWSResource(org.gcube.common.core.state.GCUBEWSResource resource,
org.gcube.common.core.scope.GCUBEScope... scope)
throws org.gcube.common.core.informationsystem.publisher.ISPublisherException
GCUBEWSResource registration on a Information System.registerWSResource in interface org.gcube.common.core.informationsystem.publisher.ISPublisherresource - the GCUBEWSResource to registerscope - optional GCUBEScope (overrides the scope specified by the GCUBEWSResource)org.gcube.common.core.informationsystem.publisher.ISPublisherException - if the registration failspublic void removeWSResource(org.gcube.common.core.state.GCUBEWSResource resource,
org.gcube.common.core.scope.GCUBEScope... scope)
throws org.gcube.common.core.informationsystem.publisher.ISPublisherException
GCUBEWSResource form the Information SystemremoveWSResource in interface org.gcube.common.core.informationsystem.publisher.ISPublisherresource - the GCUBEWSResource to unregisteroptional - GCUBEScope (overrides the scope specified by the GCUBEWSResource)org.gcube.common.core.informationsystem.publisher.ISPublisherException - if the remove failspublic String registerGCUBEResource(org.gcube.common.core.resources.GCUBEResource profile, org.gcube.common.core.scope.GCUBEScope scope, org.gcube.common.core.security.GCUBESecurityManager manager) throws org.gcube.common.core.informationsystem.publisher.ISPublisherException
GCUBEResource on the Information SystemregisterGCUBEResource in interface org.gcube.common.core.informationsystem.publisher.ISPublisherresource - the GCUBEResource to registerscope - the GCUBEScope in which to register the resourceGCUBESecurityManager of the registrantorg.gcube.common.core.informationsystem.publisher.ISPublisherException - if the publication failspublic void removeGCUBEResource(String ID, String type, org.gcube.common.core.scope.GCUBEScope scope, org.gcube.common.core.security.GCUBESecurityManager manager) throws org.gcube.common.core.informationsystem.publisher.ISPublisherException
GCUBEResource from the Information SystemremoveGCUBEResource in interface org.gcube.common.core.informationsystem.publisher.ISPublisherID - the ID related to the GCUBEResource to removetype - the GCUBEResource type to removescope - the registration GCUBEScopemanager - the GCUBESecurityManager for contacting the ISorg.gcube.common.core.informationsystem.publisher.ISPublisherException - if the remove failspublic void updateGCUBEResource(org.gcube.common.core.resources.GCUBEResource profile,
org.gcube.common.core.scope.GCUBEScope scope,
org.gcube.common.core.security.GCUBESecurityManager manager)
throws org.gcube.common.core.informationsystem.publisher.ISPublisherException
GCUBEResource in the Information SystemupdateGCUBEResource in interface org.gcube.common.core.informationsystem.publisher.ISPublisherresource - the new GCUBEResource to updatemanager - the GCUBESecurityManager for contacting the ISorg.gcube.common.core.informationsystem.publisher.ISPublisherException - if the update failspublic void updateWSResource(org.gcube.common.core.state.GCUBEWSResource resource,
org.gcube.common.core.scope.GCUBEScope... scope)
throws org.gcube.common.core.informationsystem.publisher.ISPublisherException
GCUBEWSResource in the Information SystemupdateWSResource in interface org.gcube.common.core.informationsystem.publisher.ISPublisherresource - the GCUBEWSResourcescope - optional registration GCUBEScope, replace the one in the resourceorg.gcube.common.core.informationsystem.publisher.ISPublisherException - if the update failsCopyright © 2017. All Rights Reserved.