com.opencms.file
Class CmsResourceTypeFolder

java.lang.Object
  |
  +--com.opencms.file.CmsResourceTypeFolder
All Implemented Interfaces:
I_CmsConstants, I_CmsResourceType, I_CmsWpConstants, Serializable

public class CmsResourceTypeFolder
extends Object
implements I_CmsResourceType, I_CmsConstants, Serializable, I_CmsWpConstants

Access class for resources of the type "Folder".

Version:
$Revision: 1.44 $
See Also:
Serialized Form

Field Summary
 
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
 
Fields inherited from interface com.opencms.workplace.I_CmsWpConstants
C_ADMIN_BACK_BUTTON, C_BOXTEMPLATE, C_BUTTON_ACTION, C_BUTTON_ALT, C_BUTTON_HREF, C_BUTTON_METHOD, C_BUTTON_NAME, C_BUTTON_STYLE, C_BUTTON_VALUE, C_BUTTON_WIDTH, C_BUTTONTEMPLATE, C_CONTEXTMENUE_TEMPLATEFILE, C_DEFAULT_LANGUAGE, C_DOWNBROWSER_MAXENTRIES, C_EDIT_ACTION_EXIT, C_EDIT_ACTION_SAVE, C_EDIT_ACTION_SAVEEXIT, C_ERROR_LINK, C_ERROR_MESSAGE, C_ERROR_MSG_BUTTON, C_ERROR_MSG_DETAILS, C_ERROR_MSG_REASON, C_ERROR_REASON, C_ERROR_SUGGESTION, C_ERROR_TITLE, C_ERRORTEMPLATE, C_FILELIST_ACCESS, C_FILELIST_ACCESS_VALUE, C_FILELIST_CHANGED, C_FILELIST_CHANGED_VALUE, C_FILELIST_CLASS_VALUE, C_FILELIST_COLUMN_ACCESS, C_FILELIST_COLUMN_CHANGED, C_FILELIST_COLUMN_CUSTOMIZED, C_FILELIST_COLUMN_CUSTOMIZED_VALUE, C_FILELIST_COLUMN_GROUP, C_FILELIST_COLUMN_LOCKED, C_FILELIST_COLUMN_NAME, C_FILELIST_COLUMN_OWNER, C_FILELIST_COLUMN_SIZE, C_FILELIST_COLUMN_STATE, C_FILELIST_COLUMN_TITLE, C_FILELIST_COLUMN_TYPE, C_FILELIST_CUSTOMTEMPLATE, C_FILELIST_DISPLAYMETHOD, C_FILELIST_GROUP, C_FILELIST_GROUP_VALUE, C_FILELIST_ICON_VALUE, C_FILELIST_LINK_VALUE, C_FILELIST_LOCK_VALUE, C_FILELIST_LOCKED, C_FILELIST_LOCKED_VALUE, C_FILELIST_METHOD, C_FILELIST_NAME, C_FILELIST_NAME_VALUE, C_FILELIST_OWNER, C_FILELIST_OWNER_VALUE, C_FILELIST_SIZE, C_FILELIST_SIZE_VALUE, C_FILELIST_STATE, C_FILELIST_STATE_VALUE, C_FILELIST_SUFFIX_VALUE, C_FILELIST_TEMPLATE, C_FILELIST_TITLE, C_FILELIST_TITLE_VALUE, C_FILELIST_TYPE, C_FILELIST_TYPE_VALUE, C_FILETYPELIST_TEMPLATEFILE, C_GROUPS_NAME, C_ICON_ACTION, C_ICON_ACTIVE_METHOD, C_ICON_DEFAULT, C_ICON_EXTENSION, C_ICON_HREF, C_ICON_LABEL, C_ICON_NAME, C_ICON_PREFIX, C_ICON_TARGET, C_ICON_TEMPLATEFILE, C_ICON_VISIBLE_METHOD, C_INPUT_ACTION, C_INPUT_CLASS, C_INPUT_LENGTH, C_INPUT_METHOD, C_INPUT_NAME, C_INPUT_SIZE, C_INPUT_VALUE, C_INPUTTEMPLATE, C_LABEL_VALUE, C_LABELTEMPLATE, C_LANG_BUTTON, C_LANG_ICON, C_LANG_LABEL, C_LANG_TITLE, C_MACRO_OPENCMS_CONTEXT, C_MESSAGE_BUTTON1, C_MESSAGE_BUTTON2, C_MESSAGE_FILENAME, C_MESSAGE_LINK1, C_MESSAGE_LINK2, C_MESSAGE_MESSAGE1, C_MESSAGE_MESSAGE2, C_MESSAGE_TITLE, C_MODULE_PACKETNAME, C_MODULELIST_AUTHOR, C_MODULELIST_DATECREATED, C_MODULELIST_DATEUPLOADED, C_MODULELIST_IDX, C_MODULELIST_METHOD, C_MODULELIST_NAME, C_MODULELIST_NICE_NAME, C_MODULELIST_TEMPLATEFILE, C_MODULELIST_VERSION, C_PANEL_EXPLORER, C_PANEL_LINK, C_PANEL_NAME, C_PANEL_START, C_PANEL_TASK, C_PANEL_USER, C_PANELTEMPLATE, C_PARA_ACTION, C_PARA_CANCEL, C_PARA_CONTENT, C_PARA_DEFAULT, C_PARA_DELETE, C_PARA_DESCRIPTION, C_PARA_EXPLORERSETTINGS, C_PARA_FILE, C_PARA_FILECONTENT, C_PARA_FILELIST, C_PARA_FILTER, C_PARA_FLAGS, C_PARA_FOLDER, C_PARA_FOLDERTREE, C_PARA_FORMNAME, C_PARA_INITIAL, C_PARA_JSFILE, C_PARA_KEYWORDS, C_PARA_LAYOUT, C_PARA_LINK, C_PARA_LOCK, C_PARA_MAXPAGE, C_PARA_NAME, C_PARA_NAVPOS, C_PARA_NAVTEXT, C_PARA_NEWACCESS, C_PARA_NEWFILE, C_PARA_NEWFOLDER, C_PARA_NEWGROUP, C_PARA_NEWOWNER, C_PARA_NEWPWD, C_PARA_NEWPWDREPEAT, C_PARA_NEWTYPE, C_PARA_OK, C_PARA_OLDPANEL, C_PARA_OLDPWD, C_PARA_PAGE, C_PARA_PANEL, C_PARA_PREVIOUSLIST, C_PARA_PROJECT, C_PARA_PROPERTYDEF, C_PARA_STARTPROJECTID, C_PARA_STARTSETTINGS, C_PARA_STARTTASKID, C_PARA_SUBMIT, C_PARA_TASKSETTINGS, C_PARA_TEMPLATE, C_PARA_TITLE, C_PARA_UNLOCK, C_PARA_URL, C_PARA_USERSETTINGS, C_PARA_VARIABLE, C_PARA_VIEW, C_PARA_VIEWFILE, C_PICBROWSER_MAXIMAGES, C_PREFERENCES_UPDATE, C_PREFSSCROLLER_TEMPLATEFILE, C_PROJECTLIST_DATECREATED, C_PROJECTLIST_DESCRIPTION, C_PROJECTLIST_IDX, C_PROJECTLIST_LOCKSTATE, C_PROJECTLIST_MENU, C_PROJECTLIST_METHOD, C_PROJECTLIST_NAME, C_PROJECTLIST_NAME_ESCAPED, C_PROJECTLIST_OWNER, C_PROJECTLIST_PROJECTID, C_PROJECTLIST_PROJECTMANAGER, C_PROJECTLIST_PROJECTWORKER, C_PROJECTLIST_STATE, C_PROJECTLIST_STATE_LOCKED, C_PROJECTLIST_STATE_UNLOCKED, C_PROJECTLIST_TEMPLATEFILE, C_PROJECTNEW_DESCRIPTION, C_PROJECTNEW_DONE, C_PROJECTNEW_ERROR, C_PROJECTNEW_FOLDER, C_PROJECTNEW_GROUP, C_PROJECTNEW_MANAGERGROUP, C_PROJECTNEW_NAME, C_PROJECTNEW_TYPE, C_RADIO_IMAGEENTRY, C_RADIO_IMAGENAME, C_RADIO_IMAGEOPTION, C_RADIO_LINK, C_RADIO_METHOD, C_RADIO_NAME, C_RADIO_ORDER, C_RADIO_RADIONAME, C_RADIO_SELECTEDENTRY, C_RADIO_SELECTEDOPTION, C_RADIOTEMPLATE, C_SELECTBOX_CLASS, C_SELECTBOX_CLASSNAME, C_SELECTBOX_DIV, C_SELECTBOX_EDITORVIEWS, C_SELECTBOX_EDITORVIEWS_ALLOWED, C_SELECTBOX_EDITORVIEWS_CLASSES, C_SELECTBOX_EDITORVIEWS_DEFAULT, C_SELECTBOX_EDITORVIEWS_TEMPLATES, C_SELECTBOX_FONTS, C_SELECTBOX_METHOD, C_SELECTBOX_NAME, C_SELECTBOX_ONCHANGE, C_SELECTBOX_OPTIONNAME, C_SELECTBOX_OPTIONVALUE, C_SELECTBOX_SIZE, C_SELECTBOX_WIDTH, C_SESSION_MODULE_ADMIN_DATA, C_SESSION_MODULE_ADMIN_PROP_DESCR, C_SESSION_MODULE_ADMIN_PROP_NAMES, C_SESSION_MODULE_ADMIN_PROP_TYP, C_SESSION_MODULE_ADMIN_PROP_VAL, C_SESSION_MODULE_CHECKSUM, C_SESSION_MODULE_DELETE_STEP, C_SESSION_MODULE_EXCLUSION, C_SESSION_MODULE_INUSE, C_SESSION_MODULE_MISSFILES, C_SESSION_MODULE_PROJECTFILES, C_SESSION_MODULE_PROPFILES, C_SESSION_TASK_ALLPROJECTS, C_SESSION_TASK_FILTER, C_SYSTEM_PICS_EXPORT_PATH, C_TAG_ERRORBOX, C_TAG_ERRORPAGE, C_TAG_INPUTFIELD, C_TAG_LABEL, C_TAG_MESSAGEBOX, C_TAG_MODULELIST_DEFAULT, C_TAG_PANEL_BGACTIVE, C_TAG_PANEL_BGINACTIVE, C_TAG_PANEL_ENDSEQ, C_TAG_PANEL_SEPBGTEXT, C_TAG_PANEL_STARTSEQ, C_TAG_PANEL_TEXTACTIVE, C_TAG_PANEL_TEXTINACTIVE, C_TAG_PASSWORD, C_TAG_PROJECTLIST_DEFAULT, C_TAG_PROJECTLIST_SNAPLOCK, C_TAG_SELECTBOX_CLASS, C_TAG_SELECTBOX_END, C_TAG_SELECTBOX_OPTION, C_TAG_SELECTBOX_SELOPTION, C_TAG_SELECTBOX_START, C_TAG_SELECTBOX_START_DIV, C_TAG_STARTUP, C_TAG_SUBMITBUTTON, C_TASKDOCU_TEMPLATEFILE, C_TASKLIST_TEMPLATEFILE, C_TASKLOGTYPE_ACCEPTED, C_TASKLOGTYPE_CALL, C_TASKLOGTYPE_COMMENT, C_TASKLOGTYPE_CREATED, C_TASKLOGTYPE_DUECHANGED, C_TASKLOGTYPE_FORWARDED, C_TASKLOGTYPE_OK, C_TASKLOGTYPE_PRIORITYCHANGED, C_TASKLOGTYPE_REACTIVATED, C_TASKLOGTYPE_TAKE, C_TASKPARA_ACCEPTATION, C_TASKPARA_ALL, C_TASKPARA_COMPLETION, C_TASKPARA_DELIVERY, C_USERPREF_FILELIST, C_USERS_NAME, C_VFS_DIR_DEFAULTBODIES, C_VFS_DIR_INTERNAL, C_VFS_DIR_LOCALES, C_VFS_DIR_TEMPLATES, C_VFS_GALLERY_DOWNLOAD, C_VFS_GALLERY_EXTERNALLINKS, C_VFS_GALLERY_HTML, C_VFS_GALLERY_PICS, C_VFS_NEW_STRUCTURE, C_VFS_PATH_BODIES, C_VFS_PATH_DEFAULT_BODIES, C_VFS_PATH_DEFAULT_INTERNAL, C_VFS_PATH_DEFAULT_TEMPLATES, C_VFS_PATH_DEFAULTMODULE, C_VFS_PATH_GALLERIES, C_VFS_PATH_HELP, C_VFS_PATH_LOCALES, C_VFS_PATH_MODULEDEMOS, C_VFS_PATH_MODULES, C_VFS_PATH_SCRIPTS, C_VFS_PATH_SYSTEM, C_VFS_PATH_SYSTEMPICS, C_VFS_PATH_WORKPLACE, C_WP_CHANNEL_TREE, C_WP_EXPLORER_FILELIST, C_WP_EXPLORER_PREFERENCES, C_WP_EXPLORER_TREE, C_WP_FOLDER_TREE, C_WP_RELOAD
 
