com.logicboxes.foundation.sfnb.management
Class LegalAgreement

java.lang.Object
  extended by com.logicboxes.foundation.sfnb.management.LegalAgreement

public class LegalAgreement
extends java.lang.Object


Constructor Summary
LegalAgreement()
           
 
Method Summary
 java.util.HashMap getAgreement(java.lang.String SERVICE_USERNAME, java.lang.String SERVICE_PASSWORD, java.lang.String SERVICE_ROLE, java.lang.String SERVICE_LANGPREF, int SERVICE_PARENTID, boolean callByParent, java.lang.String agreementType)
          This method returns the default and customized agreement where the tags replaced with the appropriate attributes.
 java.util.HashMap getAllAgreements(java.lang.String SERVICE_USERNAME, java.lang.String SERVICE_PASSWORD, java.lang.String SERVICE_ROLE, java.lang.String SERVICE_LANGPREF, int SERVICE_PARENTID, java.lang.String[] agreementType)
          Returns default and customized agreements with the tags replaced by appropriate attributes for each agreement type passed.
 java.util.Vector getProductCategory(java.lang.String SERVICE_USERNAME, java.lang.String SERVICE_PASSWORD, java.lang.String SERVICE_ROLE, java.lang.String SERVICE_LANGPREF, int SERVICE_PARENTID, java.lang.String productKey, java.lang.String signupAction, int resellerId)
          Returns the vector of product categories.
 java.util.HashMap getRegistrantAgreement(java.lang.String SERVICE_USERNAME, java.lang.String SERVICE_PASSWORD, java.lang.String SERVICE_ROLE, java.lang.String SERVICE_LANGPREF, int SERVICE_PARENTID, boolean callByParent, java.lang.String agreementType)
          This method returns the default and customized registrant agreement where the tags replaced with the appropriate attributes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegalAgreement

public LegalAgreement()
Method Detail

getRegistrantAgreement

public java.util.HashMap getRegistrantAgreement(java.lang.String SERVICE_USERNAME,
                                                java.lang.String SERVICE_PASSWORD,
                                                java.lang.String SERVICE_ROLE,
                                                java.lang.String SERVICE_LANGPREF,
                                                int SERVICE_PARENTID,
                                                boolean callByParent,
                                                java.lang.String agreementType)
This method returns the default and customized registrant agreement where the tags replaced with the appropriate attributes.

Parameters:
callByParent - boolean callByParent
agreementType - String agreementType
Returns:
Hashtable

getProductCategory

public java.util.Vector getProductCategory(java.lang.String SERVICE_USERNAME,
                                           java.lang.String SERVICE_PASSWORD,
                                           java.lang.String SERVICE_ROLE,
                                           java.lang.String SERVICE_LANGPREF,
                                           int SERVICE_PARENTID,
                                           java.lang.String productKey,
                                           java.lang.String signupAction,
                                           int resellerId)
Returns the vector of product categories. Categories are decided on the given product key list. If the product key list is empty then only the signed up product's categories are selected. NOTE: This method is mostly used to get the agreement category list while viewing the agreements.

Parameters:
productKey - Contains "," separated values of product keys or is null
signupAction - Holds "signup" value or is null
resellerId - Holds reseller id
Returns:
Vector List of product categories

getAgreement

public java.util.HashMap getAgreement(java.lang.String SERVICE_USERNAME,
                                      java.lang.String SERVICE_PASSWORD,
                                      java.lang.String SERVICE_ROLE,
                                      java.lang.String SERVICE_LANGPREF,
                                      int SERVICE_PARENTID,
                                      boolean callByParent,
                                      java.lang.String agreementType)
This method returns the default and customized agreement where the tags replaced with the appropriate attributes.

Parameters:
callByParent - boolean callByParent
agreementType - String agreementType
Returns:
Hashtable

getAllAgreements

public java.util.HashMap getAllAgreements(java.lang.String SERVICE_USERNAME,
                                          java.lang.String SERVICE_PASSWORD,
                                          java.lang.String SERVICE_ROLE,
                                          java.lang.String SERVICE_LANGPREF,
                                          int SERVICE_PARENTID,
                                          java.lang.String[] agreementType)
Returns default and customized agreements with the tags replaced by appropriate attributes for each agreement type passed.

Parameters:
agreementType -
Returns:
agreement