com.opencms.defaults.master
Class CmsChannelContent

java.lang.Object
  |
  +--com.opencms.defaults.A_CmsContentDefinition
        |
        +--com.opencms.defaults.master.CmsChannelContent
All Implemented Interfaces:
Cloneable, I_CmsConstants, I_CmsContent, I_CmsExtendedContentDefinition, I_CmsLogChannels

public class CmsChannelContent
extends A_CmsContentDefinition
implements I_CmsContent, I_CmsLogChannels, I_CmsExtendedContentDefinition

This class is the master of several Modules. It carries a lot of generic data-fileds which can be used for a special Module. The module creates a set of methods to support project-integration, history and import - export.

Author:
E. Falkenhan $ $Revision: 1.18 $ $Date: 2003/04/02 12:44:10 $

Field Summary
protected  CmsObject m_cms
          The cms-object to get access to the cms-ressources
 
Fields inherited from interface com.opencms.boot.I_CmsLogChannels
C_FLEX_CACHE, C_FLEX_LOADER, C_LOGGING, C_MODULE_CRITICAL, C_MODULE_DEBUG, C_MODULE_INFO, C_OPENCMS_CACHE, C_OPENCMS_CRITICAL, C_OPENCMS_CRONSCHEDULER, C_OPENCMS_DEBUG, C_OPENCMS_ELEMENTCACHE, C_OPENCMS_INFO, C_OPENCMS_INIT, C_OPENCMS_POOL, C_OPENCMS_STATICEXPORT, C_OPENCMS_STREAMING, C_PREPROCESSOR_IS_LOGGING
 