Constructor Summary
CmsResourceTypeFolder()
           
 
Method Summary
 void changeLockedInProject(CmsObject cms, int newProjectId, String resourcename)
          Changes the project-id of the resource to the new project for publishing the resource directly
 void chgrp(CmsObject cms, String filename, String newGroup, boolean chRekursive)
          Changes the group of a resource.
 void chmod(CmsObject cms, String filename, int flags, boolean chRekursive)
          Changes the flags of a resource.
 void chown(CmsObject cms, String filename, String newOwner, boolean chRekursive)
          Changes the owner of a resource.
 void chtype(CmsObject cms, String filename, String newType)
          Changes the resourcetype of a resource.
 void copyResource(CmsObject cms, String source, String destination, boolean keepFlags)
          Copies a Resource.
 void copyResourceToProject(CmsObject cms, String resourceName)
          Copies a resource from the online project to a new, specified project.
 CmsResource createResource(CmsObject cms, String newFolderName, Map properties, byte[] contents, Object parameter)
          Creates a new resource.
 void deleteResource(CmsObject cms, String folder)
          Deletes a resource.
 CmsFile exportResource(CmsObject cms, CmsFile file)
          Does the Linkmanagement when a resource will be exported.
 String getLauncherClass()
          Returns the name of the Java class loaded by the launcher.
 int getLauncherType()
          Returns the launcher type needed for this resource-type.
 int getResourceType()
          Returns the type of this resource-type.
 String getResourceTypeName()
          Returns the name for this resource-type.
 CmsResource importResource(CmsObject cms, String source, String destination, String type, String user, String group, String access, long lastmodified, Map properties, String launcherStartClass, byte[] content, String importPath)
          Imports a resource.
 void init(int resourceType, int launcherType, String resourceTypeName, String launcherClass)
          init a new CmsResourceType object.
 void lockResource(CmsObject cms, String resource, boolean force)
          Locks a given resource.
 void moveResource(CmsObject cms, String source, String destination)
          Moves a file to the given destination.
 void renameResource(CmsObject cms, String oldname, String newname)
          Renames the file to the new name.
 void restoreResource(CmsObject cms, int versionId, String filename)
          Restores a file in the current project with a version in the backup
 String toString()
          Returns a string-representation for this object.
 void touch(CmsObject cms, String resourceName, long timestamp, boolean touchRecursive)
          Change the timestamp of a folder.
 void undeleteResource(CmsObject cms, String folder)
          Undeletes a resource.
 void undoChanges(CmsObject cms, String resource)
          Undo changes in a resource.
 void unlockResource(CmsObject cms, String resource)
          Unlocks a resource.
