public class PublishedScopeResource extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PublishedScopeResource.UnknownScopeOptionException
InvalidVREOption exception
|
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.common.core.utils.logging.GCUBELog |
logger |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static PublishedScopeResource getResource(org.gcube.common.core.scope.GCUBEScope scope) throws Exception
scope - the scope of the resource to loadExceptionpublic void addResource(ScopedResource resource) throws Exception
resource - Exceptionpublic void removeResource(ScopedResource resource) throws Exception
resource - 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 valueExceptionParseExceptionpublic void publish()
throws Exception
PublishedScopeResource into the ISExceptionpublic void dismiss()
throws Exception
PublishedScopeResource from the IS and the scopeExceptionpublic 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 loadpublic boolean loaded()
public void to(ScopeState scopeState)
ScopeState with the actual content of the PublishedResourceListscopeState - the list to fillpublic void loadFromLocalState(ScopeState scopeState) throws Exception
PublishedResourceList with the content of the input ScopeStatescopeState - the list to loadException - if the load failspublic void synchWithLocalState(ScopeState scopeState) throws Exception
PublishedResourceList with the content of the input ScopeStatescopeState - the list to synchronize withException - if the synchronization failsCopyright © 2014. All Rights Reserved.