Fields inherited from interface com.opencms.core.I_CmsConstants
C_ACCESS_DEFAULT_FLAGS, C_ACCESS_GROUP, C_ACCESS_GROUP_READ, C_ACCESS_GROUP_VISIBLE, C_ACCESS_GROUP_WRITE, C_ACCESS_INTERNAL_READ, C_ACCESS_OWNER, C_ACCESS_OWNER_READ, C_ACCESS_OWNER_VISIBLE, C_ACCESS_OWNER_WRITE, C_ACCESS_PUBLIC, C_ACCESS_PUBLIC_READ, C_ACCESS_PUBLIC_VISIBLE, C_ACCESS_PUBLIC_WRITE, C_ACCESS_READ, C_ACCESS_VISIBLE, C_ACCESS_WRITE, C_ADDITIONAL_INFO_EXPLORERSETTINGS, C_ADDITIONAL_INFO_PREFERENCES, C_ADDITIONAL_INFO_STARTSETTINGS, C_ADDITIONAL_INFO_TASKSETTINGS, C_ADDITIONAL_INFO_TOWN, C_ADDITIONAL_INFO_ZIPCODE, C_AT_LEAST_ONCE, C_CLUSTERURL, C_CONFIGURATION_CACHE, C_CONFIGURATION_CLASS, C_CONFIGURATION_REGISTRY, C_CONFIGURATION_RESOURCEBROKER, C_COPYRIGHT, C_DEFAULT_SITE, C_DELETE_HISTORY, C_ENABLE_HISTORY, C_ERRPREFIX, C_ERRSPERATOR, C_EXPORT_TAG_ACCESS, C_EXPORT_TAG_ADDRESS, C_EXPORT_TAG_CREATOR, C_EXPORT_TAG_DATE, C_EXPORT_TAG_DEFAULTGROUP, C_EXPORT_TAG_DESCRIPTION, C_EXPORT_TAG_DESTINATION, C_EXPORT_TAG_EMAIL, C_EXPORT_TAG_EXPORT, C_EXPORT_TAG_FILE, C_EXPORT_TAG_FIRSTNAME, C_EXPORT_TAG_FLAGS, C_EXPORT_TAG_GROUP, C_EXPORT_TAG_GROUPDATA, C_EXPORT_TAG_GROUPNAME, C_EXPORT_TAG_INFO, C_EXPORT_TAG_LASTMODIFIED, C_EXPORT_TAG_LASTNAME, C_EXPORT_TAG_LAUNCHER_START_CLASS, C_EXPORT_TAG_MODULEXPORT, C_EXPORT_TAG_NAME, C_EXPORT_TAG_OC_VERSION, C_EXPORT_TAG_PARENTGROUP, C_EXPORT_TAG_PASSWORD, C_EXPORT_TAG_PROJECT, C_EXPORT_TAG_PROPERTIES, C_EXPORT_TAG_PROPERTY, C_EXPORT_TAG_RECOVERYPASSWORD, C_EXPORT_TAG_SECTION, C_EXPORT_TAG_SOURCE, C_EXPORT_TAG_TYPE, C_EXPORT_TAG_USER, C_EXPORT_TAG_USERDATA, C_EXPORT_TAG_USERGROUPDATA, C_EXPORT_TAG_USERGROUPS, C_EXPORT_TAG_USERINFO, C_EXPORT_TAG_VALUE, C_EXPORT_TAG_VERSION, C_EXPORT_VERSION, C_EXPORT_XMLFILENAME, C_EXPORTONLYFILES, C_EXPORTONLYUSERS, C_EXPORTPOINT, C_EXPORTPOINT_PATH, C_EXPORTUSERSFILES, C_FCONTENT, C_FELEMENT, C_FILE, C_FILECONTENT, C_FILES_IMPORTED, C_FLAG_DISABLED, C_FLAG_ENABLED, C_FLAG_GROUP_PROJECTCOWORKER, C_FLAG_GROUP_PROJECTMANAGER, C_FLAG_GROUP_ROLE, C_FOLDER, C_FOLDER_SEPARATOR, C_GROUP, C_GROUP_ADMIN, C_GROUP_GUEST, C_GROUP_PROJECTLEADER, C_GROUP_USERS, C_LINKCHECKTABLE_DATE, C_MAX_LENGTH_RESOURCE_NAME, C_MODULE_PROPERTY_ADDITIONAL_RESOURCES, C_MODULE_PROPERTY_ADDITIONAL_RESOURCES_SEPARATOR, C_MODUS_AUTO, C_MODUS_EXPORT, C_MODUS_EXTERN, C_MODUS_OFFLINE, C_MODUS_ONLINE, C_MOUNTPOINT_FILESYSTEM, C_MOUNTPOINT_MYSQL, C_NEVER, C_NO_FILES_IMPORTED, C_ORDER_AGENTUSER, C_ORDER_ENDTIME, C_ORDER_ID, C_ORDER_INITIATORUSER, C_ORDER_NAME, C_ORDER_ORIGINALUSER, C_ORDER_PERCENTAGE, C_ORDER_PRIORITY, C_ORDER_ROLE, C_ORDER_STARTTIME, C_ORDER_STATE, C_ORDER_TASKTYPE, C_ORDER_TIMEOUT, C_ORDER_WAKEUPTIME, C_PASSWORD_MINIMUMSIZE, C_PROJECT_ONLINE, C_PROJECT_ONLINE_ID, C_PROJECT_STATE_ARCHIVE, C_PROJECT_STATE_INVISIBLE, C_PROJECT_STATE_LOCKED, C_PROJECT_STATE_UNLOCKED, C_PROJECT_TYPE_INVISIBLE, C_PROJECT_TYPE_NORMAL, C_PROJECT_TYPE_TEMPORARY, C_PROPERTY_ACTIV, C_PROPERTY_CHANNELID, C_PROPERTY_CONTENT_ENCODING, C_PROPERTY_DEFAULT_FILE, C_PROPERTY_DESCRIPTION, C_PROPERTY_EXPORT, C_PROPERTY_EXPORTNAME, C_PROPERTY_KEYWORDS, C_PROPERTY_NAVPOS, C_PROPERTY_NAVTEXT, C_PROPERTY_RELATIVEROOT, C_PROPERTY_TEMPLATETYPE, C_PROPERTY_TITLE, C_PROPERTY_VISIBLE, C_PUBLISH_METHOD_LINK, C_REGISTRY_DESTINATION, C_REGISTRY_HISTORY, C_REGISTRY_KNOWNLAUNCHERS, C_REGISTRY_LAUNCHER, C_REGISTRY_SOURCE, C_REQUEST_CONSOLE, C_REQUEST_HTTP, C_RESPONSE_CONSOLE, C_RESPONSE_HTTP, C_ROOT, C_ROOT_TEMPLATE_NAME, C_ROOTNAME_COS, C_ROOTNAME_VFS, C_SESSION_ADMIN_POS, C_SESSION_BROADCASTMESSAGE, C_SESSION_CONTENT_ENCODING, C_SESSION_CURRENTGROUP, C_SESSION_DATA, C_SESSION_IS_DIRTY, C_SESSION_MESSAGEPENDING, C_SESSION_MODULE_VECTOR, C_SESSION_PROJECT, C_SESSION_THREAD_ERROR, C_SESSION_USERNAME, C_SORT_ASC, C_SORT_DESC, C_START_ACCESSFLAGS, C_START_DEFAULTGROUP, C_START_LANGUAGE, C_START_LOCKDIALOG, C_START_PROJECT, C_START_VIEW, C_STATE_CHANGED, C_STATE_DELETED, C_STATE_NEW, C_STATE_UNCHANGED, C_STATICEXPORT_PATH, C_STATICEXPORT_START, C_SYNCHRONISATION_PATH, C_SYNCHRONISATION_PROJECT, C_SYNCHRONISATION_RESOURCE, C_SYNCHRONISATION_RESOURCETAG, C_SYSTEMPROPERTY_CRONTABLE, C_SYSTEMPROPERTY_EXPORTPATH, C_SYSTEMPROPERTY_EXTENSIONS, C_SYSTEMPROPERTY_LINKCHECKTABLE, C_SYSTEMPROPERTY_MIMETYPES, C_SYSTEMPROPERTY_MOUNTPOINT, C_SYSTEMPROPERTY_RESOURCE_TYPE, C_TABLE_CHANNELID, C_TASK_FILTER, C_TASK_MESSAGES, C_TASK_MESSAGES_ACCEPTED, C_TASK_MESSAGES_COMPLETED, C_TASK_MESSAGES_FORWARDED, C_TASK_MESSAGES_MEMBERS, C_TASK_ORDER_BY_DATE, C_TASK_ORDER_BY_NAME, C_TASK_PRIORITY_HIGH, C_TASK_PRIORITY_LOW, C_TASK_PRIORITY_NORMAL, C_TASK_STATE_ENDED, C_TASK_STATE_HALTED, C_TASK_STATE_NOTENDED, C_TASK_STATE_PREPARE, C_TASK_STATE_START, C_TASK_STATE_STARTED, C_TASK_VIEW_ALL, C_TASKLOG_SYSTEM, C_TASKLOG_USER, C_TASKORDER_NONE, C_TASKORDER_STARTDATE, C_TASKORDER_TIMEOUT, C_TASKS_ACTIVE, C_TASKS_ALL, C_TASKS_DONE, C_TASKS_NEW, C_TASKS_OPEN, C_TASKSORDER_TASKNAME, C_TEMP_PREFIX, C_TFACCESS, C_TFGROUP, C_TFILEOBJ, C_TFILES, C_TFNAME, C_TFPROPERTYINFO, C_TFPROPERTYNAME, C_TFPROPERTYTYPE, C_TFPROPERTYVALUE, C_TFTYPE, C_TFTYPENAME, C_TFUSER, C_TGDESC, C_TGFLAG, C_TGNAME, C_TGPARENTGROUP, C_TGROUPOBJ, C_TGROUPS, C_TGROUPUSERS, C_TGUSER, C_TUADDINFO, C_TUDESC, C_TUDGROUP, C_TUDISABLED, C_TUEMAIL, C_TUFIRSTNAME, C_TUFLAG, C_TUGROUP, C_TUINFOKEY, C_TUINFOVALUE, C_TULOGIN, C_TUNAME, C_TUPASSWD, C_TUSERGROUPS, C_TUSEROBJ, C_TUSERS, C_TYPE_BODY_NAME, C_TYPE_COMPATIBLEPLAIN_NAME, C_TYPE_FOLDER, C_TYPE_FOLDER_NAME, C_TYPE_IMAGE_NAME, C_TYPE_LAST_INDEX, C_TYPE_PAGE_NAME, C_TYPE_PLAIN_NAME, C_UNKNOWN_ID, C_UNKNOWN_INT, C_UNKNOWN_LAUNCHER, C_UNKNOWN_LAUNCHER_ID, C_UNKNOWN_LONG, C_URL_PREFIX_EXPORT, C_URL_PREFIX_HTTP, C_URL_PREFIX_HTTPS, C_URL_PREFIX_SERVERNAME, C_USER, C_USER_ADMIN, C_USER_GUEST, C_USER_TYPE_SYSTEMANDWEBUSER, C_USER_TYPE_SYSTEMUSER, C_USER_TYPE_WEBUSER, C_WEB_APP_REPLACE_KEY, C_WEEKS_HISTORY, C_WHATEVER, C_XML_BODY_ELEMENT
 
