com.jamasoftware.contour.ws.v2.domain
Class WsProject

java.lang.Object
  extended by com.jamasoftware.contour.ws.v2.domain.WsProject

public class WsProject
extends java.lang.Object

This object represents a Contour project. A project is a collection of Modules, Items, Filters, Releases and Baselines, and is defined according to your needs.

Author:
Dylan

Constructor Summary
WsProject()
          Creates an empty WsProject object.
WsProject(java.lang.String name, java.lang.String description, java.lang.Integer parent, java.lang.Boolean isFolder, WsUser projectManager, WsOrganization organization)
          Creates a new WsProject object with the given values.
 
Method Summary
 java.lang.Boolean getActive()
          Is this project active?
 java.lang.String getDescription()
          Gets the project's description.
 java.lang.Integer getId()
          Gets the project's id.
 java.lang.Boolean getIsFolder()
          Is this project a folder?
 java.lang.String getName()
          Gets the project's name.
 WsOrganization getOrganization()
          Gets the organization this project is in.
 java.lang.Integer getParent()
          Gets the parent of the project.
 WsLookup getProjectGroup()
          Gets the group this project belongs to.
 WsUser getProjectManager()
          Gets the manager for this project.
 WsProjectType getProjectType()
          Gets the default item type for this project.
 WsLookup getStatusId()
          Gets the status of the project.
 com.jamasoftware.contour.security.acl.AclObjectIdentity obtainAclObjectIdentity()
          Deprecated.  
 void setActive(java.lang.Boolean active)
          Sets whether or not this project is active.
 void setDescription(java.lang.String description)
          Sets the project's description.
 void setId(java.lang.Integer id)
          Sets the project's id.
 void setIsFolder(java.lang.Boolean isFolder)
          Sets whether or not this project is a folder.
 void setName(java.lang.String name)
          Sets the project's name.
 void setOrganization(WsOrganization organization)
          Sets the organization this project is in.
 void setParent(java.lang.Integer parent)
          Sets the parent of the project.
 void setProjectGroup(WsLookup projectGroup)
          Sets the group this project belongs to.
 void setProjectManager(WsUser projectManager)
          Sets the manager for this project.
 void setProjectType(WsProjectType projectType)
          Sets the default item type for this project.
 void setStatusId(WsLookup statusId)
          Sets the status of the project.
 java.lang.String toString()
          Gets a string representation of this project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsProject

public WsProject()
Creates an empty WsProject object.


WsProject

public WsProject(java.lang.String name,
                 java.lang.String description,
                 java.lang.Integer parent,
                 java.lang.Boolean isFolder,
                 WsUser projectManager,
                 WsOrganization organization)
Creates a new WsProject object with the given values.

Parameters:
name - name of the project
description - description of the project (can be null)
parent - id of the parent project (can be null)
isFolder - is this project a folder?
projectManager - project manager
organization - organization the project is in
Method Detail

getId

public java.lang.Integer getId()
Gets the project's id.

Returns:
project id

setId

public void setId(java.lang.Integer id)
Sets the project's id.

Parameters:
id - the project's id

getName

public java.lang.String getName()
Gets the project's name.

Returns:
project name

setName

public void setName(java.lang.String name)
Sets the project's name.

Parameters:
name - project name

getDescription

public java.lang.String getDescription()
Gets the project's description.

Returns:
project description

setDescription

public void setDescription(java.lang.String description)
Sets the project's description.

Parameters:
description - project description

getStatusId

public WsLookup getStatusId()
Gets the status of the project.

Returns:
project status

setStatusId

public void setStatusId(WsLookup statusId)
Sets the status of the project.

Parameters:
statusId - status of the project

getParent

public java.lang.Integer getParent()
Gets the parent of the project.

Returns:
id of the parent of this project (Can be null).

setParent

public void setParent(java.lang.Integer parent)
Sets the parent of the project.

Parameters:
parent - id of the parent of this project.

getIsFolder

public java.lang.Boolean getIsFolder()
Is this project a folder?

Returns:
whether or not this project is a folder.

setIsFolder

public void setIsFolder(java.lang.Boolean isFolder)
Sets whether or not this project is a folder.

Parameters:
isFolder - whether or not this project is a folder

getActive

public java.lang.Boolean getActive()
Is this project active?

Returns:
whether or not this project is active

setActive

public void setActive(java.lang.Boolean active)
Sets whether or not this project is active.

Parameters:
active - whether or not this project is active

getProjectManager

public WsUser getProjectManager()
Gets the manager for this project.

Returns:
project manager

setProjectManager

public void setProjectManager(WsUser projectManager)
Sets the manager for this project.

Parameters:
projectManager - user to be set as project manager

getOrganization

public WsOrganization getOrganization()
Gets the organization this project is in.

Returns:
organization containing this project

setOrganization

public void setOrganization(WsOrganization organization)
Sets the organization this project is in.

Parameters:
organization - to contain this project

getProjectGroup

public WsLookup getProjectGroup()
Gets the group this project belongs to.

Returns:
project group

setProjectGroup

public void setProjectGroup(WsLookup projectGroup)
Sets the group this project belongs to.

Parameters:
projectGroup - project group

getProjectType

public WsProjectType getProjectType()
Gets the default item type for this project.

Returns:
default item type for project (can be null)

setProjectType

public void setProjectType(WsProjectType projectType)
Sets the default item type for this project.

Parameters:
projectType - default item type

obtainAclObjectIdentity

@Deprecated
public com.jamasoftware.contour.security.acl.AclObjectIdentity obtainAclObjectIdentity()
Deprecated. 

Returns:

toString

public java.lang.String toString()
Gets a string representation of this project.

Overrides:
toString in class java.lang.Object
Returns:
String


Copyright © 2010 Jama Software, Inc. All Rights Reserved.