com.e_c_group.bwptk
Class UserRegistration
java.lang.Object
com.e_c_group.bwptk.UserRegistration
public class UserRegistration
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getExpirationMap
public java.util.HashMap<java.lang.String,java.lang.String> getExpirationMap()
isRegistered
public boolean isRegistered()
getRegistration
public java.util.List<java.util.HashMap<java.lang.String,java.lang.String>> getRegistration()
getUser
public User getUser()
getRegistration
public static UserRegistration getRegistration(User user)
throws BwptkException
- Throws:
BwptkException
updateRegistration
public java.util.HashMap<java.lang.String,java.lang.Boolean> updateRegistration()
throws BwptkException
- The primary method of UserRegistration-
It updates the registration information of the object then returns true if the primary registration had been modified.
It returns false if there is no primary registration or if the registration is the same as the last time it was checked.
This is not thread safe.
- Throws:
BwptkException
lastUpdated
public long lastUpdated()