|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.vremanagement.resourcemanager.impl.state.PublishedScopeResource
public class PublishedScopeResource
The scope resource published in the IS
| Nested Class Summary | |
|---|---|
static class |
PublishedScopeResource.UnknownScopeOptionException
InvalidVREOption exception |
| Field Summary | |
|---|---|
protected org.gcube.common.core.utils.logging.GCUBELog |
logger
|
| Method Summary | |
|---|---|
void |
addResource(ScopedResource resource)
Adds a resource to PublishedScopeResource |
void |
dismiss()
Dismisses the PublishedScopeResource from the IS and the scope |
String |
getDescription()
|
String |
getDesigner()
|
String |
getDisplayName()
|
Date |
getEndTime()
|
String |
getManager()
|
static PublishedScopeResource |
getResource(org.gcube.common.core.scope.GCUBEScope scope)
Gets the current Scope Resource |
org.gcube.common.core.scope.GCUBEScope |
getScope()
|
Date |
getStartTime()
|
org.gcube.common.core.scope.GCUBEScope.Type |
getType()
Returns the type of the scope. |
boolean |
isSecurityEnabled()
|
protected boolean |
load()
Loads the scope resource from the IS |
boolean |
loaded()
|
void |
loadFromLocalState(ScopeState scopeState)
Fills this PublishedResourceList with the content of the input ScopeState |
void |
publish()
Publishes the PublishedScopeResource into the IS |
void |
reload()
|
void |
removeResource(ScopedResource resource)
Removes a resource from the PublishedScopeResource |
void |
setOption(String name,
String value)
Sets a scope option |
void |
synchWithLocalState(ScopeState scopeState)
Synchronizes this PublishedResourceList with the content of the input ScopeState |
void |
to(ScopeState scopeState)
Fills the input ScopeState with the actual content of the PublishedResourceList |
String |
toString()
Returns a string representation of the PublishedScopeResource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.gcube.common.core.utils.logging.GCUBELog logger
| Method Detail |
|---|
public void reload()
throws Exception
Exception
public static PublishedScopeResource getResource(org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
scope - the scope of the resource to load
Exception
public void addResource(ScopedResource resource)
throws Exception
resource -
PublishedScopeResource.UnknownScopeOptionException
Exception
public void removeResource(ScopedResource resource)
throws Exception
resource -
PublishedScopeResource.UnknownScopeOptionException
Exceptionpublic String toString()
toString in class ObjectIOExceptionpublic org.gcube.common.core.scope.GCUBEScope getScope()
public org.gcube.common.core.scope.GCUBEScope.Type getType()
public void setOption(String name,
String value)
throws Exception
name - the option namevalue - the option value
PublishedScopeResource.UnknownScopeOptionException
ParseException
Exception
public void publish()
throws Exception
PublishedScopeResource into the IS
Exception
public void dismiss()
throws Exception
PublishedScopeResource from the IS and the scope
Exceptionpublic String getManager()
public String getDesigner()
public String getDescription()
public String getDisplayName()
public Date getStartTime()
public Date getEndTime()
public boolean isSecurityEnabled()
protected boolean load()
resource - the resource to load
public boolean loaded()
public void to(ScopeState scopeState)
ScopeState with the actual content of the PublishedResourceList
scopeState - the list to fill
public void loadFromLocalState(ScopeState scopeState)
throws Exception
PublishedResourceList with the content of the input ScopeState
scopeState - the list to load
PublishedScopeResource.UnknownScopeOptionException - if the load fails
Exception
public void synchWithLocalState(ScopeState scopeState)
throws Exception
PublishedResourceList with the content of the input ScopeState
scopeState - the list to synchronize with
PublishedScopeResource.UnknownScopeOptionException - if the synchronization fails
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||