|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.contentmanagement.viewmanager.activationrecord.ActivationRecord
public class ActivationRecord
Method Summary | |
---|---|
ActivationRecordBody |
getBody()
Returns the body of the wrapped resource as a ActivationRecordBody . |
GCUBEGenericResource |
getResource()
Returns the wrapped resource. |
static ActivationRecord |
newInstance(GCUBEGenericResource resource)
Creates a new instance around a given resource. |
static ActivationRecord |
newInstance(java.lang.String name,
java.lang.String description,
ActivationRecordBody body)
Creates an instance that wraps a resource with a given name, description, and body. |
void |
publish()
Publishes the record. |
void |
publish(
Schedules the publication of the record. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ActivationRecord newInstance(GCUBEGenericResource resource)
resource
- the resource.
public static ActivationRecord newInstance(java.lang.String name, java.lang.String description, ActivationRecordBody body) throws java.lang.Exception
name
- the name.description
- the description.body
- the body.
java.lang.Exception
- if the instance could not be returned.public GCUBEGenericResource getResource()
public ActivationRecordBody getBody() throws java.lang.Exception
ActivationRecordBody
.
java.lang.Exception
- if the body could not be parsed into a ActivationRecordBody
.public void publish() throws java.lang.Exception
java.lang.Exception
- if the record could not be published.public void publish(scheduler) throws java.lang.Exception
scheduler
- a pre-configured scheduler.
java.lang.Exception
- if the publication could not be scheduled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |