Examples of DomainConfiguration


Examples of de.innovationgate.wgpublisher.WGACore.DomainConfiguration

        _domain = domain;
    }

    @Override
    public AuthenticationModule getBackendModule() {
        DomainConfiguration domainConfig = _core.getDomainConfig(_domain);
        if (domainConfig != null) {
            return domainConfig.getAuthModule();
        }
        else {
            return FakeAuthModule.INSTANCE;
        }
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.WGACore.DomainConfiguration

            tmlContext.setLastError(null);
            return tmlContext;
        }

        public TMLUserProfile getUserProfile(WGDatabase db) {
            DomainConfiguration domainConfig = getCore().getDomainConfigForDatabase(db);
           
            TMLUserProfile profile = (TMLUserProfile) _pageContext.getRequest().getAttribute(WGACore.ATTRIB_PROFILE + db.getDbReference());
            if (profile == null) {
                try {
                   return getCore().getDispatcher().fetchUserProfile((HttpServletRequest) _pageContext.getRequest(), (HttpServletResponse) _pageContext.getResponse(), db, _pageContext.getSession());
View Full Code Here

Examples of de.innovationgate.wgpublisher.WGACore.DomainConfiguration

        super.release();
    }

    public TMLUserProfile getUserProfile(WGDatabase db) {

        DomainConfiguration domainConfig = getCore().getDomainConfigForDatabase(db);
       
        TMLUserProfile profile = (TMLUserProfile) getPageContext().getRequest().getAttribute(WGACore.ATTRIB_PROFILE + db.getDbReference());
        if (profile == null) {
            try {
               return getDispatcher().fetchUserProfile((HttpServletRequest) getPageContext().getRequest(), (HttpServletResponse) getPageContext().getResponse(), db, getPageContext().getSession());
View Full Code Here

Examples of de.innovationgate.wgpublisher.WGACore.DomainConfiguration

              return WGDatabase.ANONYMOUS_USER;
          }
      }
     
      else if (name.equalsIgnoreCase("defaultmanager")) {
          DomainConfiguration dc = getwgacore().getDomainConfig(domainName);
          if (dc == null) {
                addwarning("No configuration found for domain: " + domainName);
                return null;
            }
         
          return dc.getDefaultManager();
      }
     
      else if (name.equalsIgnoreCase("authentication") || name.equalsIgnoreCase("auth")) {
          DomainConfiguration dc = getwgacore().getDomainConfig(domainName);
            if (dc == null) {
                addwarning("No configuration found for domain: " + domainName);
                return null;
            }
           
            AuthenticationModule authModule = dc.getAuthModule();
            if (authModule != null) {
                return authModule.getAuthenticationSource();
            }
            else {
                return null;
View Full Code Here

Examples of de.innovationgate.wgpublisher.WGACore.DomainConfiguration

        // Change password on login info
        loginInfo.setCredentials(newPassword);
       
        // Change cached password on domain auth module, if it is password-caching
        if (!WGDatabase.SESSIONTOKEN_USER.equals(loginInfo.getUserName())) {
            DomainConfiguration domConfig = getwgacore().getDomainConfig(domain);
            if (domConfig != null && domConfig.getAuthModule() instanceof PasswordCachingAuthenticationModule) {
                PasswordCachingAuthenticationModule module = (PasswordCachingAuthenticationModule) domConfig.getAuthModule();
                module.dropPasswordCache(loginInfo.getUserName());       
    }
        }
       
       
View Full Code Here

Examples of fr.ippon.tatami.domain.DomainConfiguration

    private Environment env;

    public String createAttachment(Attachment attachment) throws StorageSizeException {

        User currentUser = authenticationService.getCurrentUser();
        DomainConfiguration domainConfiguration =
                domainConfigurationRepository.findDomainConfigurationByDomain(currentUser.getDomain());

        long newAttachmentsSize = currentUser.getAttachmentsSize() + attachment.getSize();
        if (newAttachmentsSize > domainConfiguration.getStorageSizeAsLong()) {
            log.info("User " + currentUser.getLogin() +
                    " has tried to exceed his storage capacity. current storage=" +
                    currentUser.getAttachmentsSize() +
                    ", storage capacity=" +
                    domainConfiguration.getStorageSizeAsLong());

            throw new StorageSizeException("User storage exceeded for user " + currentUser.getLogin());
        }
       
        attachment.setThumbnail(computeThumbnail(attachment));
View Full Code Here

Examples of fr.ippon.tatami.domain.DomainConfiguration

        }
    }

    public Collection<Long> getDomainQuota() {
        User currentUser = authenticationService.getCurrentUser();
        DomainConfiguration domainConfiguration =
                domainConfigurationRepository.findDomainConfigurationByDomain(currentUser.getDomain());

        Long domainQuota = domainConfiguration.getStorageSizeAsLong();
        Long userQuota = currentUser.getAttachmentsSize();

        Long quota = (userQuota * 100) / domainQuota;

        Collection<Long> taux = new ArrayList<Long>();
View Full Code Here

Examples of fr.ippon.tatami.domain.DomainConfiguration

        em.persist(domainConfiguration);
    }

    @Override
    public DomainConfiguration findDomainConfigurationByDomain(String domain) {
        DomainConfiguration domainConfiguration;
        try {
            domainConfiguration = em.find(DomainConfiguration.class, domain);
        } catch (Exception e) {

            log.debug("Exception while looking for domain {} : {}", domain, e.toString());

            return null;
        }
        if (domainConfiguration == null) {
            domainConfiguration = new DomainConfiguration();
            domainConfiguration.setDomain(domain);
            setDefaultValues(domainConfiguration);
            em.persist(domainConfiguration);
        }
        if (domain.equals("ippon.fr")) {
            domainConfiguration.setSubscriptionLevel(DomainConfiguration.SubscriptionAndStorageSizeOptions.IPPONSUSCRIPTION);
            domainConfiguration.setStorageSize(DomainConfiguration.SubscriptionAndStorageSizeOptions.IPPONSIZE);
        }
        return domainConfiguration;
    }
View Full Code Here

Examples of org.jboss.dashboard.domain.DomainConfiguration

            }
        }
    }

    protected void processChartDisplayer(AbstractChartDisplayer chartDisplayer, String parentKey, Map<Locale,Properties> bundles) throws Exception {
        DomainConfiguration domainConfig = new DomainConfiguration(chartDisplayer.getDomainProperty());
        processDomain(domainConfig, parentKey + ".domain", bundles);

        RangeConfiguration rangeConfig = new RangeConfiguration(chartDisplayer.getRangeProperty(), chartDisplayer.getRangeScalarFunction(), chartDisplayer.getUnitI18nMap());
        processRange(rangeConfig, parentKey + ".range", bundles);
    }
View Full Code Here

Examples of org.jboss.dashboard.domain.DomainConfiguration

    protected void processTableDisplayer(TableDisplayer tableDisplayer, String parentKey, Map<Locale,Properties> bundles) throws Exception {
        DataSetTable table = tableDisplayer.getTable();
        DataProperty groupByProp = table.getGroupByProperty();
        if (groupByProp != null) {
            DomainConfiguration domainConfig = new DomainConfiguration(groupByProp);
            processDomain(domainConfig, parentKey + ".groupBy", bundles);
        }
        for (int columnIndex=0; columnIndex<table.getColumnCount(); columnIndex++) {
            DataProperty columnProperty = table.getOriginalDataProperty(columnIndex);
            if (columnProperty == null) continue;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.