Examples of QueryLocator


Examples of org.apache.jetspeed.om.profile.QueryLocator

        DatabaseBrowserIterator windowIterator =
            (DatabaseBrowserIterator) PortletSessionState.getAttribute(portlet, rundata, PROFILE_ITERATOR);
        if ((windowIterator == null) || refreshFlag)
        {
            int index = 0;
            QueryLocator ql = new QueryLocator(QueryLocator.QUERY_ALL);
            ArrayList entries = new ArrayList();
            Iterator i = Profiler.query(ql);

            // Is filtering requested?
            String filterValue = rundata.getParameters().getString(FILTER_VALUE);
View Full Code Here

Examples of org.apache.jetspeed.om.profile.QueryLocator

            copyTo = rundata.getParameters().getString("CopyTo");

            //
            // retrieve the profiles to export
            //
            Iterator i = Profiler.query(new QueryLocator(QueryLocator.QUERY_ALL));
            while (i.hasNext())
            {
                Profile profile = (Profile) i.next();
                PSMLDocument doc = profile.getDocument();
                if(doc != null)
View Full Code Here

Examples of org.apache.jetspeed.om.profile.QueryLocator

     *
     * @param name of the portlet in the registry
     */
    private void removePSML(String name)
    {       
        QueryLocator locator = new QueryLocator(QueryLocator.QUERY_USER); // ALL       
        Iterator profiles = null;
        int count = 0;
        try
        {
            profiles = PsmlManager.query(locator);
View Full Code Here

Examples of org.apache.jetspeed.om.profile.QueryLocator

     * @return
     */
    private DatabaseBrowserIterator performSearch(RunData rundata, Portlet portlet, int type, String value)
    {
        // Initialize the query locator
        QueryLocator ql = new QueryLocator(type);
        if (value != null)
        {
            switch (type)
            {
                case QueryLocator.QUERY_USER:
                {
                    try
                    {
                        ql.setUser(JetspeedSecurity.getUser(value));
                    }
                    catch (Exception e)
                    {
                    }
                }
                case QueryLocator.QUERY_ROLE:
                {
                    try
                    {
                        ql.setRole(JetspeedSecurity.getRole(value));
                    }
                    catch (Exception e)
                    {
                    }
                }
                case QueryLocator.QUERY_GROUP:
                {
                    try
                    {
                        ql.setGroup(JetspeedSecurity.getGroup(value));
                    }
                    catch (Exception e)
                    {
                    }
                }
View Full Code Here

Examples of org.apache.jetspeed.om.profile.QueryLocator

            copyTo = rundata.getParameters().getString("CopyTo");

            //
            // retrieve the profiles to export
            //
            Iterator i = Profiler.query(new QueryLocator(QueryLocator.QUERY_ALL));
            while (i.hasNext())
            {
                Profile profile = (Profile) i.next();
                PSMLDocument doc = profile.getDocument();
                if (doc != null)
View Full Code Here

Examples of org.apache.jetspeed.om.profile.QueryLocator

     * @return
     */
    private DatabaseBrowserIterator performSearch(RunData rundata, Portlet portlet, int type, String value)
    {
        // Initialize the query locator
        QueryLocator ql = new QueryLocator(type);
        if (value != null)
        {
            switch (type)
            {
                case QueryLocator.QUERY_USER:
                {
                    try
                    {
                        ql.setUser(JetspeedSecurity.getUser(value));
                    }
                    catch (Exception e)
                    {
                    }
                }
                case QueryLocator.QUERY_ROLE:
                {
                    try
                    {
                        ql.setRole(JetspeedSecurity.getRole(value));
                    }
                    catch (Exception e)
                    {
                    }
                }
                case QueryLocator.QUERY_GROUP:
                {
                    try
                    {
                        ql.setGroup(JetspeedSecurity.getGroup(value));
                    }
                    catch (Exception e)
                    {
                    }
                }
View Full Code Here

Examples of org.apache.jetspeed.om.profile.QueryLocator

            copyTo = rundata.getParameters().getString("CopyTo");

            //
            // retrieve the profiles to export
            //
            Iterator i = Profiler.query(new QueryLocator(QueryLocator.QUERY_ALL));
            while (i.hasNext())
            {
                Profile profile = (Profile) i.next();
                PSMLDocument doc = profile.getDocument();
                if (doc != null)
View Full Code Here

Examples of org.apache.jetspeed.om.profile.QueryLocator

            copyTo = rundata.getParameters().getString("CopyTo");

            //
            // retrieve the profiles to export
            //
            Iterator i = Profiler.query(new QueryLocator(QueryLocator.QUERY_ALL));
            while (i.hasNext())
            {
                Profile profile = (Profile) i.next();
                PSMLDocument doc = profile.getDocument();
                if(doc != null)
View Full Code Here

Examples of org.apache.jetspeed.om.profile.QueryLocator

            msg = "Running with Exporter Service: " + exporterService.getClass();
            System.out.println(msg);
            logger.info(msg);


            QueryLocator locator = new QueryLocator(QueryLocator.QUERY_ALL);
            count = exporterService.export(importerService, locator);
        }
        catch (Exception e)
        {
            System.out.println("Error importing: " + e.toString());
View Full Code Here

Examples of org.apache.jetspeed.om.profile.QueryLocator

    public boolean alreadyImported()
    {
        try
        {
            JetspeedUser user = JetspeedSecurity.getUser("admin");
            QueryLocator ql = new QueryLocator(QueryLocator.QUERY_USER);
            ql.setUser(user);
            Iterator iterator = PsmlManager.query(ql);
            if (iterator.hasNext())
            {                     
                String msg = "PSMLImporter: Detected database is populated. No need to import.";
                System.out.println(msg);
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.