Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2014 Philip Helger (www.helger.com) philip[at]helger[dot]com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package com.helger.appbasics.security.user;
 
 
 
 
Interface for a single user

Author(s):
Philip Helger
 
 {
  

Returns:
true if the user has the ID com.helger.appbasics.security.CSecurity.USER_ADMINISTRATOR_ID, false otherwise
 
   boolean isAdministrator ();

  

Returns:
The login name of the user.
 
   @Nonnull
   @Nonempty
   String getLoginName ();

  
The email address is optional since 2.6.3

Returns:
The email address of the user. May be null.
 
   @Nullable
   String getEmailAddress ();

  

Returns:
The hashed password of the user. Never null.
 
   @Nonnull

Returns:
The first name of the user. May be null.
 
   @Nullable
   String getFirstName ();

  

Returns:
The last name of the user. May be null.
 
   @Nullable
   String getLastName ();

  

Returns:
The display name of the user. May be empty if both first and last name are empty but never null.
 
   @Nonnull
   String getDisplayName ();

  

Returns:
The desired locale of the user. May be null.
 
   @Nullable
   Locale getDesiredLocale ();

  

Returns:
The date time when the user last logged in. May be null if the user never logged in.
Since:
2.4.2

Returns:
The number of times the user logged in. Always ≥ 0.
Since:
2.4.2
  int getLoginCount ();

  

Returns:
The number of consecutive failed logins of this user.
Since:
2.6.3

Returns:
true if this user is deleted, false if it is active
  boolean isDeleted ();

  

Returns:
true if this user is enabled, false if it is disabled
See also:
isDisabled()
  boolean isEnabled ();

  

Returns:
true if this user is disabled, false if it is enabled
See also:
isEnabled()
  boolean isDisabled ();
New to GrepCode? Check out our FAQ X