.setParameters(mpInfo.path())); mpInfoLabel.setEscapeModelStrings(false); add(mpInfoLabel); mpInfoLabel.setVisible(Resources.exists(mpInfo)); } catch (Exception ex) { .setParameters(userprops.path())); userpropsLabel.setEscapeModelStrings(false); add(userpropsLabel); userpropsLabel.setVisible(Resources.exists(userprops)); } catch (Exception ex) { "changeMasterPassword", (Component) this, null)); label.setEscapeModelStrings(false); add(label); Link link = null; add( link = new Link("mplink") { new StringResourceModel("changeAdminPassword", (Component) this, null)); label.setEscapeModelStrings(false); add(label); add( link = new Link("adminlink") { add(
new Object[] {mpInfo.getCanonicalFile()})); mpInfoLabel.setEscapeModelStrings(false); add(mpInfoLabel); mpInfoLabel.setVisible(mpInfo.exists()); } catch (Exception ex) { new Object[] {userprops.getCanonicalFile()})); userpropsLabel.setEscapeModelStrings(false); add(userpropsLabel); userpropsLabel.setVisible(userprops.exists()); } catch (Exception ex) { add(label); Link link=null;; add(link=new Link("mplink") { @Override public void onClick() { label=new Label("adminmessage", new StringResourceModel("changeAdminPassword", (Component)this, null)); label.setEscapeModelStrings(false); add(label); add(link=new Link("adminlink") { @Override public void onClick() { .add(new AttributeAppender("class", new Model("info-link"), " "))); .add(new AttributeAppender("class", new Model("warning-link"), " ")));
new Object[] {mpInfo.getCanonicalFile()})); mpInfoLabel.setEscapeModelStrings(false); add(mpInfoLabel); mpInfoLabel.setVisible(mpInfo.exists()); } catch (Exception ex) { new Object[] {userprops.getCanonicalFile()})); userpropsLabel.setEscapeModelStrings(false); add(userpropsLabel); userpropsLabel.setVisible(userprops.exists()); } catch (Exception ex) { add(label); Link link=null;; add(link=new Link("mplink") { @Override public void onClick() { label=new Label("adminmessage", new StringResourceModel("changeAdminPassword", (Component)this, null)); label.setEscapeModelStrings(false); add(label); add(link=new Link("adminlink") { @Override public void onClick() { .add(new AttributeAppender("class", new Model("info-link"), " "))); .add(new AttributeAppender("class", new Model("warning-link"), " ")));
@Override public Component getPageBodyComponent(String id) { //do a check that the root password is not set GeoServerSecurityManager secMgr = GeoServerApplication.get().getSecurityManager(); if (secMgr.checkAuthenticationForAdminRole()) { return new SecurityWarningsPanel(id); } return null; }
@Override public Component getPageBodyComponent(String id) { // do a check that the root password is not set GeoServerSecurityManager secMgr = GeoServerApplication.get().getSecurityManager(); if (secMgr.checkAuthenticationForAdminRole()) { return new SecurityWarningsPanel(id); } return null; }
@Override public Component getPageBodyComponent(String id) { //do a check that the root password is not set GeoServerSecurityManager secMgr = GeoServerApplication.get().getSecurityManager(); if (secMgr.checkAuthenticationForAdminRole()) { return new SecurityWarningsPanel(id); } return null; }