📄 cmsdefaultusersettings.java
字号:
/**
* Gets if the file released by should be shown in explorer view.<p>
*
* @return <code>"true"</code> if the file date released by should be shown, otherwise <code>"false"</code>
*/
public String getShowExplorerFileDateReleased() {
return getExplorerSetting(CmsUserSettings.FILELIST_DATE_RELEASED);
}
/**
* Gets if the file locked by should be shown in explorer view.<p>
*
* @return <code>"true"</code> if the file locked by should be shown, otherwise <code>"false"</code>
*/
public String getShowExplorerFileLockedBy() {
return getExplorerSetting(CmsUserSettings.FILELIST_LOCKEDBY);
}
/**
* Gets if the file permissions should be shown in explorer view.<p>
*
* @return <code>"true"</code> if the file permissions should be shown, otherwise <code>"false"</code>
*/
public String getShowExplorerFilePermissions() {
return getExplorerSetting(CmsUserSettings.FILELIST_PERMISSIONS);
}
/**
* Gets if the file size should be shown in explorer view.<p>
*
* @return <code>"true"</code> if the file size should be shown, otherwise <code>"false"</code>
*/
public String getShowExplorerFileSize() {
return getExplorerSetting(CmsUserSettings.FILELIST_SIZE);
}
/**
* Gets if the file state should be shown in explorer view.<p>
*
* @return <code>"true"</code> if the file state should be shown, otherwise <code>"false"</code>
*/
public String getShowExplorerFileState() {
return getExplorerSetting(CmsUserSettings.FILELIST_STATE);
}
/**
* Gets if the file title should be shown in explorer view.<p>
*
* @return <code>"true"</code> if the file title should be shown, otherwise <code>"false"</code>
*/
public String getShowExplorerFileTitle() {
return getExplorerSetting(CmsUserSettings.FILELIST_TITLE);
}
/**
* Gets if the file type should be shown in explorer view.<p>
*
* @return <code>"true"</code> if the file type should be shown, otherwise <code>"false"</code>
*/
public String getShowExplorerFileType() {
return getExplorerSetting(CmsUserSettings.FILELIST_TYPE);
}
/**
* Gets if the file creator should be shown in explorer view.<p>
*
* @return <code>"true"</code> if the file creator should be shown, otherwise <code>"false"</code>
*/
public String getShowExplorerFileUserCreated() {
return getExplorerSetting(CmsUserSettings.FILELIST_USER_CREATED);
}
/**
* Gets if the file last modified by should be shown in explorer view.<p>
*
* @return <code>"true"</code> if the file last modified by should be shown, otherwise <code>"false"</code>
*/
public String getShowExplorerFileUserLastModified() {
return getExplorerSetting(CmsUserSettings.FILELIST_USER_LASTMODIFIED);
}
/**
* Determines if a message should be sent if the task is accepted.<p>
*
* @return <code>"true"</code> if a message should be sent if the task is accepted, otherwise <code>"false"</code>
*/
public String getTaskMessageAcceptedString() {
return String.valueOf(getTaskMessageAccepted());
}
/**
* Determines if a message should be sent if the task is completed.<p>
*
* @return <code>"true"</code> if a message should be sent if the task is completed, otherwise <code>"false"</code>
*/
public String getTaskMessageCompletedString() {
return String.valueOf(getTaskMessageCompleted());
}
/**
* Determines if a message should be sent if the task is forwarded.<p>
*
* @return <code>"true"</code> if a message should be sent if the task is forwarded, otherwise <code>"false"</code>
*/
public String getTaskMessageForwardedString() {
return String.valueOf(getTaskMessageForwarded());
}
/**
* Determines if all role members should be informed about the task.<p>
*
* @return <code>"true"</code> if all role members should be informed about the task, otherwise <code>"false"</code>
*/
public String getTaskMessageMembersString() {
return String.valueOf(getTaskMessageMembers());
}
/**
* Determines if all projects should be shown in tasks view.<p>
*
* @return <code>"true"</code> if all projects should be shown in tasks view, otherwise <code>"false"</code>
*/
public String getTaskShowAllProjectsString() {
return String.valueOf(getTaskShowAllProjects());
}
/**
* Gets the startup filter for the tasks view.<p>
*
* @return the startup filter for the tasks view
*/
public String getTaskStartupFilterDefault() {
int defaultFilter = FILTER_VALUES_LIST.indexOf(getTaskStartupFilter());
return FILTER_NAMES[defaultFilter];
}
/**
* Returns a string representation of the upload Applet flag.<p>
*
* @return string representation of the uploadApplet flag
*/
public String getUploadAppletString() {
return String.valueOf(useUploadApplet());
}
/**
* Returns a string representation of the workplace button style.<p>
*
* @return string representation of the workplace button style
*/
public String getWorkplaceButtonStyleString() {
return BUTTON_STYLES[getWorkplaceButtonStyle()];
}
/**
* Sets the default copy mode when copying a file of the user.<p>
*
* @param mode the default copy mode when copying a file of the user
*/
public void setDialogCopyFileMode(String mode) {
int copyMode = CmsResource.COPY_AS_NEW;
if (mode.equalsIgnoreCase(COPYMODE_SIBLING)) {
copyMode = CmsResource.COPY_AS_SIBLING;
}
setDialogCopyFileMode(copyMode);
}
/**
* Sets the default copy mode when copying a folder of the user.<p>
*
* @param mode the default copy mode when copying a folder of the user
*/
public void setDialogCopyFolderMode(String mode) {
int copyMode = CmsResource.COPY_AS_NEW;
if (mode.equalsIgnoreCase(COPYMODE_SIBLING)) {
copyMode = CmsResource.COPY_AS_SIBLING;
} else if (mode.equalsIgnoreCase(COPYMODE_PRESERVE)) {
copyMode = CmsResource.COPY_PRESERVE_SIBLING;
}
setDialogCopyFolderMode(copyMode);
}
/**
* Sets the default setting for file deletion.<p>
*
* @param mode the default setting for file deletion
*/
public void setDialogDeleteFileMode(String mode) {
int deleteMode = CmsResource.DELETE_PRESERVE_SIBLINGS;
if (mode.equalsIgnoreCase(DELETEMODE_DELETE)) {
deleteMode = CmsResource.DELETE_REMOVE_SIBLINGS;
}
setDialogDeleteFileMode(deleteMode);
}
/**
* Sets the default setting for expanding inherited permissions in the dialog.<p>
*
* @param dialogExpandInheritedPermissions the default setting for expanding inherited permissions in the dialog
*/
public void setDialogExpandInheritedPermissions(String dialogExpandInheritedPermissions) {
setDialogExpandInheritedPermissions(Boolean.valueOf(dialogExpandInheritedPermissions).booleanValue());
}
/**
* Sets the default setting for expanding the users permissions in the dialog.<p>
*
* @param dialogExpandUserPermissions the default setting for expanding the users permissions in the dialog
*/
public void setDialogExpandUserPermissions(String dialogExpandUserPermissions) {
setDialogExpandUserPermissions(Boolean.valueOf(dialogExpandUserPermissions).booleanValue());
}
/**
* Sets the default setting for inheriting permissions on folders.<p>
*
* @param dialogPermissionsInheritOnFolder the default setting for inheriting permissions on folders
*/
public void setDialogPermissionsInheritOnFolder(String dialogPermissionsInheritOnFolder) {
setDialogPermissionsInheritOnFolder(Boolean.valueOf(dialogPermissionsInheritOnFolder).booleanValue());
}
/**
* Sets the default setting for direct publishing.<p>
*
* @param mode the default setting for direct publishing
*/
public void setDialogPublishSiblings(String mode) {
boolean publishSiblings = false;
if (mode.equalsIgnoreCase(PUBLISHMODE_SIBLINGS)) {
publishSiblings = true;
}
setDialogPublishSiblings(publishSiblings);
}
/**
* Sets the style of the direct edit buttons of the user.<p>
*
* @param buttonstyle the style of the direct edit buttons of the user
*/
public void setDirectEditButtonStyle(String buttonstyle) {
int buttonstyleValue = BUTTONSTYLE_TEXTIMAGE;
try {
if (buttonstyle != null) {
buttonstyleValue = BUTTON_STYLES_LIST.indexOf(buttonstyle);
}
} catch (Exception e) {
// do nothing, use the default value
}
setDirectEditButtonStyle(buttonstyleValue);
}
/**
* Sets the style of the editor buttons of the user.<p>
*
* @param buttonstyle the style of the editor buttons of the user
*/
public void setEditorButtonStyle(String buttonstyle) {
int buttonstyleValue = BUTTONSTYLE_TEXTIMAGE;
try {
if (buttonstyle != null) {
buttonstyleValue = BUTTON_STYLES_LIST.indexOf(buttonstyle);
}
} catch (Exception e) {
// do nothing, use the default value
}
setEditorButtonStyle(buttonstyleValue);
}
/**
* Sets the style of the explorer workplace buttons of the user.<p>
*
* @param buttonstyle the style of the explorer workplace buttons of the user
*/
public void setExplorerButtonStyle(String buttonstyle) {
int buttonstyleValue = BUTTONSTYLE_TEXTIMAGE;
try {
if (buttonstyle != null) {
buttonstyleValue = BUTTON_STYLES_LIST.indexOf(buttonstyle);
}
} catch (Exception e) {
// do nothing, use the default value
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -