Class Filter


  • @VelocityCallable("singleton")
    public final class Filter
    extends Object
    This class provides a collection of various filters for collections that are used in the Velocity context.
    • Constructor Detail

      • Filter

        public Filter()
    • Method Detail

      • appInfoIntersect

        public List<ApplicationInfo> appInfoIntersect​(List<ApplicationInfo> p_appInfoList,
                                                      List<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 List<IMenuItem> menuInfoComplement​(List<IMenuItem> p_menuInfoList,
                                                  Collection<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 List<IMenuItem> menuInfoIntersect​(List<IMenuItem> p_menuInfoList,
                                                 List<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 List<ApplicationInfo> appInfoComplement​(List<ApplicationInfo> p_appInfoList,
                                                       Collection<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 List<IUser> userListComplement​(List<IUser> p_userList,
                                              List<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 List<IUser> userListIntersect​(List<IUser> p_userList,
                                             List<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 List<de.uplanet.lucy.server.auxiliaries.ds.IDsUserItem> dsUserItemListIntersect​(List<de.uplanet.lucy.server.auxiliaries.ds.IDsUserItem> p_userList,
                                                                                               List<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 List<de.uplanet.lucy.server.auxiliaries.ds.IDsUserItem> dsUserItemListComplement​(List<de.uplanet.lucy.server.auxiliaries.ds.IDsUserItem> p_userList,
                                                                                                List<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.