Constructor Summary
CmsChannelContent(CmsObject cms)
          Constructor to create a new contentdefinition.
CmsChannelContent(CmsObject cms, CmsResource resource)
          Constructor to create a new contentdefinition.
CmsChannelContent(CmsObject cms, Integer resourceid)
          Constructor to read a existing contentdefinition from the database.
CmsChannelContent(CmsObject cms, String resourceid)
          Constructor to read a existing contentdefinition from the database.
 
Method Summary
 void check()
          Plauzibilization method.
 void chgrp(CmsObject cms, int group)
          Change group method for changing permissions of content definition
 void chmod(CmsObject cms, int accessflags)
          Change access flags method for changing permissions of content definition
 void chown(CmsObject cms, int owner)
          Change owner method for changing permissions of content definition
 int copy(CmsObject cms)
          Copy method for copying content definition
 void delete(CmsObject cms)
          delete method for delete instance of content definition
 int getAccessFlags()
          Gets the accessflags of the channel
 String getAccessFlagsAsString()
          Convenience method to get the access-Flags as String representation.
 String getChannelId()
          gets the unique channel Id of a content definition instance
static Vector getChannelList(CmsObject cms)
          Returns a vector of CD objects, sorted descending by channelname.
 String getChannelName()
          Gets the channelname
 String getChannelPath()
          Gets the channelname
 long getDateCreated()
          Gets the date of the creation of the channel
 long getDateLastModified()
          Gets the date of the last modification of the channel
