de.uplanet.lucy.server.auxiliaries.collections
Class Filter

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.collections.Filter

@VelocityCallable(value="singleton")
public final class Filter
extends java.lang.Object

This class provides a collection of various filters for collections that are used in the Velocity context.

Version:
$Revision: 76496 $

Constructor Summary
Filter()
           
 
Method Summary
 java.util.List<ApplicationInfo> appInfoComplement(java.util.List<ApplicationInfo> p_appInfoList, java.util.Collection<java.lang.String> p_appGuidList)
          Compose the complement of an ApplicationInfo list with respect to a list of application GUIDs.
 java.util.List<ApplicationInfo> appInfoIntersect(java.util.List<ApplicationInfo> p_appInfoList, java.util.List<java.lang.String> p_appGuidList)
          Compose the intersection of an ApplicationInfo list and a list of application IDs.
 java.util.List<IDsUserItem> dsUserItemListComplement(java.util.List<IDsUserItem> p_userList, java.util.List<java.lang.Object> p_userIdList)
          Compose the complement of an IUser list with respect to a list of User IDs.
 java.util.List<IDsUserItem> dsUserItemListIntersect(java.util.List<IDsUserItem> p_userList, java.util.List<java.lang.Object> p_userIdList)
          Compose the intersection of an DsUserItem list and a list of User IDs.
 java.util.List<IMenuItem> menuInfoComplement(java.util.List<IMenuItem> p_menuInfoList, java.util.Collection<java.lang.String> p_menuGuidList)
          Compose the complement of an IMenuItem list with respect to a list of menu GUIDs.
 java.util.List<IMenuItem> menuInfoIntersect(java.util.List<IMenuItem> p_menuInfoList, java.util.List<java.lang.String> p_menuGuidList)
          Compose the intersection of an ApplicationInfo list and a list of application IDs.
 java.util.List<IUser> userListComplement(java.util.List<IUser> p_userList, java.util.List<java.lang.Object> p_userIdList)
          Deprecated. 
 java.util.List<IUser> userListIntersect(java.util.List<IUser> p_userList, java.util.List<java.lang.Object> p_userIdList)
          Deprecated. 
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter

public Filter()
Method Detail

appInfoIntersect

public java.util.List<ApplicationInfo> appInfoIntersect(java.util.List<ApplicationInfo> p_appInfoList,
                                                        java.util.List<java.lang.String> p_appGuidList)
Compose the intersection of an ApplicationInfo list and a list of application IDs.

The resultant list contains element in the order induced by the p_appIdList.

Parameters:
p_appInfoList - The list of ApplicationInfo objects.
p_appGuidList - The list of application GUIDs.
Returns:
A list containing ApplicationInfo objects from p_appInfoList whose application IDs appear in p_appGuidList.

menuInfoComplement

public java.util.List<IMenuItem> menuInfoComplement(java.util.List<IMenuItem> p_menuInfoList,
                                                    java.util.Collection<java.lang.String> p_menuGuidList)
Compose the complement of an IMenuItem list with respect to a list of menu GUIDs.

Parameters:
p_menuInfoList - The list of IMenuItem objects.
p_menuGuidList - The list of menu GUIDs.
Returns:
A list containing IMenuItem objects from p_menuInfoList whose menu guid do not appear in p_menuInfoList.

menuInfoIntersect

public java.util.List<IMenuItem> menuInfoIntersect(java.util.List<IMenuItem> p_menuInfoList,
                                                   java.util.List<java.lang.String> p_menuGuidList)
Compose the intersection of an ApplicationInfo list and a list of application IDs.

The resultant list contains element in the order induced by the p_appIdList.

Parameters:
p_menuInfoList - The list of ApplicationInfo objects.
p_menuGuidList - The list of application GUIDs.
Returns:
A list containing ApplicationInfo objects from p_appInfoList whose application IDs appear in p_appGuidList.

appInfoComplement

public java.util.List<ApplicationInfo> appInfoComplement(java.util.List<ApplicationInfo> p_appInfoList,
                                                         java.util.Collection<java.lang.String> p_appGuidList)
Compose the complement of an ApplicationInfo list with respect to a list of application GUIDs.

Parameters:
p_appInfoList - The list of ApplicationInfo objects.
p_appGuidList - The list of application GUIDs.
Returns:
A list containing ApplicationInfo objects from p_appInfoList whose application IDs do not appear in p_appGuidList.

userListComplement

@Deprecated
public java.util.List<IUser> userListComplement(java.util.List<IUser> p_userList,
                                                           java.util.List<java.lang.Object> p_userIdList)
Deprecated. 

Compose the complement of an IUser list with respect to a list of User IDs.

Parameters:
p_userList - The list of IUser objects.
p_userIdList - The list of User IDs.
Returns:
A list containing IUser objects from p_userList whose user IDs do not appear in p_userIdList.

userListIntersect

@Deprecated
public java.util.List<IUser> userListIntersect(java.util.List<IUser> p_userList,
                                                          java.util.List<java.lang.Object> p_userIdList)
Deprecated. 

Compose the intersection of an IUser list and a list of User IDs.

The resultant list contains element in the order induced by the p_userIdList.

Parameters:
p_userList - The list of IUser objects.
p_userIdList - The list of application IDs.
Returns:
A list containing IUser objects from p_userList whose user IDs appear in p_userIdList.

dsUserItemListIntersect

public java.util.List<IDsUserItem> dsUserItemListIntersect(java.util.List<IDsUserItem> p_userList,
                                                           java.util.List<java.lang.Object> p_userIdList)
Compose the intersection of an DsUserItem list and a list of User IDs.

The resultant list contains element in the order included by the p_userIdList.

Parameters:
p_userList - The list of DsUserItem objects.
p_userIdList - The list of User IDs.
Returns:
A list containing DsUserItem objects from p_userList whose user IDs appear in p_userIdList.

dsUserItemListComplement

public java.util.List<IDsUserItem> dsUserItemListComplement(java.util.List<IDsUserItem> p_userList,
                                                            java.util.List<java.lang.Object> p_userIdList)
Compose the complement of an IUser list with respect to a list of User IDs.

Parameters:
p_userList - The list of IUser objects.
p_userIdList - The list of User IDs.
Returns:
A list containing IUser objects from p_userList whose user IDs do not appear in p_userIdList.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.