net.bryansaunders.jee6divelog.util
Class AccountUtils

java.lang.Object
  extended by net.bryansaunders.jee6divelog.util.AccountUtils

public final class AccountUtils
extends java.lang.Object

User Account Utilities.

Author:
Bryan Saunders

Method Summary
static UserAccount createCleanUserAccount(Identity identity)
          Generates a Cleaned UserAccount Object for the Current Identity.
static UserAccount createUserAccount(Identity identity)
          Generates a UserAccount Object for the Current Identity.
static
<T extends DiveLogEntity>
T
getCleanEntity(T entity)
          Clears the Dates on any DiveLogEntity.
static UserAccount getCleanUserAccount(UserAccount userAccount)
          Clears the Dates & Password on any UserAccount.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createUserAccount

public static UserAccount createUserAccount(Identity identity)
Generates a UserAccount Object for the Current Identity.

Parameters:
identity - Identity to Copy
Returns:
UserAccount

createCleanUserAccount

public static UserAccount createCleanUserAccount(Identity identity)
Generates a Cleaned UserAccount Object for the Current Identity.

Parameters:
identity - Identity to Copy
Returns:
UserAccount

getCleanEntity

public static <T extends DiveLogEntity> T getCleanEntity(T entity)
Clears the Dates on any DiveLogEntity.

Type Parameters:
T - Generic Type
Parameters:
entity - Entity to Clear Dates on
Returns:
Clean DiveLogEntity

getCleanUserAccount

public static UserAccount getCleanUserAccount(UserAccount userAccount)
Clears the Dates & Password on any UserAccount.

Parameters:
userAccount - UserAccount to Clear
Returns:
Clean UserAccount


Copyright © 2012 Bryan Saunders. All Rights Reserved.