/*
- * Copyright (C) 2015 Roland Haeder
+ * Copyright (C) 2016 Roland Häder
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
import java.io.Serializable;
import java.util.Calendar;
+import java.util.Locale;
import org.mxchange.jcontacts.contact.Contact;
import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
import org.mxchange.jusercore.model.user.status.UserAccountStatus;
/**
- * A customer interface
+ * A user POPJI
* <p>
- * @author Roland Haeder<roland@mxchange.org>
+ * @author Roland Häder<roland@mxchange.org>
*/
public interface User extends Serializable {
/**
- * Copies all attributes from other customer object to this
+ * Copies all attributes from other user object to this
* <p>
* @param userSource Source instance
*/
* <p>
* @return Reason of last locked
*/
- String getLastLockedReason ();
+ String getUserLastLockedReason ();
/**
* Setter for reason of last locked
* <p>
* @param lastLockedReason Reason of last locked
*/
- void setLastLockedReason (final String lastLockedReason);
+ void setUserLastLockedReason (final String lastLockedReason);
/**
* Getter for user name
void setUserUpdated (final Calendar userUpdated);
/**
- * Checks if object is a User instance and whether it matches with this
- * object.
+ * Getter for user's locale
* <p>
- * @param object Object to be checked
- * @return Whether it matches this object
+ * @return User's locale
*/
- @Override
- boolean equals (final Object object);
+ Locale getUserLocale ();
+
+ /**
+ * Setteror user's locale
+ * <p>
+ * @param userLocale User's locale
+ */
+ void setUserLocale (final Locale userLocale);
/**
- * Hash code caluclation for this object
+ * Getter for flag if user needs to change password
* <p>
- * @return Hash code for this object
+ * @return Flag if user needs to change password
*/
+ Boolean getUserMustChangePassword ();
+
+ /**
+ * Setter for flag if user needs to change password
+ * <p>
+ * @param userMustChangePassword Flag if user needs to change password
+ */
+ void setUserMustChangePassword (final Boolean userMustChangePassword);
+
+ @Override
+ boolean equals (final Object object);
+
@Override
int hashCode ();
+
}