<%@ page import=" org.opencms.file.CmsPropertyDefinition, org.opencms.main.OpenCms, org.opencms.workplace.CmsDialog, org.opencms.workplace.commons.CmsSecure, org.opencms.workplace.commons.Messages " %><% // initialize the workplace class CmsSecure wp = new CmsSecure(pageContext, request, response); boolean displayForm = true; // perform the users submitted action switch(wp.getAction()) { case CmsSecure.ACTION_CHSECEXP: //////////////////// ACTION: main change secure and export action wp.actionChangeSecureExport(); break; case CmsDialog.ACTION_CANCEL: //////////////////// ACTION: cancel button pressed wp.actionCloseDialog(); break; case CmsDialog.ACTION_LOCKS_CONFIRMED: //////////////////// ACTION: show security and export settings dialog (default) wp.setParamAction("secure"); %> <%= wp.htmlStart("help.explorer.contextmenu.secure") %> <%= wp.bodyStart("dialog") %> <%= wp.dialogStart() %>
<%= wp.paramsAsHidden() %> <%= wp.dialogContentStart(wp.getParamTitle()) %> <%@ include file="includes/resourceinfo.txt" %> <%= wp.dialogSpacer() %> <%= wp.dialogBlockStart(wp.key(Messages.GUI_SECURE_ONLINE_ADDRESS_0)) %> <%= wp.getResourceUrl() %> <%= wp.dialogBlockEnd() %> <%= wp.dialogSpacer() %> <%= wp.dialogBlockStart(wp.key(Messages.GUI_SECURE_INTERN_SETTINGS_0)) %> <% // display secure dialog, if there exists a secure server for the current site if(OpenCms.getSiteManager().getCurrentSite(wp.getCms()).hasSecureServer()) { %> <% } else { %> <% } %> <% // folders can not be marked as intern if(!wp.resourceIsFolder()) { %> <% } %>
<%= wp.key(Messages.GUI_SECURE_0) %>  <%= wp.buildRadio(CmsPropertyDefinition.PROPERTY_SECURE) %> <%= wp.key(Messages.GUI_SECURE_NO_SERVER_0) %>
<%= wp.key(Messages.GUI_PERMISSION_INTERNAL_0) %>  >
<%= wp.dialogBlockEnd() %> <% // display export-part of the dialog only if export is enabled if(OpenCms.getStaticExportManager().isStaticExportEnabled() && wp.showExportSettings()) { %> <%= wp.dialogSpacer() %> <%= wp.dialogBlockStart(wp.key(Messages.GUI_SECURE_EXPORT_SETTINGS_0)) %> <% if (wp.exportUserHasReadPermission()) { %> <% } else { %> <%= wp.key(Messages.GUI_SECURE_EXPORTUSER_NO_PERMISSION_0) %> <% } if(wp.resourceIsFolder()) { %> <% } %>
<%= wp.key(Messages.GUI_SECURE_EXPORT_0) %>  <%= wp.buildRadio(CmsPropertyDefinition.PROPERTY_EXPORT) %>
<%= wp.key(Messages.GUI_SECURE_EXPORTNAME_0) %> 
<%= wp.dialogBlockEnd() %> <% } %> <%= wp.dialogContentEnd() %> <%= wp.dialogButtonsOkCancel() %>

<%= wp.dialogEnd() %> <%= wp.bodyEnd() %> <%= wp.htmlEnd() %> <% break; case CmsDialog.ACTION_DEFAULT: default: %> <%= wp.buildLockDialog() %> <% } //////////////////// end of switch statement %>