|
|||||||||
| Home >> All >> com >> opencms >> [ file overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.opencms.file
Class CmsProject

java.lang.Objectcom.opencms.file.CmsProject
- All Implemented Interfaces:
- java.lang.Cloneable, com.opencms.core.I_CmsConstants
- Direct Known Subclasses:
- CmsBackupProject
- public class CmsProject
- extends java.lang.Object
- implements com.opencms.core.I_CmsConstants, java.lang.Cloneable
- extends java.lang.Object
Describes a project. A project is used to handle versions of one resource.
- Version:
- $Revision: 1.36 $ $Date: 2003/04/01 15:20:18 $
| Field Summary | |
private long |
m_createdate
The creation date of this project. |
private java.lang.String |
m_description
The description of this project. |
private int |
m_flags
The state of this project. |
private int |
m_groupId
The group_id of the group, who may access the project. |
private int |
m_id
The id of this project. |
private int |
m_managergroupId
The manager group_id of the group, who may manage the project. |
private int |
m_managerGroupId
The manager group of this resource. |
private java.lang.String |
m_name
The name of this project. |
private int |
m_ownerId
The user_id of the owner. |
private int |
m_taskId
The task_id for this project. |
private int |
m_type
The project type |
| Constructor Summary | |
CmsProject(int projectId,
int flags)
Construct a new CmsProject that can be used to check if the provided id is the online project id. |
|
CmsProject(int projectId,
java.lang.String name,
java.lang.String description,
int taskId,
int ownerId,
int group,
int managerGroup,
int flags,
java.sql.Timestamp createdate,
int type)
Construct a new CmsProject. |
|
CmsProject(java.sql.ResultSet res,
com.opencms.file.genericSql.CmsQueries m_cq)
Construct a new CmsProject, from a ResultSet. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones the CmsProject by creating a new CmsProject Object. |
boolean |
doStaticExport()
Do static export after publish. |
boolean |
equals(java.lang.Object obj)
Compares the overgiven object with this object. |
long |
getCreateDate()
Returns the creation date of this project. |
java.lang.String |
getDescription()
Returns the description of this project. |
int |
getFlags()
Returns the state of this project. This may be C_PROJECT_STATE_UNLOCKED, C_PROJECT_STATE_LOCKED, C_PROJECT_STATE_ARCHIVE. |
int |
getGroupId()
Returns the groupid of this project. |
int |
getId()
Returns the id of this project. |
int |
getManagerGroupId()
Returns the manager groupid of this project. |
java.lang.String |
getName()
Returns the name of this project. |
int |
getOwnerId()
Returns the userid of the project owner. |
int |
getTaskId()
Returns the taskid of this project. |
int |
getType()
Gets the type. |
boolean |
isOnlineProject()
Returns true if this project is the Online project. |
void |
setDescription(java.lang.String description)
Sets the description of this project. |
void |
setFlags(int flags)
Sets the state of this project. This may be C_PROJECT_STATE_UNLOCKED, C_PROJECT_STATE_LOCKED, C_PROJECT_STATE_ARCHIVE. |
(package private) void |
setType(int id)
Sets the type. |
java.lang.String |
toString()
Returns a string-representation for this object. |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
m_id
private int m_id
- The id of this project.
m_ownerId
private int m_ownerId
- The user_id of the owner.
m_groupId
private int m_groupId
- The group_id of the group, who may access the project.
m_managergroupId
private int m_managergroupId
- The manager group_id of the group, who may manage the project.
m_taskId
private int m_taskId
- The task_id for this project.
m_name
private java.lang.String m_name
- The name of this project.
m_description
private java.lang.String m_description
- The description of this project.
m_managerGroupId
private int m_managerGroupId
- The manager group of this resource.
m_createdate
private long m_createdate
- The creation date of this project.
m_flags
private int m_flags
- The state of this project.
m_type
private int m_type
- The project type
| Constructor Detail |
CmsProject
public CmsProject(int projectId,
java.lang.String name,
java.lang.String description,
int taskId,
int ownerId,
int group,
int managerGroup,
int flags,
java.sql.Timestamp createdate,
int type)
- Construct a new CmsProject.
CmsProject
public CmsProject(int projectId,
int flags)
- Construct a new CmsProject that can be used to check if the provided id is the online project id.
CmsProject
public CmsProject(java.sql.ResultSet res, com.opencms.file.genericSql.CmsQueries m_cq) throws java.sql.SQLException
- Construct a new CmsProject, from a ResultSet.
Creation date: (10/02/00)
| Method Detail |
clone
public java.lang.Object clone()
- Clones the CmsProject by creating a new CmsProject Object.
equals
public boolean equals(java.lang.Object obj)
- Compares the overgiven object with this object.
getCreateDate
public long getCreateDate()
- Returns the creation date of this project.
getDescription
public java.lang.String getDescription()
- Returns the description of this project.
getFlags
public int getFlags()
- Returns the state of this project.
This may be C_PROJECT_STATE_UNLOCKED, C_PROJECT_STATE_LOCKED, C_PROJECT_STATE_ARCHIVE.
getGroupId
public int getGroupId()
- Returns the groupid of this project.
getId
public int getId()
- Returns the id of this project.
isOnlineProject
public boolean isOnlineProject()
- Returns
trueif this project is the Online project.
getManagerGroupId
public int getManagerGroupId()
- Returns the manager groupid of this project.
getName
public java.lang.String getName()
- Returns the name of this project.
getOwnerId
public int getOwnerId()
- Returns the userid of the project owner.
getTaskId
public int getTaskId()
- Returns the taskid of this project.
getType
public int getType()
- Gets the type.
doStaticExport
public boolean doStaticExport()
- Do static export after publish.
setDescription
public void setDescription(java.lang.String description)
- Sets the description of this project.
setFlags
public void setFlags(int flags)
- Sets the state of this project.
This may be C_PROJECT_STATE_UNLOCKED, C_PROJECT_STATE_LOCKED, C_PROJECT_STATE_ARCHIVE.
setType
void setType(int id)
- Sets the type.
toString
public java.lang.String toString()
- Returns a string-representation for this object.
This can be used for debugging.
|
|||||||||
| Home >> All >> com >> opencms >> [ file overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.opencms.file.CmsProject