cmsdefaultusersettings.java
来自「找了很久才找到到源代码」· Java 代码 · 共 999 行 · 第 1/3 页
JAVA
999 行
public String getRestrictExplorerViewString() {
return String.valueOf(getRestrictExplorerView());
}
/**
* Gets if the file creation date should be shown in explorer view.<p>
*
* @return <code>"true"</code> if the file creation date should be shown, otherwise <code>"false"</code>
*/
public String getShowExplorerFileDateCreated() {
return getExplorerSetting(CmsUserSettings.FILELIST_DATE_CREATED);
}
/**
* Gets if the file expired by should be shown in explorer view.<p>
*
* @return <code>"true"</code> if the file date expired by should be shown, otherwise <code>"false"</code>
*/
public String getShowExplorerFileDateExpired() {
return getExplorerSetting(CmsUserSettings.FILELIST_DATE_EXPIRED);
}
/**
* Gets if the file last modified date should be shown in explorer view.<p>
*
* @return <code>"true"</code> if the file last modified date should be shown, otherwise <code>"false"</code>
*/
public String getShowExplorerFileDateLastModified() {
return getExplorerSetting(CmsUserSettings.FILELIST_DATE_LASTMODIFIED);
}
/**
* 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 navtext should be shown in explorer view.<p>
*
* @return <code>"true"</code> if the file navtext should be shown, otherwise <code>"false"</code>
*/
public String getShowExplorerFileNavText() {
return getExplorerSetting(CmsUserSettings.FILELIST_NAVTEXT);
}
/**
* 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);
}
/**
* Returns a string representation of the show file upload button flag.<p>
*
* @return string representation of the show file upload button flag
*
* @see #getShowFileUploadButton()
*/
public String getShowFileUploadButtonString() {
return String.valueOf(getShowFileUploadButton());
}
/**
* Returns a string representation of the publish notification flag.<p>
*
* @return string representation of the publish notification flag
*
* @see #getShowPublishNotification()
*/
public String getShowPublishNotificationString() {
return String.valueOf(getShowPublishNotification());
}
/**
* Returns a string representation of the upload Applet flag.<p>
*
* @return string representation of the uploadApplet flag
*
* @see #useUploadApplet()
*/
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
*
* @see #getWorkplaceButtonStyle()
*/
public String getWorkplaceButtonStyleString() {
return BUTTON_STYLES[getWorkplaceButtonStyle()];
}
/**
* Returns if the deletion of relation targets is enabled.<p>
*
* @return <code>true</code> if the deletion of relation targets is enabled, otherwise <code>false</code>
*/
public boolean isAllowBrokenRelations() {
return m_allowBrokenRelations;
}
/**
* Sets if the deletion of relation targets is enabled.<p>
*
* @param allowBrokenRelations <code>true</code> if relation deletion should be enabled, otherwise <code>false</code>
*/
public void setAllowBrokenRelations(String allowBrokenRelations) {
m_allowBrokenRelations = Boolean.valueOf(allowBrokenRelations).booleanValue();
if (CmsLog.INIT.isInfoEnabled()) {
CmsLog.INIT.info(Messages.get().getBundle().key(
m_allowBrokenRelations ? Messages.INIT_RELATION_DELETION_ENABLED_0
: Messages.INIT_RELATION_DELETION_DISABLED_0));
}
}
/**
* 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) {
CmsResourceCopyMode 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) {
CmsResourceCopyMode 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) {
CmsResourceDeleteMode 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);
}
/**
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?