static Vector getFieldMethods(CmsObject cms)
          Gets the methods used to display the dava values in the backoffice filelist.
static Vector getFieldNames(CmsObject cms)
          Gets the names of the table columns displayed in the backoffice filelist.
static Vector getFilterMethods(CmsObject cms)
          Gets the filter methods This method is needed for the abstract backoffice class only.
 String getGroup()
          Gets the groupname
 int getGroupId()
          Gets the groupid
 Integer getGroups(CmsObject cms, Vector names, Vector values)
          Gets all groups, that may work for a project.
 Vector getHistory(CmsObject cms)
          history method returns the history of content definition
 int getId()
          gets the unique Id of a content definition instance
 int getLastModifiedBy()
          Gets the id of the user who has modified the channel
 String getLastModifiedByName()
          Gets the name of the user who has modified the channel
 int getLockedInProject()
          Gets the projectId where the CD belongs to.
 int getLockstate()
          Gets the lockstate.
 int getOwner()
          Gets the owner of this contentdefinition.
 String getOwnerName()
          Gets the ownername of this contentdefinition.
 String getParentName()
          Gets the name of the parent channel
 int getProjectId()
          Gets the projectId of a CD.
 int getState()
          Gets the state of a CD.
 String getTitle()
          Gets the title of the channel
 String getUniqueId(CmsObject cms)
          gets the unique Id of a content definition instance
 Object getVersionFromHistory(CmsObject cms, int versionId)
          History method returns the cd of the version with the given versionId
 int getVersionId()
          Gets the version id of version the channel
protected  void initValues()
          This method initialises all needed members with default-values.
