Package org.jasig.portal.groups

Source Code of org.jasig.portal.groups.ReferenceEntitySearcherFactory

/* Copyright 2002 The JA-SIG Collaborative.  All rights reserved.
*  See license distributed with this file and
*  available online at http://www.uportal.org/license.html
*/

package org.jasig.portal.groups;

import org.jasig.portal.groups.local.EntitySearcherImpl;
import org.jasig.portal.groups.local.ITypedEntitySearcher;
import org.jasig.portal.groups.local.searchers.RDBMChannelDefSearcher;
import org.jasig.portal.groups.local.searchers.RDBMPersonSearcher;

/**
* Creates an instance of the reference <code>IEntitySearcher</code>.
* @author Dan Ellentuck
* @version $Revision: 1.4 $
*/

public class ReferenceEntitySearcherFactory implements IEntitySearcherFactory {
/**
* ReferenceGroupServiceFactory constructor.
*/
public ReferenceEntitySearcherFactory() {
    super();
}
/**
* Return an instance of the entity searcher implementation.
* @return IEntitySearcher
* @exception GroupsException
*/
public IEntitySearcher newEntitySearcher() throws GroupsException
{
    return newInstance();
}
/**
* Return an instance of the entity searcher implementation.
* @return IEntitySearcher
* @exception GroupsException
*/
public IEntitySearcher newInstance() throws GroupsException
{
    ITypedEntitySearcher[] tes = new ITypedEntitySearcher[2];
    tes[0]=new RDBMChannelDefSearcher();
    tes[1]=new RDBMPersonSearcher();
    IEntitySearcher entitySearcher = new EntitySearcherImpl(tes);
    return entitySearcher;
}
}
TOP

Related Classes of org.jasig.portal.groups.ReferenceEntitySearcherFactory

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.