net.sf.imca.services
Class CommitteeService

java.lang.Object
  extended by net.sf.imca.services.Service
      extended by net.sf.imca.services.CommitteeService

public class CommitteeService
extends Service

Service IMCA Committee member use cases.

Author:
dougculnane

Field Summary
 
Fields inherited from class net.sf.imca.services.Service
em
 
Constructor Summary
CommitteeService()
           
 
Method Summary
 boolean addMember(long membershipTypeId, java.lang.String email)
           
 boolean confirmPaidMembershipEntity(long id)
          Set the paid flag to true for the Membership entity with the id.
 boolean deleteMembershipEntity(long id)
          Delete the Membership entity with the id.
 boolean deleteMembershipTypeEntity(long id)
          Delete the Membership Type entity with the id.
 AssociationBO[] getAllAssociations()
           
 AssociationBO getAssociation(long associationId)
           
 AssociationBO getAssociation(java.lang.String countryCode, java.lang.String area)
           
 CommitteeMemberEntity[] getAssociationCommittee(java.lang.String landCode, java.lang.String area)
           
 AssociationBO[] getAssociations(boolean official)
           
 AssociationBO[] getCommitteeMemberships(PersonBO person)
           
 MembershipTypeBO[] getEditableMembershipTypes(PersonBO person)
           
 boolean getHasLinkedMemberships(long membershipTypeId)
           
 CommitteeMemberEntity[] getImcaWorldAssociationCommittee()
           
 MembershipEntity[] getMembershipList(PersonBO person)
          Get the Persons membership list on the current date.
 MembershipEntity[] getMembershipList(PersonBO person, java.util.Date refDate)
          Get the Persons membership list on the reference date.
 MembershipEntity[] getMembershipRequestList(PersonBO person)
           
 MembershipTypeBO getMembershipType(long membershipTypeId)
           
 AssociationBO[] getOficialIMCACommitteeMemberships(PersonBO person)
           
 boolean getOnImcaCommittee(PersonBO person)
           
 void saveAssociationData(AssociationEntity entity)
           
 boolean saveAssociationData(long associationId, java.lang.String paymentExplanation, java.lang.String url)
           
 boolean saveMembershipType(long membershipTypeId, java.lang.String membershipType, java.lang.String currencyCode, double fee, java.util.Date startDate, java.util.Date endDate)
          Save the MembershipType with the following parameters.
 void saveNewMembershipType(long associationId, java.lang.String membershipType, java.lang.String currencyCode, double fee, java.util.Date startDate, java.util.Date endDate)
           
 
Methods inherited from class net.sf.imca.services.Service
destroyEntityManager, endTransaction, startTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommitteeService

public CommitteeService()
Method Detail

getMembershipList

public MembershipEntity[] getMembershipList(PersonBO person)
Get the Persons membership list on the current date.

Parameters:
person - The person for the membership filter.
Returns:
A Membership Entity Array.

getMembershipList

public MembershipEntity[] getMembershipList(PersonBO person,
                                            java.util.Date refDate)
Get the Persons membership list on the reference date.

Parameters:
person - The person for the membership filter.
refDate - The data for the membership list.
Returns:
A Membership Entity Array.

getCommitteeMemberships

public AssociationBO[] getCommitteeMemberships(PersonBO person)

getOficialIMCACommitteeMemberships

public AssociationBO[] getOficialIMCACommitteeMemberships(PersonBO person)

getAllAssociations

public AssociationBO[] getAllAssociations()

getAssociation

public AssociationBO getAssociation(java.lang.String countryCode,
                                    java.lang.String area)

getAssociations

public AssociationBO[] getAssociations(boolean official)

getImcaWorldAssociationCommittee

public CommitteeMemberEntity[] getImcaWorldAssociationCommittee()

getAssociationCommittee

public CommitteeMemberEntity[] getAssociationCommittee(java.lang.String landCode,
                                                       java.lang.String area)

getOnImcaCommittee

public boolean getOnImcaCommittee(PersonBO person)

saveNewMembershipType

public void saveNewMembershipType(long associationId,
                                  java.lang.String membershipType,
                                  java.lang.String currencyCode,
                                  double fee,
                                  java.util.Date startDate,
                                  java.util.Date endDate)

getMembershipRequestList

public MembershipEntity[] getMembershipRequestList(PersonBO person)

deleteMembershipEntity

public boolean deleteMembershipEntity(long id)
Delete the Membership entity with the id.

Parameters:
id - of membership entity.
Returns:
true if success.

deleteMembershipTypeEntity

public boolean deleteMembershipTypeEntity(long id)
Delete the Membership Type entity with the id.

Parameters:
id - of membership Type entity.
Returns:
true if success.

confirmPaidMembershipEntity

public boolean confirmPaidMembershipEntity(long id)
Set the paid flag to true for the Membership entity with the id.

Parameters:
id - of membership entity.
Returns:
true if success.

getAssociation

public AssociationBO getAssociation(long associationId)

saveAssociationData

public void saveAssociationData(AssociationEntity entity)

saveAssociationData

public boolean saveAssociationData(long associationId,
                                   java.lang.String paymentExplanation,
                                   java.lang.String url)
Parameters:
associationId -
paymentExplanation -
url -
Returns:
true if success.

getMembershipType

public MembershipTypeBO getMembershipType(long membershipTypeId)

getEditableMembershipTypes

public MembershipTypeBO[] getEditableMembershipTypes(PersonBO person)

saveMembershipType

public boolean saveMembershipType(long membershipTypeId,
                                  java.lang.String membershipType,
                                  java.lang.String currencyCode,
                                  double fee,
                                  java.util.Date startDate,
                                  java.util.Date endDate)
Save the MembershipType with the following parameters.

Parameters:
membershipTypeId -
membershipType -
currencyCode -
fee -
startDate -
endDate -
Returns:
true if success.

getHasLinkedMemberships

public boolean getHasLinkedMemberships(long membershipTypeId)

addMember

public boolean addMember(long membershipTypeId,
                         java.lang.String email)


Copyright © 2007-2008 The International Moth Class Association (IMCA).. All Rights Reserved.