com.ptc.netmarkets.library
Class NmLibraryCommands

java.lang.Object
  extended bycom.ptc.netmarkets.library.NmLibraryCommands
All Implemented Interfaces:
Externalizable, Serializable

public class NmLibraryCommands
extends Object
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
 
Constructor Summary
NmLibraryCommands()
           
 
Method Summary
static URL exportAll(NmCommandBean cb)
          Exports the latest iteration of all documents in the library

Supported API: false
static URL exportDocumentFiles(NmCommandBean cb)
          Exports the content of the latest iteration of all documents in the library No meta-data is exported.
static URL exportLibraryDocuments(NmCommandBean cb, boolean doFolders, boolean doViewables)
          Exports the latest iteration of all documents in the library

Supported API: false
static URL exportLibraryFolders(NmCommandBean cb)
          Exports the latest iteration of all documents in the library

Supported API: false
static URL exportLibraryObjects(NmCommandBean cb)
          Exports objects (roles,team, documents, projectPlan, deliverables) from the library as selected by the user.
static URL exportLibraryParts(NmCommandBean cb, boolean doFolders, boolean doViewables)
          Exports the latest iteration of all documents in the library

Supported API: false
static void exportLibrarytAsTemplate(NmCommandBean cb)
          

Supported API: false
static URL exportRoles(NmCommandBean cb)
          Command to export the roles for the library These roles may be imported into another container in the organization, or exported into a completely different container

Supported API: false
static URL exportTeam(NmCommandBean cb)
          Command to export the team for the project.
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(NmLibraryCommands thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
static void saveLibraryAsInternalTemplate(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] saveLibraryAsNewLibrary(NmCommandBean cb)
          

Supported API: false
private static NmChangeModel[] startAndGetChangeModel(NmOid projectOid, NmCommandBean cb)
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values
Constructor Detail

NmLibraryCommands

public NmLibraryCommands()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(NmLibraryCommands thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

exportRoles

public static URL exportRoles(NmCommandBean cb)
                       throws WTException
Command to export the roles for the library These roles may be imported into another container in the organization, or exported into a completely different container

Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

exportTeam

public static URL exportTeam(NmCommandBean cb)
                      throws WTException
Command to export the team for the project. This team may be imported into anaother project in the organization. It is very unlikely that this team will be re-usable by another organization. Since import is transactional, if a single member of the team is not present in the LDAP, then it will fail.

Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

exportDocumentFiles

public static URL exportDocumentFiles(NmCommandBean cb)
                               throws WTException
Exports the content of the latest iteration of all documents in the library No meta-data is exported.

Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

exportLibrarytAsTemplate

public static void exportLibrarytAsTemplate(NmCommandBean cb)
                                     throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

saveLibraryAsNewLibrary

public static NmChangeModel[] saveLibraryAsNewLibrary(NmCommandBean cb)
                                               throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

saveLibraryAsInternalTemplate

public static void saveLibraryAsInternalTemplate(NmCommandBean cb)
                                          throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

exportLibraryObjects

public static URL exportLibraryObjects(NmCommandBean cb)
                                throws WTException
Exports objects (roles,team, documents, projectPlan, deliverables) from the library as selected by the user. These objects may then be imported into another container

Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

exportLibraryDocuments

public static URL exportLibraryDocuments(NmCommandBean cb,
                                         boolean doFolders,
                                         boolean doViewables)
                                  throws WTException
Exports the latest iteration of all documents in the library

Supported API: false

Parameters:
cb -
doFolders -
doViewables -
Returns:
URL
Throws:
WTException

exportLibraryFolders

public static URL exportLibraryFolders(NmCommandBean cb)
                                throws WTException
Exports the latest iteration of all documents in the library

Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

exportLibraryParts

public static URL exportLibraryParts(NmCommandBean cb,
                                     boolean doFolders,
                                     boolean doViewables)
                              throws WTException
Exports the latest iteration of all documents in the library

Supported API: false

Parameters:
cb -
doFolders -
doViewables -
Returns:
URL
Throws:
WTException

exportAll

public static URL exportAll(NmCommandBean cb)
                     throws WTException
Exports the latest iteration of all documents in the library

Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

startAndGetChangeModel

private static NmChangeModel[] startAndGetChangeModel(NmOid projectOid,
                                                      NmCommandBean cb)
                                               throws WTException
Throws:
WTException