Package org.apache.turbine.services.resources

Examples of org.apache.turbine.services.resources.ResourceService


        if (null == roleClassName)
        {
            try
            {
                ResourceService serviceConf = ((TurbineServices)TurbineServices.getInstance())
                                                         .getResources(JetspeedSecurityService.SERVICE_NAME);
                roleClassName = serviceConf.getString(CONFIG_ROLE_CLASSNAME);                                                            
                roleClass = Class.forName(roleClassName);
            }
            catch(Exception e)
            {
                throw new RoleException(
View Full Code Here


        if (null == permissionClassName)
        {
            try
            {
                ResourceService serviceConf = ((TurbineServices)TurbineServices.getInstance())
                                                         .getResources(JetspeedSecurityService.SERVICE_NAME);
                permissionClassName = serviceConf.getString(CONFIG_GROUP_CLASSNAME);                                                            
                permissionClass = Class.forName(permissionClassName);
            }
            catch(Exception e)
            {
                throw new PermissionException(
View Full Code Here

         }
     }

    public synchronized void init(ServletConfig conf) throws InitializationException
    {
        ResourceService serviceConf = ((TurbineServices)TurbineServices.getInstance())
            .getResources(StockQuoteService.SERVICE_NAME);

        soapEndPoint = serviceConf.getString( "endpoint", SERVICE_END_POINT);
       
    }
View Full Code Here

    private URL serviceURL = null;
    private QuoteServiceServiceLocator locator;
   
    public synchronized void init(ServletConfig conf) throws InitializationException
    {
        ResourceService serviceConf = ((TurbineServices)TurbineServices.getInstance())
            .getResources(StockQuoteService.SERVICE_NAME);

        soapEndPoint = serviceConf.getString( "endpoint", SERVICE_END_POINT);
        initURL(soapEndPoint);
        super.init(conf);
    }
View Full Code Here

        if (null == userClassName)
        {
            try
            {
                ResourceService serviceConf = ((TurbineServices)TurbineServices.getInstance())
                                                         .getResources(JetspeedSecurityService.SERVICE_NAME);
                userClassName = serviceConf.getString(CONFIG_USER_CLASSNAME);                                                            
                userClass = Class.forName(userClassName);
            }
            catch(Exception e)
            {
                throw new UserException(
View Full Code Here

        if (getInit()) return;

        super.init(conf);

        // get configuration parameters from Jetspeed Resources
        ResourceService serviceConf = ((TurbineServices)TurbineServices.getInstance())
                                                     .getResources(JetspeedSecurityService.SERVICE_NAME);

        this.runDataService =
           (JetspeedRunDataService)TurbineServices.getInstance()
               .getService(RunDataService.SERVICE_NAME);

        defaultRole = serviceConf.getString(CONFIG_DEFAULT_ROLE, defaultRole);
        cascadeDelete = serviceConf.getBoolean( CASCADE_DELETE, DEFAULT_CASCADE_DELETE );

        setInit(true);
     }
View Full Code Here

        if (getInit()) return;

        super.init(conf);

        // get configuration parameters from Jetspeed Resources
        ResourceService serviceConf = ((TurbineServices)TurbineServices.getInstance())
                                                     .getResources(JetspeedSecurityService.SERVICE_NAME);

        anonymousUser = serviceConf.getString(CONFIG_ANONYMOUS_USER, anonymousUser);
        cachingEnable = serviceConf.getBoolean( CACHING_ENABLE, cachingEnable );
        expirationPeriod = serviceConf.getInt( CONFIG_PASSWORD_EXPIRATION_PERIOD, 0 );

        this.runDataService =
            (JetspeedRunDataService)TurbineServices.getInstance()
                .getService(RunDataService.SERVICE_NAME);
View Full Code Here

        if (getInit()) return;

        super.init(conf);

        // get configuration parameters from Jetspeed Resources
        ResourceService serviceConf = ((TurbineServices)TurbineServices.getInstance())
                                                     .getResources(JetspeedSecurityService.SERVICE_NAME);

        securePasswords = serviceConf.getBoolean(CONFIG_SECURE_PASSWORDS_KEY,
                                                  securePasswords);
        passwordsAlgorithm = serviceConf.getString(CONFIG_SECURE_PASSWORDS_ALGORITHM,
                                                   passwordsAlgorithm);
        systemUsers = serviceConf.getVector(CONFIG_SYSTEM_USERS, new Vector());

       try
        {
            roles = serviceConf.getStringArray(CONFIG_NEWUSER_ROLES);
        }
        catch (Exception e)
        {}

        if (null == roles || roles.length == 0)
View Full Code Here

    }

    protected Map loadDatabaseManagedRegistries(ResourceService serviceConf)
    {
        Map databaseManaged = new HashMap();
        ResourceService rs = serviceConf.getResources("database.default");
        if (rs != null)
        {
            Iterator iterator = rs.getKeys();
            while (iterator.hasNext())
            {
                String name = (String)iterator.next();
                databaseManaged.put(name, name);
            }
View Full Code Here

    }

    protected Map loadDatabaseManagedRegistries(ResourceService serviceConf)
    {
        Map databaseManaged = new HashMap();
        ResourceService rs = serviceConf.getResources("database.default");
        if (rs != null)
        {
            Iterator iterator = rs.getKeys();
            while (iterator.hasNext())
            {
                String name = (String)iterator.next();
                databaseManaged.put(name, name);
            }
View Full Code Here

TOP

Related Classes of org.apache.turbine.services.resources.ResourceService

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.