static boolean isLockable()
          This content definition is lockable.
 boolean isReadable()
          returns true if the CD is readable for the current user
 boolean isWriteable()
          returns true if the CD is writeable for the current user
 void publishResource(CmsObject cms)
          publish method for publish instance of content definition
 void restore(CmsObject cms, int versionId)
          restore method for restore instance of content definition from history
 void setAccessFlags(int flags)
          Sets the accessflags of the channel.
 void setAccessFlagsAsString(String permissions)
          Get the permissions of Channel
 void setChannelId(String id)
          sets the unique channel Id of a content definition instance
 void setChannelName(String name)
          Sets the channelname.
 void setGroup(int id)
          Sets the group.
 void setLockstate(int lockstate)
          Sets the lockstates
 void setOwner(int id)
          Sets the owner of this contentdefinition.
 void setParentName(String name)
          Sets the parentname of the channel.
 void setTitle(String title)
          sets the title of a content definition instance
 String toString()
          Returns a String representation of this instance.
 void undelete(CmsObject cms)
          undelete method for undelete instance of content definition
 void write(CmsObject cms)
          write method to write the current content of the content definition to the database.
 
Methods inherited from class com.opencms.defaults.A_CmsContentDefinition
accessGroup, accessOther, accessOwner, applyFilter, applyFilter, check, getUrl, hasReadAccess, hasWriteAccess, isExtendedList, isTimedContent, setGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_cms

protected CmsObject m_cms
The cms-object to get access to the cms-ressources

Constructor Detail

CmsChannelContent

public CmsChannelContent(CmsObject cms)
Constructor to create a new contentdefinition. You can set data with your set-Methods. After you have called the write-method this definition gets a unique id.


CmsChannelContent

public CmsChannelContent(CmsObject cms,
                         String resourceid)
                  throws CmsException
Constructor to read a existing contentdefinition from the database. The data read from the database will be filled into the member-variables. You can read them with the get- and modify them with the set-methods. Changes you have made must be written back to the database by calling the write-method.

Parameters:
cms - the cms-object for access to cms-resources.
resourceid - the resource id of the channel to read.
Throws:
CmsException - if the data couldn't be read from the database.

CmsChannelContent

public CmsChannelContent(CmsObject cms,
                         Integer resourceid)
                  throws CmsException
Constructor to read a existing contentdefinition from the database. The data read from the database will be filled into the member-variables. You can read them with the get- and modify them with the set-methods. Changes you have made must be written back to the database by calling the write-method.

Parameters:
cms - the cms-object for access to cms-resources.
Throws:
CmsException - if the data couldn't be read from the database.

CmsChannelContent

public CmsChannelContent(CmsObject cms,
                         CmsResource resource)
Constructor to create a new contentdefinition. You can set data with your set-Methods. After you have called the write-method this definition gets a unique id.

Method Detail

initValues

protected void initValues()
This method initialises all needed members with default-values.


delete

public void delete(CmsObject cms)
            throws Exception
delete method for delete instance of content definition

Specified by:
delete in class A_CmsContentDefinition
Parameters:
cms - the CmsObject to use.
Exception

undelete

public void undelete(CmsObject cms)
              throws Exception
undelete method for undelete instance of content definition

Specified by:
undelete in interface I_CmsExtendedContentDefinition
Parameters:
cms - the CmsObject to use.
Exception

publishResource

public void publishResource(CmsObject cms)
publish method for publish instance of content definition

Specified by:
publishResource in interface I_CmsExtendedContentDefinition
Parameters:
cms - the CmsObject to use.

restore

public void restore(CmsObject cms,
                    int versionId)
restore method for restore instance of content definition from history

Specified by:
restore in interface I_CmsExtendedContentDefinition
Parameters:
cms - the CmsObject to use.
versionId - The id of the version to restore

chown

public void chown(CmsObject cms,
                  int owner)
Change owner method for changing permissions of content definition

Specified by:
chown in interface I_CmsExtendedContentDefinition
Parameters:
cms - the CmsObject to use.
owner - the new owner of the cd.

chgrp

public void chgrp(CmsObject cms,
                  int group)
Change group method for changing permissions of content definition

Specified by:
chgrp in interface I_CmsExtendedContentDefinition
Parameters:
cms - the CmsObject to use.
group - the new group of the cd.

chmod

