public class ActivationRecord extends Object
GCUBEGenericResources that record
client invocations of the T-Binder service.| Modifier and Type | Method and Description |
|---|---|
ActivationRecordBody |
getBody()
Returns the body of the wrapped resource as a
ActivationRecordBody. |
org.gcube.common.core.resources.GCUBEGenericResource |
getResource()
Returns the wrapped resource
|
static ActivationRecord |
newInstance(org.gcube.common.core.resources.GCUBEGenericResource resource)
Creates an instance around a given resource.
|
static ActivationRecord |
newInstance(String description,
ActivationRecordBody body)
Creates an instance from a name, description, and body for the resource.
|
void |
publish()
Publishes the record
|
void |
publish(org.gcube.common.core.utils.handlers.GCUBEScheduledHandler<Void> scheduler)
Schedules the publication of the record
|
public static ActivationRecord newInstance(org.gcube.common.core.resources.GCUBEGenericResource resource)
resource - the resourcepublic static ActivationRecord newInstance(String description, ActivationRecordBody body)
description - the descriptionbody - the bodypublic org.gcube.common.core.resources.GCUBEGenericResource getResource()
public ActivationRecordBody getBody() throws Exception
ActivationRecordBody.Exception - if the body cannot be parsed into a ActivationRecordBodypublic void publish()
throws Exception
Exception - if the record cannot be publishedCopyright © 2014. All Rights Reserved.