org.gcube.vremanagement.resourcemanager.impl.state
Class RawScopeState

java.lang.Object
  extended by org.gcube.vremanagement.resourcemanager.impl.state.RawScopeState

public class RawScopeState
extends Object

The scope state. While ScopeState incorporates the behavior of a scope state, this separate and minimal class contains only the core information to serialize and nothing else. This way, the serialized data are separated from the state behavior, by minimizing the need of future changes in the state class.

Author:
Manuele Simi (ISTI-CNR)

Field Summary
protected  Map<String,Object> data
          any data belonging the state worthy to be serialized
protected  MultiKeysMap<String,String,ScopedResource> resources
          the list of resources
protected  String scope
          the scope this state belongs to
 
Constructor Summary
protected RawScopeState()
           
 
Method Summary
 org.gcube.common.core.scope.GCUBEScope getScope()
           
protected  void initialize(org.gcube.common.core.scope.GCUBEScope scope)
          Initializes the state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scope

protected String scope
the scope this state belongs to


resources

protected MultiKeysMap<String,String,ScopedResource> resources
the list of resources


data

protected Map<String,Object> data
any data belonging the state worthy to be serialized

Constructor Detail

RawScopeState

protected RawScopeState()
Method Detail

initialize

protected void initialize(org.gcube.common.core.scope.GCUBEScope scope)
Initializes the state

Parameters:
scope - the scope this state belongs to

getScope

public org.gcube.common.core.scope.GCUBEScope getScope()
Returns:
the scope this state belongs to


Copyright © 2012. All Rights Reserved.