com.ibm.portal.admin
Interface VirtualPortalLocator<E extends VirtualPortal>

All Superinterfaces:
Locator<E>

public interface VirtualPortalLocator<E extends VirtualPortal>
extends Locator<E>

Admin model interface for the list of virtual portal elements. Admin portlets can obtain this list to get a the information about virtual portals that the portal supports.

Since:
6.1.0
See Also:
VirtualPortal

Method Summary
 ListModel<E> findAllByRealm(java.lang.String realm)
          Finds all virtual portals that share the same supplied realm.
 ListModel<E> findByDescriptionContains(java.util.Locale locale, java.lang.String pattern)
          Find all virtual portals that contain a given pattern in their description.
 ListModel<E> findByDescriptionStartsWith(java.util.Locale locale, java.lang.String pattern)
          Find all virtual portals that start with a given pattern in their description.
 ListModel<E> findByTitleContains(java.util.Locale locale, java.lang.String pattern)
          Find all virtual portals that contain a given pattern in their title.
 ListModel<E> findByTitleStartsWith(java.util.Locale locale, java.lang.String pattern)
          Find all virtual portals that start with a given pattern in their title.
 
Methods inherited from interface com.ibm.portal.Locator
findByID, findByUniqueName
 

Method Detail

findAllByRealm

ListModel<E> findAllByRealm(java.lang.String realm)
                                                  throws DataException
Finds all virtual portals that share the same supplied realm.

Parameters:
realm - the realm that is shared by the virtual portals
Returns:
a list of VirtualPortal objects that identify matching virtual portal
Throws:
com.ibm.wps.util.DataBackendException
DataException

findByTitleContains

ListModel<E> findByTitleContains(java.util.Locale locale,
                                 java.lang.String pattern)
                                                       throws DataException
Find all virtual portals that contain a given pattern in their title. This method takes only titles of a given locale into account.
If no VirtualPortal object could be found, an empty collection is returned.
NOTE: Pattern is case-insensitive!

Parameters:
locale - the locale to search the pattern in
pattern - the pattern to search for
Returns:
A list of com.ibm.portal.admin.VirtualPortal objects.
Throws:
DataException

findByTitleStartsWith

ListModel<E> findByTitleStartsWith(java.util.Locale locale,
                                   java.lang.String pattern)
                                                         throws DataException
Find all virtual portals that start with a given pattern in their title. This method takes only titles of a given locale into account.
If no VirtualPortal object could be found, an empty collection is returned.
NOTE: Pattern is case-insensitive!

Parameters:
locale - the locale to search the pattern in
pattern - the pattern to search for
Returns:
A list of com.ibm.portal.admin.VirtualPortal objects.
Throws:
DataException

findByDescriptionContains

ListModel<E> findByDescriptionContains(java.util.Locale locale,
                                       java.lang.String pattern)
                                                             throws DataException
Find all virtual portals that contain a given pattern in their description. This method takes only descriptions of a given locale into accoutn.
If no VirtualPortal could be found, an empty collection is returned.
NOTE: Pattern is case-insensitive!

Parameters:
locale - the locale to search the pattern in
pattern - the pattern to search for
Returns:
A list of com.ibm.portal.admin.VirtualPortal objects.
Throws:
DataException

findByDescriptionStartsWith

ListModel<E> findByDescriptionStartsWith(java.util.Locale locale,
                                         java.lang.String pattern)
                                                               throws DataException
Find all virtual portals that start with a given pattern in their description. This method takes only descriptions of a given locale into account.
If no VirtualPortal object could be found, an empty collection is returned.
NOTE: Pattern is case-insensitive!

Parameters:
locale - the locale to search the pattern in
pattern - the pattern to search for
Returns:
A list of com.ibm.portal.admin.VirtualPortal objects.
Throws:
DataException