protected  void validResourcename(String resourcename)
          Checks if there are at least one character in the resourcename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmsResourceTypeFolder

public CmsResourceTypeFolder()
Method Detail

init

public void init(int resourceType,
                 int launcherType,
                 String resourceTypeName,
                 String launcherClass)
init a new CmsResourceType object.

Specified by:
init in interface I_CmsResourceType
Parameters:
resourceType - The id of the resource type.
launcherType - The id of the required launcher.
resourceTypeName - The printable name of the resource type.
launcherClass - The Java class that should be invoked by the launcher. This value is null if the default invokation class should be used.

getLauncherClass

public String getLauncherClass()
Returns the name of the Java class loaded by the launcher. This method returns null if the default class for this type is used.

Specified by:
getLauncherClass in interface I_CmsResourceType
Returns:
the name of the Java class.

getLauncherType

public int getLauncherType()
Returns the launcher type needed for this resource-type.

Specified by:
getLauncherType in interface I_CmsResourceType
Returns:
the launcher type for this resource-type.

getResourceTypeName

public String getResourceTypeName()
Returns the name for this resource-type.

Specified by:
getResourceTypeName in interface I_CmsResourceType
Returns:
the name for this resource-type.

getResourceType

public int getResourceType()
Returns the type of this resource-type.

