edu.internet2.middleware.grouper.userData
Class UserDataList

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

public class UserDataList
extends Object

list of user data objects

Author:
mchyzer

Constructor Summary
UserDataList()
           
UserDataList(UserDataObject[] list)
          construct with field
 
Method Summary
 boolean addUserDataObject(UserDataObject userDataObject, int maxSize)
          add a userDataObject and timestamp, if it already exists, reorder it so it is first
 UserDataObject[] getList()
          list of objects
 String jsonConvertTo()
          convert the object to json
static UserDataList jsonMarshalFrom(String jsonString)
           
 boolean removeUuid(String uuid)
          add a userDataObject and timestamp, if it already exists, reorder it so it is first
 boolean replaceUserDataObjectsWithSubset(Set<String> uuids, int maxSize)
          replace a userDataList with a new list, keep the old timestamps if they are there
 void setList(UserDataObject[] list1)
          list of objects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDataList

public UserDataList()

UserDataList

public UserDataList(UserDataObject[] list)
construct with field

Parameters:
list -
Method Detail

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 -