public final class Project extends CGateObject implements java.lang.Comparable<Project>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Issue a
project close project_name to the C-Gate server. |
int |
compareTo(Project o) |
Project |
copy(java.lang.String target_project_name)
Issue a
project copy source project_name copy project_name to the C-Gate server. |
void |
delete()
Issue a
project delete project_name to the C-Gate server. |
static java.util.ArrayList<Project> |
dir(CGateSession cgate_session,
boolean cached_objects)
Issue a
project dir and project list to the
C-Gate server. |
CGateObject |
getCGateObject(java.lang.String address) |
protected java.lang.String |
getKey() |
java.lang.String |
getName()
Get the project name.
|
Network |
getNetwork(int network_id)
Retrieve the Network Object for the specified network id.
|
java.util.ArrayList<Network> |
getNetworks(boolean cached_objects)
Get all Network objects for this Project.
|
static Project |
getProject(CGateSession cgate_session,
java.lang.String project_name)
Retrieve the Project Object for the specified project name.
|
static java.util.ArrayList<Project> |
list(CGateSession cgate_session,
boolean cached_objects)
Issue a
project dir to the C-Gate server. |
void |
load()
Issue a
project load project_name to the C-Gate server. |
static Project |
newProject(CGateSession cgate_session,
java.lang.String project_name)
Issue a
project new project_name to the C-Gate server. |
void |
save()
Issue a
project save project_name to the C-Gate server. |
void |
start()
Issue a
project start project_name to the C-Gate server. |
cacheObject, clearCache, clearCache, getAddress, getAllCachedObjects, getCachedObject, getCGateSession, setupSubtreeCache, uncacheObjectprotected java.lang.String getKey()
getKey in class CGateObjectpublic CGateObject getCGateObject(java.lang.String address) throws CGateException
getCGateObject in class CGateObjectCGateExceptionpublic int compareTo(Project o)
compareTo in interface java.lang.Comparable<Project>public static java.util.ArrayList<Project> dir(CGateSession cgate_session, boolean cached_objects) throws CGateException
project dir and project list to the
C-Gate server.cgate_session - The C-Gate sessioncached_objects - Return cached Project objects or rebuild list from C-GateCGateExceptionpublic static java.util.ArrayList<Project> list(CGateSession cgate_session, boolean cached_objects) throws CGateException
project dir to the C-Gate server.cgate_session - The C-Gate sessioncached_objects - Return cached Project objects or rebuild list from C-GateCGateExceptionpublic static Project newProject(CGateSession cgate_session, java.lang.String project_name) throws CGateException
project new project_name to the C-Gate server.cgate_session - The C-Gate sessionproject_name - The project name of the new copyCGateExceptionpublic static Project getProject(CGateSession cgate_session, java.lang.String project_name) throws CGateException
cgate_session - The CGateSessionproject_name - The project name to retrieveCGateExceptionpublic Network getNetwork(int network_id) throws CGateException
network_id - The network to retrieveCGateExceptionpublic java.util.ArrayList<Network> getNetworks(boolean cached_objects) throws CGateException
cached_objects - Return cached Project objects or rebuild list from C-GateCGateExceptionpublic java.lang.String getName()
public void close()
throws CGateException
project close project_name to the C-Gate server.CGateExceptionpublic Project copy(java.lang.String target_project_name) throws CGateException
project copy source project_name copy project_name to the C-Gate server.project_name - The project name of the new copyCGateExceptionpublic void delete()
throws CGateException
project delete project_name to the C-Gate server.CGateExceptionpublic void load()
throws CGateException
project load project_name to the C-Gate server.CGateExceptionpublic void start()
throws CGateException
project start project_name to the C-Gate server.CGateExceptionpublic void save()
throws CGateException
project save project_name to the C-Gate server.CGateException