Specified by:
getResourceType in interface I_CmsResourceType
Returns:
the type of this resource-type.

toString

public String toString()
Returns a string-representation for this object. This can be used for debugging.

Overrides:
toString in class Object
Returns:
string-representation for this object.

chgrp

public void chgrp(CmsObject cms,
                  String filename,
                  String newGroup,
                  boolean chRekursive)
           throws CmsException
Changes the group of a resource.
Only the group of a resource in an offline project can be changed. The state of the resource is set to CHANGED (1). If the content of this resource is not existing in the offline project already, it is read from the online project and written into the offline project.

Security: Access is granted, if:

Specified by:
chgrp in interface I_CmsResourceType
Parameters:
filename - the complete path to the resource.
newGroup - the name of the new group for this resource.
chRekursive - shows if the subResources (of a folder) should be changed too.
Throws:
CmsException - if operation was not successful.

chmod

public void chmod(CmsObject cms,
                  String filename,
                  int flags,
                  boolean chRekursive)
           throws CmsException
Changes the flags of a resource.
Only the flags of a resource in an offline project can be changed. The state of the resource is set to CHANGED (1). If the content of this resource is not existing in the offline project already, it is read from the online project and written into the offline project. The user may change the flags, if he is admin of the resource.

Security: Access is granted, if:

