|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
IProject represents a collaboration project
object. A Project is the basic container for all other
collaboration objects. The class allows modifications
of project metadata and security. Note that all
operations modifying the project will not be stored
permanently until store method is called.
| Method Summary | |
java.util.Date |
getCreatedDate()
Returns the creation date. |
java.lang.String |
getDescription()
Returns the project description. |
java.lang.String |
getDetailsURL()
Returns the URL at which the project details can be viewed. |
int |
getID()
Returns the project ID. |
java.util.Date |
getLastModifiedDate()
Returns the last modified date. |
java.lang.String |
getName()
Returns the project name. |
int |
getOwnerUserID()
Returns the user ID of the owner of this project. |
IRole |
getRole(RoleType roleType)
Returns the role in this project based on the given role type. |
java.util.Date |
getStartDate()
Returns the project start date. |
ProjectStatus |
getStatus()
Returns the current project status. |
boolean |
hasCreatedDate()
Returns true if the created date is available, else false. |
boolean |
hasLastModifiedDate()
Returns true if the lastModifiedDate is available, else false. |
boolean |
hasStartDate()
Returns true if the start date is available, else
false. |
boolean |
isActionAllowed(ProjectPermission permission)
Returns true if a given ProjectPermission is
allowed for this project. |
void |
setDescription(java.lang.String description)
Sets the project description. |
void |
setName(java.lang.String name)
Sets the project name. |
void |
setStartDate(java.util.Date startDate)
Sets the project start date. |
void |
setStatus(ProjectStatus status)
Sets the project status. |
void |
store()
Stores a project. |
| Method Detail |
public java.util.Date getCreatedDate()
java.lang.IllegalStateException - if the project has not yet
been stored or has already been removedpublic java.lang.String getDescription()
java.lang.IllegalStateException - if the project has already
been removed.public java.lang.String getDetailsURL()
java.lang.IllegalStateException - if the project has not yet
been stored or has already been removed.public int getID()
java.lang.IllegalStateException - if the project has not yet
been stored or has already been removed.public java.util.Date getLastModifiedDate()
java.lang.IllegalStateException - if the project has not yet
been stored or has already been removed.public java.lang.String getName()
java.lang.IllegalStateException - if the project has already been removed.public int getOwnerUserID()
java.lang.IllegalStateException - if the project has already
been removed.
public IRole getRole(RoleType roleType)
throws CollaborationException
roleType - type of role, cannot be null.
java.lang.IllegalStateException - if the project has not yet
been stored or has already been removed.
CollaborationExceptionpublic java.util.Date getStartDate()
java.lang.IllegalStateException - if the project has already
been removed, or an attempt is made to get the property value prior to it being set.public ProjectStatus getStatus()
ProjectStatus that indicates the current project status.
java.lang.IllegalStateException - if the project has already
been removed.public boolean hasCreatedDate()
true if the created date is available, else false.
true if the createdDate is available, else false.
java.lang.IllegalStateException - if the project has already
been removed.public boolean hasLastModifiedDate()
true if the lastModifiedDate is available, else false.
true if the lastModifiedDate is available, else false.
java.lang.IllegalStateException - if the project has already
been removed.public boolean hasStartDate()
true if the start date is available, else
false.
true if the start date is available, else
false.
java.lang.IllegalStateException - if the project has already
been removed.
public boolean isActionAllowed(ProjectPermission permission)
throws CollaborationException,
java.rmi.RemoteException
ProjectPermission is
allowed for this project. This method can be used to
determine if a user can perform a given action within
the context of a project such as editing a project,
copying a project, editing project security, etc.
See the enumeration type ProjectPermission
for details about specific project permissions.
permission - project permission, cannot be null.
true if the user can perform
the given action, else false.
java.lang.IllegalStateException - if the project has not yet
been stored or has already been removed.
CollaborationException - if the method call resulted in an error.
java.rmi.RemoteException - if there is a communication problem during the execution of the remote method call.public void setDescription(java.lang.String description)
description - the description.
java.lang.IllegalStateException - if the project has already
been removed.public void setName(java.lang.String name)
name - the project name.
java.lang.IllegalStateException - if the project has already
been removed.public void setStartDate(java.util.Date startDate)
store.
startDate - the start date of the project.
java.lang.IllegalStateException - if the project has already
been removed.public void setStatus(ProjectStatus status)
status - of the project.
java.lang.IllegalStateException - if the project has already
been removed.
public void store()
throws CollaborationException,
java.rmi.RemoteException
java.lang.IllegalStateException - if the project has already
been removed.
CollaborationException - if the method call resulted in an error.
java.rmi.RemoteException - if there is a communication problem during the execution of the remote method call.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©2007 BEA Systems, Inc. All Rights Reserved.