public void chmod(CmsObject cms,
                  int accessflags)
Change access flags method for changing permissions of content definition

Specified by:
chmod in interface I_CmsExtendedContentDefinition
Parameters:
cms - the CmsObject to use.
accessflags - the new access flags of the cd.

copy

public int copy(CmsObject cms)
Copy method for copying content definition

Specified by:
copy in interface I_CmsExtendedContentDefinition
Parameters:
cms - the CmsObject to use.
Returns:
int The id of the new content definition

write

public void write(CmsObject cms)
           throws Exception
write method to write the current content of the content definition to the database.

Specified by:
write in class A_CmsContentDefinition
Parameters:
cms - the CmsObject to use.
Exception

getUniqueId

public String getUniqueId(CmsObject cms)
gets the unique Id of a content definition instance

Specified by:
getUniqueId in class A_CmsContentDefinition
Parameters:
cms - the CmsObject to use.
Returns:
a string with the Id

getId

public int getId()
gets the unique Id of a content definition instance

Specified by:
getId in interface I_CmsExtendedContentDefinition
Returns:
int The unique id

getLockedInProject

public int getLockedInProject()
Gets the projectId where the CD belongs to. This method is required for the use of the abstract backoffice.

Specified by:
getLockedInProject in interface I_CmsExtendedContentDefinition
Returns:
int with the projectId.

getState

public int getState()
Gets the state of a CD. This method is required for the use of the abstract backoffice.

Specified by:
getState in interface I_CmsExtendedContentDefinition
Returns:
int with the state.

getProjectId

public int getProjectId()
Gets the projectId of a CD. This method is required for the use of the abstract backoffice.

Specified by:
getProjectId in interface I_CmsExtendedContentDefinition
Returns:
int with the projectId.

getChannelId

public String getChannelId()
gets the unique channel Id of a content definition instance

Returns:
a string with the Id

setChannelId

public void setChannelId(String id)
sets the unique channel Id of a content definition instance


getTitle

public String getTitle()
Gets the title of the channel

Specified by:
getTitle in interface I_CmsExtendedContentDefinition
Returns:
String The title of the cd

setTitle

public void setTitle(String title)
sets the title of a content definition instance


getLockstate

public int getLockstate()
Gets the lockstate.

Overrides:
getLockstate in class A_CmsContentDefinition
Returns:
a int with the user who has locked the ressource.

setLockstate

public void setLockstate(int lockstate)
Sets the lockstates

Overrides:
setLockstate in class A_CmsContentDefinition
Parameters:
lockstate - the lockstate for the actual entry

getOwnerName

public String getOwnerName()
Gets the ownername of this contentdefinition.


getOwner

public int getOwner()
Gets the owner of this contentdefinition.

Specified by:
getOwner in interface I_CmsExtendedContentDefinition
Overrides:
getOwner in class A_CmsContentDefinition
Returns:
int The ownerId of the cd

setOwner

public void setOwner(int id)
Sets the owner of this contentdefinition.

Overrides:
setOwner in class A_CmsContentDefinition

getGroup

public String getGroup()
Gets the groupname

Overrides:
getGroup in class A_CmsContentDefinition
Returns:
the group ID

getGroupId

public int getGroupId()
Gets the groupid

Specified by:
getGroupId in interface I_CmsExtendedContentDefinition
Returns:
int The groupId of the cd

setGroup

public void setGroup(int id)
Sets the group.


getChannelPath

public String getChannelPath()
Gets the channelname


getChannelName

public String getChannelName()
Gets the channelname


setChannelName

public void setChannelName(String name)
Sets the channelname.


setParentName

public void setParentName(String name)
Sets the parentname of the channel.


getParentName

public String getParentName()
Gets the name of the parent channel


setAccessFlags

public void setAccessFlags(int flags)
Sets the accessflags of the channel.

Overrides:
setAccessFlags in class A_CmsContentDefinition

getAccessFlags

public int getAccessFlags()
Gets the accessflags of the channel

Specified by:
getAccessFlags in interface I_CmsExtendedContentDefinition
Overrides:
getAccessFlags in class A_CmsContentDefinition
Returns:
int The access flags of the cd