Specified by:
chmod in interface I_CmsResourceType
Parameters:
filename - the complete path to the resource.
flags - the new flags for the resource.
chRekursive - shows if the subResources (of a folder) should be changed too.
Throws:
CmsException - if operation was not successful. for this resource.

chown

public void chown(CmsObject cms,
                  String filename,
                  String newOwner,
                  boolean chRekursive)
           throws CmsException
Changes the owner of a resource.
Only the owner of a resource in an offline project can be changed. The state of the resource is set to CHANGED (1). If the content of this resource is not existing in the offline project already, it is read from the online project and written into the offline project. The user may change this, if he is admin of the resource.

Security: Access is granted, if:

Specified by:
chown in interface I_CmsResourceType
Parameters:
filename - the complete path to the resource.
newOwner - the name of the new owner for this resource.
chRekursive - shows if the subResources (of a folder) should be changed too.
Throws:
CmsException - if operation was not successful.

touch

public void touch(CmsObject cms,
                  String resourceName,
                  long timestamp,
                  boolean touchRecursive)
           throws CmsException
Change the timestamp of a folder.

Specified by:
touch in interface I_CmsResourceType
Parameters:
resourceName - the name of the resource to change
timestamp - timestamp the new timestamp of the changed resource
CmsException

chtype

public void chtype(CmsObject cms,
                   String filename,
                   String newType)
            throws CmsException
Changes the resourcetype of a resource.
Only the resourcetype of a resource in an offline project can be changed. The state of the resource is set to CHANGED (1). If the content of this resource is not exisiting in the offline project already, it is read from the online project and written into the offline project. The user may change this, if he is admin of the resource.

Security: Access is granted, if:

Specified by:
chtype in interface I_CmsResourceType
Parameters:
filename - the complete path to the resource.
newType - the name of the new resourcetype for this resource.
Throws:
CmsException - if operation was not successful.

copyResource

public void copyResource(CmsObject cms,
                         String source,
                         String destination,
                         boolean keepFlags)
                  throws CmsException
Copies a Resource.

Specified by:
copyResource in interface I_CmsResourceType
Parameters:
source - the complete path of the sourcefile.
destination - the complete path of the destinationfolder.
keepFlags - true if the copy should keep the source file's flags, false if the copy should get the user's default flags.
Throws:
CmsException - if the file couldn't be copied, or the user has not the appropriate rights to copy the file.

copyResourceToProject

public void copyResourceToProject(CmsObject cms,
                                  String resourceName)
                           throws CmsException
Copies a resource from the online project to a new, specified project.
Copying a resource will copy the file header or folder into the specified offline project and set its state to UNCHANGED.

Specified by:
copyResourceToProject in interface I_CmsResourceType
Parameters:
cms - The CmsObject
resourceName - The name of the resource
Throws:
CmsException - if operation was not successful.

createResource

public CmsResource createResource(CmsObject cms,
                                  String newFolderName,
                                  Map properties,
                                  byte[] contents,
                                  Object parameter)
                           throws CmsException
Creates a new resource.

Specified by:
createResource in interface I_CmsResourceType
Parameters:
contents - the contents of the new file.
Returns:
file a CmsFile object representing the newly created file.
Throws:
CmsException - or if the resourcetype is set to folder. The CmsException is also thrown, if the filename is not valid or if the user has not the appropriate rights to create a new file.

deleteResource

public void deleteResource(CmsObject cms,
                           String folder)
                    throws CmsException
Deletes a resource.

Specified by:
deleteResource in interface I_CmsResourceType
Parameters:
folder - the complete path of the folder.
Throws:
CmsException - if the file couldn't be deleted, or if the user has not the appropriate rights to delete the file.

undeleteResource

public void undeleteResource(CmsObject cms,
                             String folder)
                      throws CmsException
Undeletes a resource.

