com.carlosbcruz.account.dynamicmodel
Class AccountAllUserAccounts

java.lang.Object
  extended by com.carlosbcruz.account.dynamicmodel.AccountAllUserAccounts

public class AccountAllUserAccounts
extends java.lang.Object

Main model class for Account application. It has all the Users Account and Checks Groups.

Author:
Carlos Fernando Bella Cruz - pessoal@carlosbcruz.com

Constructor Summary
AccountAllUserAccounts()
           
 
Method Summary
 void addCheckGroup(AccountCheckGroup checkGroup)
          Insert a check group to the accounts
 void addComment(AccountComment comment)
          Add a Comment to the Accounts
 void addUserAccount(AccountUserAccount accountUserAccount)
          Add an user com.carlosbcruz.account.control
 AccountComment getAccountComment(int position)
          Inform the comment to a specified position.
 AccountComment getAccountComments(java.lang.String commentIdentification)
          Returns a specific comment.
 AccountCheckGroup getCheckGroup(int position)
          Inform the Check Group by position.
 AccountCheckGroup getCheckGroup(java.lang.String checkGroupIdentification)
          Returns a specific checkGroups.
 int getNumberOfCheckGroups()
          Inform the Number of Check Groups
 int getNumberOfComments()
          Inform how many comments there are
 int getNumberOfUserAccounts()
          Inform how manuy accounts there is
 java.lang.String getOwner()
          Returns the owner.
 AccountUserAccount getUserAccount(int position)
          Provide the user com.carlosbcruz.account.control based on its position
 AccountUserAccount getUserAccount(java.lang.String accountId)
          Returns a specific userAccount.
 void setOwner(java.lang.String owner)
          Sets the owner.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountAllUserAccounts

public AccountAllUserAccounts()
Method Detail

getOwner

public java.lang.String getOwner()
Returns the owner.

Returns:
The Owner

setOwner

public void setOwner(java.lang.String owner)
Sets the owner.

Parameters:
owner - The owner to set

getNumberOfUserAccounts

public int getNumberOfUserAccounts()
Inform how manuy accounts there is

Returns:
The number of accounts

getUserAccount

public AccountUserAccount getUserAccount(int position)
Provide the user com.carlosbcruz.account.control based on its position

Parameters:
position - Account position
Returns:
The com.carlosbcruz.account.control requested

getUserAccount

public AccountUserAccount getUserAccount(java.lang.String accountId)
Returns a specific userAccount.

Returns:
The Specific User Account

addUserAccount

public void addUserAccount(AccountUserAccount accountUserAccount)
Add an user com.carlosbcruz.account.control

Parameters:
accountUserAccount - The user com.carlosbcruz.account.control to be inserted

getNumberOfCheckGroups

public int getNumberOfCheckGroups()
Inform the Number of Check Groups

Returns:
the number of check groups

getCheckGroup

public AccountCheckGroup getCheckGroup(int position)
Inform the Check Group by position. The first position is zero.

Parameters:
position - the specified position
Returns:
The Check Groups required.

getCheckGroup

public AccountCheckGroup getCheckGroup(java.lang.String checkGroupIdentification)
Returns a specific checkGroups.

Returns:
The specific Check Groups

addCheckGroup

public void addCheckGroup(AccountCheckGroup checkGroup)
Insert a check group to the accounts

Parameters:
checkGroup - The check group to be inserted

getNumberOfComments

public int getNumberOfComments()
Inform how many comments there are

Returns:
The number of comments

getAccountComment

public AccountComment getAccountComment(int position)
Inform the comment to a specified position. The first comment is in position zero

Parameters:
position - The comment position
Returns:
The comment required

getAccountComments

public AccountComment getAccountComments(java.lang.String commentIdentification)
Returns a specific comment.

Returns:
The specific comment

addComment

public void addComment(AccountComment comment)
Add a Comment to the Accounts

Parameters:
comment - The comment to be inserted