public class SUIDUtil extends Object
Module: jobs-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>jobs-api</artifactId> </dependency>
Constructor and Description |
---|
SUIDUtil() |
Modifier and Type | Method and Description |
---|---|
static CyNetwork |
restoreNetwork(CyJob job,
CyNetworkManager netManager,
Long networkSUID,
boolean clear)
This method is used to restore a saved network based on the network SUID.
|
static Map<Long,CyIdentifiable> |
restoreSUIDs(CyJob job,
CyNetwork network,
List<Long> oldIds,
boolean clear)
Method to restore Cytoscape objects based on a list of SUIDs that were sent to the remote
service as saved in the hidden table.
|
static void |
saveSUIDs(CyJob job,
CyNetwork network,
List<? extends CyIdentifiable> objs)
This method may be used to save a list of SUIDs that have been sent to a remote
service so that they may be restored later
|
public static void saveSUIDs(CyJob job, CyNetwork network, List<? extends CyIdentifiable> objs)
job
- the job that we're saving the SUIDs fornetwork
- the network that the SUIDs are part ofobjs
- the Cytoscape objects whose SUIDs we want to savepublic static CyNetwork restoreNetwork(CyJob job, CyNetworkManager netManager, Long networkSUID, boolean clear)
job
- the CyJob
we're restoringnetManager
- the CyNetworkManager
to get the list of networksnetworkSUID
- the SUIDof the network we're restoringclear
- if true, remove the column for this jobpublic static Map<Long,CyIdentifiable> restoreSUIDs(CyJob job, CyNetwork network, List<Long> oldIds, boolean clear)
job
- the CyJob
we're restoringnetwork
- the network the SUIDs are part of. See SaveSUID.restoreNetwork()
for
a method to get the networkoldIds
- the list of old SUIDs that were sent to the remote server and saved
in the sessionclear
- if true, remove the columns for this jobCopyright 2011-2015 Cytoscape Consortium. All rights reserved.