Specified by:
undeleteResource in interface I_CmsResourceType
Parameters:
folder - the complete path of the folder.
Throws:
CmsException - if the file couldn't be undeleted, or if the user has not the appropriate rights to undelete the file.

exportResource

public CmsFile exportResource(CmsObject cms,
                              CmsFile file)
                       throws CmsException
Does the Linkmanagement when a resource will be exported. When a resource has to be exported, the IDīs inside the Linkmanagement-Tags have to be changed to the corresponding URLīs

Specified by:
exportResource in interface I_CmsResourceType
Parameters:
file - is the file that has to be changed
CmsException

importResource

public CmsResource importResource(CmsObject cms,
                                  String source,
                                  String destination,
                                  String type,
                                  String user,
                                  String group,
                                  String access,
                                  long lastmodified,
                                  Map properties,
                                  String launcherStartClass,
                                  byte[] content,
                                  String importPath)
                           throws CmsException
Imports a resource.

Specified by:
importResource in interface I_CmsResourceType
Parameters:
cms - The current CmsObject.
source - The sourcepath of the resource to import.
destination - The destinationpath of the resource to import.
type - The type of the resource to import.
user - The name of the owner of the resource.
group - The name of the group of the resource.
access - The access flags of the resource.
properties - A Hashtable with the properties of the resource. The key is the name of the propertydefinition, the value is the propertyvalue.
launcherStartClass - The name of the launcher startclass.
content - The filecontent if the resource is of type file
importPath - The name of the import path
Returns:
CmsResource The imported resource.
Throws:
Throws - CmsException if the resource could not be imported
CmsException

lockResource

public void lockResource(CmsObject cms,
                         String resource,
                         boolean force)
                  throws CmsException
Locks a given resource.
A user can lock a resource, so he is the only one who can write this resource.

Specified by:
lockResource in interface I_CmsResourceType
Parameters:
resource - the complete path to the resource to lock.
force - if force is true, a existing locking will be overwritten.
Throws:
CmsException - if the user has not the rights to lock this resource. It will also be thrown, if there is a existing lock and force was set to false.

moveResource

public void moveResource(CmsObject cms,
                         String source,
                         String destination)
                  throws CmsException
Moves a file to the given destination.

Specified by:
moveResource in interface I_CmsResourceType
Parameters:
source - the complete path of the sourcefile.
destination - the complete path of the destinationfile.
Throws:
CmsException - if the user has not the rights to move this resource, or if the file couldn't be moved.

renameResource

public void renameResource(CmsObject cms,
                           String oldname,
                           String newname)
                    throws CmsException
Renames the file to the new name.

Specified by:
renameResource in interface I_CmsResourceType
Parameters:
oldname - the complete path to the file which will be renamed.
newname - the new name of the file.
Throws:
CmsException - if the user has not the rights to rename the file, or if the file couldn't be renamed.

restoreResource

public void restoreResource(CmsObject cms,
                            int versionId,
                            String filename)
                     throws CmsException
Restores a file in the current project with a version in the backup

Specified by:
restoreResource in interface I_CmsResourceType
Parameters:
cms - The CmsObject
versionId - The version id of the resource
filename - The name of the file to restore
Throws:
CmsException - Throws CmsException if operation was not succesful.

undoChanges

public void undoChanges(CmsObject cms,
                        String resource)
                 throws CmsException
Undo changes in a resource.

Specified by:
undoChanges in interface I_CmsResourceType
Parameters:
resource - the complete path to the resource to be restored.
Throws:
CmsException - if the user has not the rights to write this resource.

unlockResource

public void unlockResource(CmsObject cms,
                           String resource)
                    throws CmsException
Unlocks a resource.
A user can unlock a resource, so other users may lock this file.

Specified by:
unlockResource in interface I_CmsResourceType
Parameters:
resource - the complete path to the resource to be unlocked.
Throws:
CmsException - if the user has not the rights to unlock this resource.

validResourcename

protected void validResourcename(String resourcename)
                          throws CmsException
Checks if there are at least one character in the resourcename

Parameters:
resourcename - String to check
Throws:
throws - a exception, if the check fails.
CmsException

changeLockedInProject

public void changeLockedInProject(CmsObject cms,
                                  int newProjectId,
                                  String resourcename)
                           throws CmsException
Changes the project-id of the resource to the new project for publishing the resource directly

Specified by:
changeLockedInProject in interface I_CmsResourceType
Parameters:
newProjectId - The Id of the new project
resourcename - The name of the resource to change
CmsException