Package com.adito.properties.impl.systemconfig

Examples of com.adito.properties.impl.systemconfig.SystemConfigKey


            if(resource == null) {
                log.warn("Could not locate resource with ID of " + r.intValue() + " for type " + resourceType.getResourceTypeId());
            }
            else {
                if (isPolicyResourceTypeEnforceable(resourceType)
                                && Property.getPropertyBoolean(new SystemConfigKey("security.enforce.policy.resource.access"))) {
                    for (Iterator iter = PolicyDatabaseFactory.getInstance().getPoliciesAttachedToResource(resource,
                                    session.getUser().getRealm()).iterator(); iter.hasNext();) {
                        Policy element = (Policy) iter.next();
                        List authSchemePolicies = (List) session.getHttpSession().getAttribute("auth.scheme.policies");
                        if (authSchemePolicies != null && (authSchemePolicies).contains(element)) {
View Full Code Here


            log.error("Failed to start notifier.", e);
        }

        // Starting Updating RSS feeds

        if (!Property.getPropertyBoolean(new SystemConfigKey("ui.rssFeeds"))
            || SystemProperties.get("adito.disable.rssFeeds", "false").equals("true")) {
            if (log.isInfoEnabled())
                log.info("RSS feeds disabled, not checking");
        } else {
View Full Code Here

        } catch (IOException e2) {
            log.error("Notifier failed to initialise.", e2);
            throw new ServletException(e2);
        }
        try {
            notifier.addSink(new SMTPMessageSink(), Property.getPropertyBoolean(new SystemConfigKey("smtp.startOnStartup")));
        } catch (Exception e) {
            e.printStackTrace();
            throw new ServletException("Failed to add SMTP message sink.", e);
        }
        notifier.addSink(new AgentMessageSink(), true);
View Full Code Here

                      NetworkPlacePlugin.NETWORK_PLACE_RESOURCE_TYPE)
                      && CoreUtil
                              .isAuthenticationModuleInUse(WebDAVAuthenticationModule.MODULE_NAME)
                      && ( checker.isBrowserVersionExpression(BrowserChecker.BROWSER_IE, "+=5") ||
                          ( Property.getPropertyBoolean(
                              new SystemConfigKey("ui.allowOpenWebFolderInFirefox")) && checker.isBrowserVersion(BrowserChecker.BROWSER_FIREFOX, -1) ) ) ) {
                  return true;
              }
        }
    } catch (Exception e) {
    }
View Full Code Here

        if (definition.getPropertyClass().getName().equals(ContextConfig.NAME)) {
            return new ContextKey(definition.getName());
        } else if (definition.getPropertyClass().getName().equals(RealmProperties.NAME)) {
            return new RealmKey(definition.getName(), sessionInfo.getRealm());
        }
        return new SystemConfigKey(definition.getName());
    }
View Full Code Here

        Collection<User> users = filterPrincipals(filter, maxResults, allUsers(), false);
        return users.toArray(new User[users.size()]);
    }
   
    public final int getMaxUserResults() {
        return Property.getPropertyInt(new SystemConfigKey("ui.maxuser.count"));
    }
View Full Code Here

        Collection<Role> roles = filterPrincipals(filter, maxResults, allRoles(), false);
        return roles.toArray(new Role[roles.size()]);
    }
   
    public final int getMaxRoleResults() {
        return Property.getPropertyInt(new SystemConfigKey("ui.maxrole.count"));
    }
View Full Code Here

        if (!ExtensionStore.STORE_PREF.getBoolean("warnedAboutExtensionStoreConnect", true)) {
            if (request.getParameter("agree") != null) {
                ExtensionStore.STORE_PREF.putBoolean("warnedAboutExtensionStoreConnect", true);
                SessionInfo info = this.getSessionInfo(request);
                Property.setProperty(new SystemConfigKey("updates.automaticallyConnectToApplicationStore"),
                    request.getParameter("agree"),
                    info);
            } else {
                return mapping.findForward("agreement");
            }
        }
        try {
            ExtensionStoreDescriptor storeDescriptor = ExtensionStore.getInstance()
            .getDownloadableExtensionStoreDescriptor(request.getParameter("connect") != null || Property.getPropertyBoolean(new SystemConfigKey("updates.automaticallyConnectToApplicationStore")));
            Util.noCache(response);
        } catch (Exception e) {
        }
        defaultExtensionForm.initialise(request.getSession(), ExtensionStore.getInstance().getAllAvailableExtensionBundles(extensionCategory));
        return null; // Return null because we are in a subform
View Full Code Here

        ActionForward actionForward = super.dispatchMethod(mapping, form, request, response, name);
        ConfigureExtensionsForm configureExtensionsForm = (ConfigureExtensionsForm) form;
        ActionMessages errs = new ActionMessages();
        try {
            ExtensionStoreDescriptor descriptor = ExtensionStore.getInstance().getDownloadableExtensionStoreDescriptor( request.getParameter("connect") != null ||
                Property.getPropertyBoolean(new SystemConfigKey("updates.automaticallyConnectToApplicationStore")));
            configureExtensionsForm.setDescriptor(descriptor);
        } catch (Exception e) {
            errs.add(Globals.ERROR_KEY, new ActionMessage("extensionStore.failedToContactStore", e.getMessage()));
            this.saveErrors(request, errs);
        }
View Full Code Here

    private void connect() throws SocketException, IOException, Exception {
        if (LOG.isDebugEnabled()) {
            LOG.debug("Setting timeout");
            LOG.debug("Connecting to SMTP server");
        }
        String hostname = Property.getProperty(new SystemConfigKey("smtp.hostname"));
        int port = Property.getPropertyInt(new SystemConfigKey("smtp.port"));
        client.connect(hostname, port);
        if (LOG.isDebugEnabled()) {
            LOG.debug("Getting reply");
        }
       
        int reply = client.getReplyCode();
        if (!SMTPReply.isPositiveCompletion(reply)) {
            client.disconnect();
            throw new Exception("SMTP server refused connection.");
        }
        if (LOG.isDebugEnabled()) {
            LOG.debug("Logging in");
        }

        String helo = Property.getProperty(new SystemConfigKey("smtp.login"));
        if (helo.equals("")) {
            client.login();
        } else {
            client.login(helo);
        }
View Full Code Here

TOP

Related Classes of com.adito.properties.impl.systemconfig.SystemConfigKey

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.