wt.project
Class ProjectHelper

java.lang.Object
  extended bywt.project.ProjectHelper
All Implemented Interfaces:
Externalizable, Serializable

public class ProjectHelper
extends Object
implements Externalizable

ProjectHelper provides client invokable meethods to project services. These methods are executed on the client side.

Supported API: true

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
           
static ProjectService service
          

Supported API: false
private static boolean VERBOSE
           
 
Constructor Summary
ProjectHelper()
           
 
Method Summary
 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(ProjectHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
static ProjectManaged setProject(ProjectManaged object, Project project)
          Set the project of the ProjectManaged object.
static ProjectManaged setProject(ProjectManaged object, ProjectReference projectRef)
          Set the project of the ProjectManaged object.
 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

service

public static final ProjectService service


Supported API: false


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

VERBOSE

private static boolean VERBOSE
Constructor Detail

ProjectHelper

public ProjectHelper()
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(ProjectHelper 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

setProject

public static ProjectManaged setProject(ProjectManaged object,
                                        Project project)
                                 throws ProjectException,
                                        WTPropertyVetoException
Set the project of the ProjectManaged object. If the object is already persisted, this method will throw an exception.

Supported API: true

Parameters:
object - the ProjectManaged object whose project will be set
project - the project to be set on the ProjectManaged object.
Returns:
ProjectManaged
Throws:
ProjectException
WTPropertyVetoException

setProject

public static ProjectManaged setProject(ProjectManaged object,
                                        ProjectReference projectRef)
                                 throws WTException,
                                        ProjectException,
                                        WTPropertyVetoException
Set the project of the ProjectManaged object. If the object is already persisted, this method will throw an exception.

Supported API: true

Parameters:
object - theProjectManaged object whose project should be set
projectRef - the ProjectReference of the project that should be set on the ProjectManaged object.
Returns:
ProjectManaged
Throws:
WTException
ProjectException
WTPropertyVetoException