Class UserDataList

java.lang.Object
edu.internet2.middleware.grouper.userData.UserDataList

public class UserDataList extends Object
list of user data objects
  • Constructor Details

    • UserDataList

      public UserDataList()
    • UserDataList

      public UserDataList(UserDataObject[] list)
      construct with field
      Parameters:
      list -
  • Method Details

    • jsonMarshalFrom

      public static UserDataList jsonMarshalFrom(String jsonString)
      Parameters:
      jsonString -
      Returns:
    • jsonConvertTo

      public String jsonConvertTo()
      convert the object to json
      Returns:
      the string
    • addUserDataObject

      public boolean addUserDataObject(UserDataObject userDataObject, int maxSize)
      add a userDataObject and timestamp, if it already exists, reorder it so it is first
      Parameters:
      userDataObject -
      Returns:
      true if made changes, false if not
    • replaceUserDataObjectsWithSubset

      public boolean replaceUserDataObjectsWithSubset(Set<String> uuids, int maxSize)
      replace a userDataList with a new list, keep the old timestamps if they are there
      Parameters:
      uuids -
      maxSize -
      Returns:
      true if made changes, false if not
    • removeUuid

      public boolean removeUuid(String uuid)
      add a userDataObject and timestamp, if it already exists, reorder it so it is first
      Parameters:
      userDataObject -
      Returns:
      true if made changes, false if not
    • getList

      public UserDataObject[] getList()
      list of objects
      Returns:
      the list
    • setList

      public void setList(UserDataObject[] list1)
      list of objects
      Parameters:
      list1 -