Package com.adito.boot

Examples of com.adito.boot.PropertyList


      createAvailableCipherSuitesList = false;
        }
       
        if(configureContext) {
         
          PropertyList list = ContextHolder.getContext().getConfig().retrievePropertyList(new ContextKey("ssl.supportedProtocols"));
         
          if(!list.isEmpty()) {
            serverSocket.setEnabledProtocols(list.asArray());
          }
           
          list = ContextHolder.getContext().getConfig().retrievePropertyList(new ContextKey("ssl.supportedCiphers"));
         
          if(!list.isEmpty()) {
            serverSocket.setEnabledCipherSuites(list.asArray());
          }
        }
       
        protocols = serverSocket.getEnabledProtocols();
       
View Full Code Here


    /**
     * Constructor
     */
    public AbstractResourceForm() {
        selectedPolicies = new PropertyList();
        propertyClass = PropertyClassManager.getInstance().getPropertyClass(ResourceAttributes.NAME);
    }
View Full Code Here

     * @see com.adito.wizard.forms.AbstractWizardForm#init(com.adito.wizard.AbstractWizardSequence,
     *      javax.servlet.http.HttpServletRequest)
     */
    public void init(AbstractWizardSequence sequence, HttpServletRequest request) throws Exception {
        super.init(sequence, request);
        this.selectedModules = ((PropertyList) sequence.getAttribute(ATTR_SELECTED_MODULES, new PropertyList()));
        MultiSelectDataSource modules = new ModulesDataSource("security");
        SessionInfo session = LogonControllerFactory.getInstance().getSessionInfo(request);
        this.moduleModel = new MultiSelectSelectionModel(session, modules, selectedModules);
    }
View Full Code Here

    }

    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errs = new ActionErrors();
        if (this.isCommiting()) {
            PropertyList l = this.getSelectedModulesList();
            if (l.size() < 1) {
                errs.add(Globals.ERROR_KEY, new ActionMessage("editAuthenticationScheme.error.noModulesSelected"));
            } else {
                AuthenticationModuleDefinition def = AuthenticationModuleManager.getInstance().getModuleDefinition(
                    l.get(0).toString());
                if (l.size() == 1){
                    if (!def.getPrimary()) {
                        errs.add(Globals.ERROR_KEY, new ActionMessage("editAuthenticationScheme.error.firstModuleNotPrimary"));
                    }
                }
                else{
View Full Code Here

     *
     * @see com.adito.wizard.forms.AbstractWizardForm#init(com.adito.wizard.AbstractWizardSequence)
     */
    public void init(AbstractWizardSequence sequence, HttpServletRequest request) throws Exception {
        resourceName = (String) sequence.getAttribute(AthenticationSchemeDetailsForm.ATTR_RESOURCE_NAME, null);
        PropertyList l = (PropertyList) sequence.getAttribute(AthenticationSchemePolicySelectionForm.ATTR_SELECTED_POLICIES, null);
        selectedPolicies = new ArrayList();
        for (Iterator i = l.iterator(); i.hasNext();) {
            selectedPolicies.add(PolicyDatabaseFactory.getInstance().getPolicy(Integer.parseInt(i.next().toString()))
                            .getResourceName());
        }
        user = (User) sequence.getAttribute(AthenticationSchemeSelectionAction.ATTR_USER, null);
    }
View Full Code Here

            String owner = ((OwnedResource) resource).getOwnerUsername();
            if (owner != null && !owner.equals("")) {
                ownerUser = UserDatabaseManager.getInstance().getUserDatabase(session.getUser().getRealm()).getAccount(owner);
            }
        }
        PropertyList selectedPolicies = new PropertyList();
        MultiSelectPoliciesSelectionModel policyModel = initSelectModel(selectedPolicies, ((AbstractResourceForm) form).isShowPersonalPolicies(), resource, session);
        String referer = CoreUtil.getReferer(request);
        ((CoreForm) form).setReferer(referer);
        ((AbstractResourceForm) form).initialise(request, resource, true, policyModel, selectedPolicies, ownerUser, isAssignOnly(resource, session));
        return display(mapping, form, request, response);
View Full Code Here

        AbstractResourceForm policyForm = (AbstractResourceForm) form;

        Resource resource = ResourceStack.peekEditingStack(request.getSession());
        SessionInfo session = this.getSessionInfo(request);

        PropertyList selectedPolicies = new PropertyList();
        String requestSelectedPolicies = request.getParameter("selectedPolicies");
        if (!Util.isNullOrTrimmedBlank(requestSelectedPolicies)) {
            selectedPolicies.setAsTextFieldText(requestSelectedPolicies);
        }
        MultiSelectPoliciesSelectionModel policyModel = initSelectModel(selectedPolicies, ((AbstractResourceForm) form)
                        .isShowPersonalPolicies(), resource, session);

        policyForm.setPolicyModel(policyModel);
View Full Code Here

        return Boolean.valueOf(isRunningUnitTests);
    }

    private static boolean checkForRedirect(HttpServletRequest request, HttpServletResponse response) throws IOException {
        String action = Property.getProperty(new SystemConfigKey("webServer.invalidHostnameAction"));
        PropertyList validExternalHosts = Property.getPropertyList(new SystemConfigKey("webServer.validExternalHostnames"));
        ;
        if (validExternalHosts.size() != 0) {
            Iterator<String> it = validExternalHosts.iterator();
            String host = request.getHeader("Host");
            HostService hostService = host == null ? null : new HostService(host);
            boolean hostOk = false;
            String firstHost = (String) it.next();
            if (hostService != null && !hostService.getHost().equals("")) {
View Full Code Here

  private String selectedSink;
    private boolean showPersonalPolicies;

  public MessageForm() {
    super();
    selectedAccounts = new PropertyList();
    selectedRoles = new PropertyList();
    selectedPolicies = new PropertyList();
    selectedPolicyDataSource = new PolicyDataSource();
  }
View Full Code Here

  public void initialise(MultiSelectSelectionModel selectedPolicySelection, PropertyList selectedPolicies, SessionInfo session)
          throws Exception {
    this.selectedPolicySelection = selectedPolicySelection;
    this.selectedPolicies = selectedPolicies;
    selectedAccounts = new PropertyList();
    selectedRoles = new PropertyList();
    if (selectedPolicySelection == null)
      selectedPolicySelection = new MultiSelectSelectionModel(session, selectedPolicyDataSource, selectedPolicies);
    selectedPolicySelection.rebuild(session);
    this.sender = session.getUser();
  }
View Full Code Here

TOP

Related Classes of com.adito.boot.PropertyList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.