getDateLastModified

public long getDateLastModified()
Gets the date of the last modification of the channel

Specified by:
getDateLastModified in interface I_CmsExtendedContentDefinition
Returns:
long The date of the last modification

getDateCreated

public long getDateCreated()
Gets the date of the creation of the channel

Specified by:
getDateCreated in interface I_CmsExtendedContentDefinition
Returns:
long The date of the creation

getLastModifiedBy

public int getLastModifiedBy()
Gets the id of the user who has modified the channel

Specified by:
getLastModifiedBy in interface I_CmsExtendedContentDefinition
Returns:
int The id of the user who has modified the cd

getLastModifiedByName

public String getLastModifiedByName()
Gets the name of the user who has modified the channel

Specified by:
getLastModifiedByName in interface I_CmsExtendedContentDefinition
Returns:
String The name of the user who has modified the cd

getVersionId

public int getVersionId()
Gets the version id of version the channel

Specified by:
getVersionId in interface I_CmsExtendedContentDefinition
Returns:
int The id of the version

getGroups

public Integer getGroups(CmsObject cms,
                         Vector names,
                         Vector values)
                  throws CmsException
Gets all groups, that may work for a project.

The given vectors names and values will be filled with the appropriate information to be used for building a select box.

Parameters:
cms - CmsObject Object for accessing system resources.
names - Vector to be filled with the appropriate values in this method.
values - Vector to be filled with the appropriate values in this method.
Returns:
Index representing the current value in the vectors.
Throws:
CmsException

getHistory

public Vector getHistory(CmsObject cms)
history method returns the history of content definition

Specified by:
getHistory in interface I_CmsExtendedContentDefinition
Parameters:
cms - the CmsObject to use.
Returns:
Vector The history of a cd

getVersionFromHistory

public Object getVersionFromHistory(CmsObject cms,
                                    int versionId)
History method returns the cd of the version with the given versionId

Specified by:
getVersionFromHistory in interface I_CmsExtendedContentDefinition
Parameters:
cms - The CmsObject
versionId - The version id
Returns:
Object The object with the version of the cd

isReadable

public boolean isReadable()
returns true if the CD is readable for the current user

Overrides:
isReadable in class A_CmsContentDefinition
Returns:
true

isWriteable

public boolean isWriteable()
returns true if the CD is writeable for the current user

Overrides:
isWriteable in class A_CmsContentDefinition
Returns:
true

toString

public String toString()
Returns a String representation of this instance. This can be used for debugging purposes.

Overrides:
toString in class Object

getAccessFlagsAsString

public String getAccessFlagsAsString()
Convenience method to get the access-Flags as String representation.

Returns:
String of access rights

setAccessFlagsAsString

public void setAccessFlagsAsString(String permissions)
Get the permissions of Channel


isLockable

public static boolean isLockable()
This content definition is lockable. This class overwrited the isLockable method of the abstract backoffice to flag that this content definition uses the lock feature of the backoffice. *

Returns:
a boolean

getFieldNames

public static Vector getFieldNames(CmsObject cms)
Gets the names of the table columns displayed in the backoffice filelist. This method is needed for the abstract backoffice class only.

Returns:
Vector containing the columnnames.

getFieldMethods

public static Vector getFieldMethods(CmsObject cms)
Gets the methods used to display the dava values in the backoffice filelist. This method is needed for the abstract backoffice class only.

Returns:
Vector with the nescessary get methods

getFilterMethods

public static Vector getFilterMethods(CmsObject cms)
Gets the filter methods This method is needed for the abstract backoffice class only.

Returns:
a method array containing the methods

getChannelList

public static Vector getChannelList(CmsObject cms)
                             throws CmsException
Returns a vector of CD objects, sorted descending by channelname. This method is needed for the abstract backoffice class only.

Parameters:
cms - The CmsObject.
CmsException

check

public void check()
           throws CmsPlausibilizationException
Plauzibilization method. This method checks if all inputfields contain correct input data. If an input field has no correct data, a CmsPlausibilizationException is thrown.

Throws:
Throws - CmsPlausibilizationException containing a vector of error-codes.
CmsPlausibilizationException