org.eclipse.corona.container.manager
Class ProjectContainerStub
java.lang.Object
org.eclipse.corona.container.manager.ProjectContainerStub
public class ProjectContainerStub
- extends java.lang.Object
Represents project containers in PCX. The object stores project container
(PC) state fetched from the server without fetching the actual PC. The
solution increases performance of the server and communication overhead. If
PC is required, it is fetched from the server and stored as reference in
ProjectContainerStub. The class supports three main states of PC:
- unavailable - the PC has not ever been fetched from server (in
particular a fetch failed), but a reference to PC exists, for example as a
related container
- closed - the PC has been identified on server, but its state is closed
on the server side, PC is not available on client unless it has previously
been in open state
- open - the PC is opened on server, it is fetched from server when access
is required.
- Author:
- cwpl-pkaczmar
Constructor Summary |
ProjectContainerStub(ProjectContextContainer projectContainer,
int state)
Constructor with project container object and state - name and uri taken
from PC |
ProjectContainerStub(java.lang.String uriString)
Constructor with uncomplete data - no name available, state set to closed
by default |
ProjectContainerStub(java.lang.String uriString,
java.lang.String nameString,
int state)
Constructor with uri, name and state of PC, no PC object is available |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATE_OPENED
public static final int STATE_OPENED
- See Also:
- Constant Field Values
STATE_CLOSED
public static final int STATE_CLOSED
- See Also:
- Constant Field Values
STATE_UNAVAILABLE
public static final int STATE_UNAVAILABLE
- See Also:
- Constant Field Values
ProjectContainerStub
public ProjectContainerStub(java.lang.String uriString)
- Constructor with uncomplete data - no name available, state set to closed
by default
- Parameters:
uriString
-
ProjectContainerStub
public ProjectContainerStub(java.lang.String uriString,
java.lang.String nameString,
int state)
- Constructor with uri, name and state of PC, no PC object is available
- Parameters:
uriString
- nameString
- state
-
ProjectContainerStub
public ProjectContainerStub(ProjectContextContainer projectContainer,
int state)
- Constructor with project container object and state - name and uri taken
from PC
- Parameters:
projectContainer
- state
-
getUriString
public java.lang.String getUriString()
setUriString
public void setUriString(java.lang.String uriString)
getNameString
public java.lang.String getNameString()
setNameString
public void setNameString(java.lang.String nameString)
getState
public int getState()
setState
public void setState(int state)
getProjectContainer
public ProjectContextContainer getProjectContainer()
setProjectContainer
public void setProjectContainer(ProjectContextContainer projectContainer)