📄 cmsusersettings.java
字号:
m_newFolderEditProperties = setting;
}
/**
* Sets the preferred editor for the given resource type of the user.<p>
*
* @param resourceType the resource type
* @param editorUri the editor URI
*/
public void setPreferredEditor(String resourceType, String editorUri) {
if (editorUri == null) {
m_editorSettings.remove(resourceType);
}
m_editorSettings.put(resourceType, editorUri);
}
/**
* Sets the project Settings.<p>
*
* @param projectSettings the project Settings to set
*/
public void setProjectSettings(CmsUserProjectSettings projectSettings) {
m_projectSettings = projectSettings;
}
/**
* Sets the appearance of the "publish project" button.<p>
*
* @param publishButtonAppearance the appearance of the "publish project" button
*/
public void setPublishButtonAppearance(String publishButtonAppearance) {
m_publishButtonAppearance = publishButtonAppearance;
}
/**
* Sets if the explorer view is restricted to the defined site and folder.<p>
*
* @param restrict true if the explorer view is restricted, otherwise false
*/
public void setRestrictExplorerView(boolean restrict) {
m_restrictExplorerView = restrict;
}
/**
* Sets if the file creation date should be shown in explorer view.<p>
*
* @param show true if the file creation date should be shown, otherwise false
*/
public void setShowExplorerFileDateCreated(boolean show) {
setExplorerSetting(show, CmsUserSettings.FILELIST_DATE_CREATED);
}
/**
* Sets if the file expire date should be shown in explorer view.<p>
*
* @param show true if the file expire date should be shown, otherwise false
*/
public void setShowExplorerFileDateExpired(boolean show) {
setExplorerSetting(show, CmsUserSettings.FILELIST_DATE_EXPIRED);
}
/**
* Sets if the file last modified date should be shown in explorer view.<p>
*
* @param show true if the file last modified date should be shown, otherwise false
*/
public void setShowExplorerFileDateLastModified(boolean show) {
setExplorerSetting(show, CmsUserSettings.FILELIST_DATE_LASTMODIFIED);
}
/**
* Sets if the file release date should be shown in explorer view.<p>
*
* @param show true if the file release date should be shown, otherwise false
*/
public void setShowExplorerFileDateReleased(boolean show) {
setExplorerSetting(show, CmsUserSettings.FILELIST_DATE_RELEASED);
}
/**
* Sets if the file locked by should be shown in explorer view.<p>
*
* @param show true if the file locked by should be shown, otherwise false
*/
public void setShowExplorerFileLockedBy(boolean show) {
setExplorerSetting(show, CmsUserSettings.FILELIST_LOCKEDBY);
}
/**
* Sets if the file permissions should be shown in explorer view.<p>
*
* @param show true if the file permissions should be shown, otherwise false
*/
public void setShowExplorerFilePermissions(boolean show) {
setExplorerSetting(show, CmsUserSettings.FILELIST_PERMISSIONS);
}
/**
* Sets if the file size should be shown in explorer view.<p>
*
* @param show true if the file size should be shown, otherwise false
*/
public void setShowExplorerFileSize(boolean show) {
setExplorerSetting(show, CmsUserSettings.FILELIST_SIZE);
}
/**
* Sets if the file state should be shown in explorer view.<p>
*
* @param show true if the state size should be shown, otherwise false
*/
public void setShowExplorerFileState(boolean show) {
setExplorerSetting(show, CmsUserSettings.FILELIST_STATE);
}
/**
* Sets if the file title should be shown in explorer view.<p>
*
* @param show true if the file title should be shown, otherwise false
*/
public void setShowExplorerFileTitle(boolean show) {
setExplorerSetting(show, CmsUserSettings.FILELIST_TITLE);
}
/**
* Sets if the file type should be shown in explorer view.<p>
*
* @param show true if the file type should be shown, otherwise false
*/
public void setShowExplorerFileType(boolean show) {
setExplorerSetting(show, CmsUserSettings.FILELIST_TYPE);
}
/**
* Sets if the file creator should be shown in explorer view.<p>
*
* @param show true if the file creator should be shown, otherwise false
*/
public void setShowExplorerFileUserCreated(boolean show) {
setExplorerSetting(show, CmsUserSettings.FILELIST_USER_CREATED);
}
/**
* Sets if the file last modified by should be shown in explorer view.<p>
*
* @param show true if the file last modified by should be shown, otherwise false
*/
public void setShowExplorerFileUserLastModified(boolean show) {
setExplorerSetting(show, CmsUserSettings.FILELIST_USER_LASTMODIFIED);
}
/**
* Sets the start folder of the user.<p>
*
* @param folder the start folder of the user
*/
public void setStartFolder(String folder) {
m_startFolder = folder;
}
/**
* Sets the start project of the user.<p>
*
* @param project the start project id of the user
*/
public void setStartProject(String project) {
m_project = project;
}
/**
* Sets the start site of the user.<p>
*
* @param site the start site of the user
*/
public void setStartSite(String site) {
m_startSite = site;
}
/**
* Sets the current start view of the user.<p>
*
* @param view the current start view of the user
*/
public void setStartView(String view) {
m_view = view;
}
/**
* Sets the (optional) workplace synchronize settings.<p>
*
* @param synchronizeSettings the (optional) workplace synchronize settings to set
*/
public void setSynchronizeSettings(CmsSynchronizeSettings synchronizeSettings) {
m_synchronizeSettings = synchronizeSettings;
}
/**
* Sets if a message should be sent if the task is accepted.<p>
*
* @param message true if a message should be sent if the task is accepted, otherwise false
*/
public void setTaskMessageAccepted(boolean message) {
setTaskMessageSetting(message, CmsTaskService.TASK_MESSAGES_ACCEPTED);
}
/**
* Sets if a message should be sent if the task is completed.<p>
*
* @param message true if a message should be sent if the task is completed, otherwise false
*/
public void setTaskMessageCompleted(boolean message) {
setTaskMessageSetting(message, CmsTaskService.TASK_MESSAGES_COMPLETED);
}
/**
* Sets if a message should be sent if the task is forwarded.<p>
*
* @param message true if a message should be sent if the task is forwarded, otherwise false
*/
public void setTaskMessageForwarded(boolean message) {
setTaskMessageSetting(message, CmsTaskService.TASK_MESSAGES_FORWARDED);
}
/**
* Sets if all role members should be informed about the task.<p>
*
* @param message true if all role members should be informed about the task, otherwise false
*/
public void setTaskMessageMembers(boolean message) {
setTaskMessageSetting(message, CmsTaskService.TASK_MESSAGES_MEMBERS);
}
/**
* Sets a specific task message setting depending on the set parameter.<p>
*
* @param set true if the setting should be set, otherwise false
* @param setting the settings constant value for the task message settings
*/
private void setTaskMessageSetting(boolean set, int setting) {
if (set) {
m_taskMessages |= setting;
} else {
m_taskMessages &= ~setting;
}
}
/**
* Sets the task message values.<p>
*
* @param value the value of the task messages
*/
public void setTaskMessageValue(int value) {
m_taskMessages = value;
}
/**
* Sets if all projects should be shown in tasks view.<p>
*
* @param show true if all projects should be shown in tasks view, otherwise false
*/
public void setTaskShowAllProjects(boolean show) {
m_taskShowProjects = show;
}
/**
* Sets the startup filter for the tasks view.<p>
*
* @param filter the startup filter for the tasks view
*/
public void setTaskStartupFilter(String filter) {
m_taskStartupfilter = filter;
}
/**
* Sets the current user for the settings.<p>
*
* @param user the CmsUser
*/
public void setUser(CmsUser user) {
m_user = user;
}
/**
* Sets if the upload applet should be used.<p>
*
* @param use true if the upload applet should be used, otherwise false
*/
public void setUseUploadApplet(boolean use) {
m_uploadApplet = use;
}
/**
* Sets the style of the workplace buttons of the user.<p>
*
* @param style the style of the workplace buttons of the user
*/
public void setWorkplaceButtonStyle(int style) {
m_workplaceButtonStyle = style;
}
/**
* Sets the type of the report (simple or extended) of the user.<p>
*
* @param type the type of the report (simple or extended) of the user
*/
public void setWorkplaceReportType(String type) {
m_workplaceReportType = type;
}
/**
* Determines if the file creation date should be shown in explorer view.<p>
*
* @return true if the file creation date should be shown, otherwise false
*/
public boolean showExplorerFileDateCreated() {
return ((m_explore
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -