/** * Sets the "copy folder default" setting.<p> * * @param value the "copy folder default" setting */ public void setParamTabDiCopyFolderMode(String value) { try { m_userSettings.setDialogCopyFolderMode(CmsResourceCopyMode.valueOf(Integer.parseInt(value))); } catch (Throwable t) { // should usually never happen } }
/** * Sets the "copy file default" setting.<p> * * @param value the "copy file default" setting */ public void setParamTabDiCopyFileMode(String value) { try { m_userSettings.setDialogCopyFileMode(CmsResourceCopyMode.valueOf(Integer.parseInt(value))); } catch (Throwable t) { // should usually never happen } }
/** * Sets the "copy folder default" setting.<p> * * @param value the "copy folder default" setting */ public void setParamTabDiCopyFolderMode(String value) { try { m_userSettings.setDialogCopyFolderMode(CmsResourceCopyMode.valueOf(Integer.parseInt(value))); } catch (Throwable t) { // should usually never happen } }
m_dialogFileCopy = CmsResourceCopyMode.valueOf(((Integer)m_user.getAdditionalInfo(PREFERENCES + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS + CmsWorkplaceConfiguration.N_FILECOPY)).intValue()); m_dialogFolderCopy = CmsResourceCopyMode.valueOf(((Integer)m_user.getAdditionalInfo(PREFERENCES + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS + CmsWorkplaceConfiguration.N_FOLDERCOPY)).intValue());
copyMode = CmsResourceCopyMode.valueOf(Integer.parseInt(getParamCopymode())); } catch (Exception e) {
copyMode = CmsResourceCopyMode.valueOf(Integer.parseInt(getParamCopymode())); } catch (Exception e) {
/** * Copies a resource.<p> * * The copied resource will always be locked to the current user * after the copy operation.<p> * * @param source the name of the resource to copy (full path) * @param destination the name of the copy destination (full path) * @param siblingMode indicates how to handle siblings during copy * * @throws CmsException if something goes wrong * @throws CmsIllegalArgumentException if the <code>destination</code> argument is null or of length 0 * * @deprecated use {@link #copyResource(String, String, CmsResource.CmsResourceCopyMode)} method instead */ public void copyResource(String source, String destination, int siblingMode) throws CmsException, CmsIllegalArgumentException { copyResource(source, destination, CmsResource.CmsResourceCopyMode.valueOf(siblingMode)); }
/** * Sets the "copy file default" setting.<p> * * @param value the "copy file default" setting */ public void setParamTabDiCopyFileMode(String value) { try { m_userSettings.setDialogCopyFileMode(CmsResourceCopyMode.valueOf(Integer.parseInt(value))); } catch (Throwable t) { // should usually never happen } }