|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
org.gcube.vremanagement.resourcemanager.impl.state.ScopeState
public class ScopeState
A list of scoped resources
Nested Class Summary | |
---|---|
static class |
ScopeState.OPERATION
|
Method Summary | |
---|---|
void |
addResources(java.util.Set<ScopedResource> newresources)
Adds a new resources to the list |
void |
changeDescription(java.lang.String description)
Changes the scope description |
boolean |
containsResource(java.lang.String id)
|
void |
forceResourceRemoval(java.util.Set<ScopedResource> resources)
Removes the resource from the state, no matter about its actual status |
java.util.Collection<ScopedResource> |
getAllResources()
Gets all the ScopedResource s |
java.lang.String |
getDescription()
|
java.lang.String |
getDesigner()
Gets the scope designer |
java.util.Date |
getEndTime()
|
ScopeState.OPERATION |
getLastOperationPerformed()
|
Session |
getLastReport()
Gets the last active Session |
java.lang.String |
getManager()
Gets the scope manager |
java.lang.String |
getName()
|
RawScopeState |
getRawScopeState()
Gets the RawScopeState |
ScopedResource |
getResource(java.lang.String id)
Gets the resource with the given id |
java.util.Set<ScopedResource> |
getResourcesByType(java.lang.String type)
Gets resources of the given type |
GCUBEScope |
getScope()
Gets the resource's scope |
java.util.Date |
getStartTime()
|
boolean |
isSecurityEnabled()
|
void |
notifyObservers()
|
void |
notifyObservers(java.lang.Object whatschanged)
|
void |
removeAllResourcesByType(java.lang.String type)
Removes all the resource of the given type |
void |
removeResources(java.util.Set<ScopedResource> oldresources)
Removes the resources from the scope |
void |
setDesigner(java.lang.String designer)
Sets the scope designer identity |
void |
setEndTime(java.util.Date endTime)
|
void |
setLastOperationPerformed(ScopeState.OPERATION operation)
|
void |
setLastSession(Session report)
Sets the last active Session |
void |
setManager(java.lang.String manager)
Sets the scope manager identity |
void |
setName(java.lang.String name)
|
void |
setRawScopeState(RawScopeState state)
Sets the new RawScopeState
it usually invoked at deserialization time, see Serializer.load(ScopeState, GCUBEScope) |
void |
setSecurity(boolean securityEnabled)
|
void |
setStartTime(java.util.Date startTime)
|
Methods inherited from class java.util.Observable |
---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setManager(java.lang.String manager)
manager
- the managerpublic void setDesigner(java.lang.String designer)
manager
- the managerpublic void changeDescription(java.lang.String description)
description
- the descriptionpublic void addResources(java.util.Set<ScopedResource> newresources)
newresources
- the resources to addpublic java.util.Set<ScopedResource> getResourcesByType(java.lang.String type)
type
- the type to filter
public ScopedResource getResource(java.lang.String id)
id
- the resource identified
public boolean containsResource(java.lang.String id)
public void removeAllResourcesByType(java.lang.String type)
type
- the type of resources to removepublic void removeResources(java.util.Set<ScopedResource> oldresources)
oldresources
- the resources to removepublic void forceResourceRemoval(java.util.Set<ScopedResource> resources)
resources
- public GCUBEScope getScope()
public void notifyObservers(java.lang.Object whatschanged)
notifyObservers
in class java.util.Observable
public void notifyObservers()
notifyObservers
in class java.util.Observable
public java.util.Collection<ScopedResource> getAllResources()
ScopedResource
s
ScopedResource
spublic java.lang.String getManager()
public java.lang.String getDesigner()
public java.lang.String getDescription()
public java.lang.String getName()
public java.util.Date getEndTime()
public java.util.Date getStartTime()
public boolean isSecurityEnabled()
public void setEndTime(java.util.Date endTime)
public void setStartTime(java.util.Date startTime)
public void setName(java.lang.String name)
public ScopeState.OPERATION getLastOperationPerformed()
public void setLastOperationPerformed(ScopeState.OPERATION operation)
operation
- the last operation performed on the listpublic RawScopeState getRawScopeState()
RawScopeState
public void setRawScopeState(RawScopeState state)
RawScopeState
it usually invoked at deserialization time, see Serializer.load(ScopeState, GCUBEScope)
state
- public void setSecurity(boolean securityEnabled)
public Session getLastReport()
Session
public void setLastSession(Session report)
Session
session
- the session
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |