|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.db.OnboardingOps
public class OnboardingOps
Provides database operations for the Onboarding modules, that does not have its own database store class. Currently this contains the methods for E-mail invite module. This class should contain the database operations corresponding to the services in com.wm.app.tn.onboarding.Onboarding class.
This class does not have any application knowledge and the data is not validated in the services exposed. It is the responsibility of the caller to do necessary validations.
Constructor Summary | |
---|---|
OnboardingOps()
|
Method Summary | |
---|---|
static java.lang.String |
addInvite(com.wm.app.tn.onboarding.Invite invite)
Insert the data for Email invite configuration. |
static ActivityLogEntry |
createActivityLog(java.lang.String partnerID,
java.lang.String questionnaire)
|
static boolean |
deleteInvite(java.lang.String inviteId)
Deletes the configuration for an email invitation from database. |
static com.wm.app.tn.onboarding.Invite |
getInvite(java.lang.String inviteId)
Get the configuration details for an Email invite. |
static com.wm.app.tn.onboarding.Invite |
getInviteByPartner(java.lang.String partnerID)
Get the configuration details for an Email invite. |
static java.lang.String |
getQuestionnaireData(java.lang.String partnerID,
java.lang.String templateID)
This is to get the QuestionnaireData for the template |
static java.lang.String |
getSubStatus(java.lang.String partnerID)
Gets the Substatus of Partner (Pending Partner) |
static com.wm.data.IData[] |
getTemplates()
Temporary method for returning the name and id of all Questionnaire templates available in the system. |
static void |
insertActivityLog(java.lang.String partnerID,
java.lang.String questionnaire)
|
static com.wm.data.IData |
query(InviteQuery query,
int pageSize,
int maxR,
int qryT,
int threshold,
java.lang.String queryId)
|
static com.wm.data.IData[] |
queryTemplates(java.lang.String templateName)
Public method to fetch template information from the DB by name |
static void |
saveQuestionnaireData(java.lang.String partnerID,
java.lang.String templateID,
java.lang.String questionnaireBytes,
java.lang.String status)
This saves the questionnaire template data in the database which are associated with the partner. |
static java.lang.String |
updateInvitationSent(com.wm.app.tn.onboarding.Invite invite)
Update the invitationSent boolean for Email invite configuration. |
static void |
updateInvite(com.wm.app.tn.onboarding.Invite invite)
Updates the data for an Email invite configuration. |
static void |
updateQuestionnaireStatus(java.lang.String partnerID,
java.lang.String templateID,
java.lang.String approvalStatus)
Method to update the status of the Questionnaire |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OnboardingOps()
Method Detail |
---|
public static java.lang.String addInvite(com.wm.app.tn.onboarding.Invite invite) throws java.sql.SQLException, com.wm.app.tn.onboarding.OnboardingException
invite
- The invite object that contains the configuration data.
java.sql.SQLException
com.wm.app.tn.onboarding.OnboardingException
- - if an invite configuration already exists in the database with the same invite
name.Invite
public static java.lang.String getSubStatus(java.lang.String partnerID) throws java.sql.SQLException
partnerID
- of Partner for which Status is needed
java.sql.SQLException
public static java.lang.String updateInvitationSent(com.wm.app.tn.onboarding.Invite invite) throws java.sql.SQLException, com.wm.app.tn.onboarding.OnboardingException
invite
- The invite object that contains the configuration data.
java.sql.SQLException
com.wm.app.tn.onboarding.OnboardingException
- .Invite
public static com.wm.app.tn.onboarding.Invite getInvite(java.lang.String inviteId) throws java.sql.SQLException, com.wm.app.tn.onboarding.OnboardingException
inviteId
- The id for which the invite details need to be retrieved.
java.sql.SQLException
com.wm.app.tn.onboarding.OnboardingException
- if any error occurs while retrieving the ScheduleData for the email invitation.Invite
public static com.wm.app.tn.onboarding.Invite getInviteByPartner(java.lang.String partnerID) throws java.sql.SQLException, com.wm.app.tn.onboarding.OnboardingException
partnerId
- The id of the partner for which invitation being resent.
java.sql.SQLException
com.wm.app.tn.onboarding.OnboardingException
- if any error occurs while retrieving the ScheduleData for the email invitation.Invite
public static void updateInvite(com.wm.app.tn.onboarding.Invite invite) throws java.sql.SQLException, com.wm.app.tn.onboarding.OnboardingException
invite
- The com.wm.app.tn.onboarding.Invite object that contains the configuration data.
java.sql.SQLException
com.wm.app.tn.onboarding.OnboardingException
- - if an invite configuration already exists in the database with the same invite
name.Invite
public static boolean deleteInvite(java.lang.String inviteId) throws java.sql.SQLException
inviteId
- Id of the email invitation to be deleted.
java.sql.SQLException
- if there a database exception while removing Invitation data.Invite
public static com.wm.data.IData[] getTemplates() throws java.sql.SQLException
java.sql.SQLException
public static com.wm.data.IData query(InviteQuery query, int pageSize, int maxR, int qryT, int threshold, java.lang.String queryId) throws java.sql.SQLException, java.io.IOException, com.wm.app.repo.RepositoryException, com.wm.app.b2b.server.ServiceException
java.sql.SQLException
java.io.IOException
com.wm.app.repo.RepositoryException
com.wm.app.b2b.server.ServiceException
public static com.wm.data.IData[] queryTemplates(java.lang.String templateName) throws java.lang.Exception
templateName
- String name of the template
java.lang.Exception
public static void saveQuestionnaireData(java.lang.String partnerID, java.lang.String templateID, java.lang.String questionnaireBytes, java.lang.String status) throws java.lang.Exception
partnerID
- templateID
- template IDquestionnaireBytes
- Questionnaire datastatus
- status of the Questionnaire Data
java.sql.SQLException
java.lang.Exception
public static java.lang.String getQuestionnaireData(java.lang.String partnerID, java.lang.String templateID) throws java.lang.Exception
partnerID
- templateID
-
java.lang.Exception
public static ActivityLogEntry createActivityLog(java.lang.String partnerID, java.lang.String questionnaire)
public static void insertActivityLog(java.lang.String partnerID, java.lang.String questionnaire)
public static void updateQuestionnaireStatus(java.lang.String partnerID, java.lang.String templateID, java.lang.String approvalStatus) throws java.lang.Exception
partnerID
- templateID
- approvalStatus
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |