com.zphinx.spine.members
Interface MemberAccount

All Known Implementing Classes:
AccountDetails

public interface MemberAccount

MemberAccount defines common variables and methods used to create differing account types

Version:
$1.0

Copyright ©Zphinx Software Solutions

Author:
David Ladapo

Field Summary
static int ACCOUNT_30_DAYS
          30 day account type
static int ACCOUNT_NO_EXPIRE
          Unlimited account type
static int ACCOUNT_ONE_DAY
          One day account type
static int ACCOUNT_ONE_WEEK
          1 week account type
static int ACCOUNT_ONE_YEAR
          1 year account type
static int ACCOUNT_THREE_DAYS
          3 day account type
static int ACCOUNT_VARIABLE
          A variable account type
 
Method Summary
 void changeDetails(AccountTypeBean accountType, long expire)
          Amend the properties of this account with the given parameters
 Date getAccountExpirationDate()
          Gets the expiration dtae of this account
 AccountTypeBean getAccountType()
          Gets the type of account we are creating
 long getId()
          Gets the id of this account
 boolean isAccountTypeChanged()
          Checks for changes in the users accountType
 boolean isInitialized()
          Returns true if this object has been fully initialized
 void setAccountExpirationDate(Date accountExpirationDate)
          Sets the expiration dtae of this account
 void setAccountType(AccountTypeBean accountType)
          Sets the type of account we are creating
 void setId(long accountId)
          Sets the id of this account
 

Field Detail

ACCOUNT_ONE_DAY

static final int ACCOUNT_ONE_DAY
One day account type

See Also:
Constant Field Values

ACCOUNT_THREE_DAYS

static final int ACCOUNT_THREE_DAYS
3 day account type

See Also:
Constant Field Values

ACCOUNT_ONE_WEEK

static final int ACCOUNT_ONE_WEEK
1 week account type

See Also:
Constant Field Values

ACCOUNT_30_DAYS

static final int ACCOUNT_30_DAYS
30 day account type

See Also:
Constant Field Values

ACCOUNT_ONE_YEAR

static final int ACCOUNT_ONE_YEAR
1 year account type

See Also:
Constant Field Values

ACCOUNT_VARIABLE

static final int ACCOUNT_VARIABLE
A variable account type

See Also:
Constant Field Values

ACCOUNT_NO_EXPIRE

static final int ACCOUNT_NO_EXPIRE
Unlimited account type

See Also:
Constant Field Values
Method Detail

getAccountExpirationDate

Date getAccountExpirationDate()
Gets the expiration dtae of this account

Returns:
Returns the accountExpirationDate.

setAccountExpirationDate

void setAccountExpirationDate(Date accountExpirationDate)
                              throws SpineApplicationException
Sets the expiration dtae of this account

Parameters:
accountExpirationDate - The accountExpirationDate to set.
Throws:
SpineApplicationException

getId

long getId()
Gets the id of this account

Returns:
Returns the accountId.

setId

void setId(long accountId)
Sets the id of this account

Parameters:
accountId - The accountId to set.

getAccountType

AccountTypeBean getAccountType()
Gets the type of account we are creating

Returns:
Returns the accountType.

setAccountType

void setAccountType(AccountTypeBean accountType)
Sets the type of account we are creating

Parameters:
accountType - The accountType to set.

isInitialized

boolean isInitialized()
Returns true if this object has been fully initialized

Returns:
Returns the initialized.

changeDetails

void changeDetails(AccountTypeBean accountType,
                   long expire)
                   throws SpineApplicationException
Amend the properties of this account with the given parameters

Parameters:
accountType - The type of account details object we are creating
expire - The time in milliseconds when this account will expire
Throws:
SpineApplicationException

isAccountTypeChanged

boolean isAccountTypeChanged()
Checks for changes in the users accountType

Returns:
True if the accountType is been changed/amended