Package com.centraview.common

Examples of com.centraview.common.AuthorizationFailedException


   */
  public MarketingListMemberList getMarketingListMemberList(int userID, int marketingListID,
      HashMap preferences) throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("ListManager", userID, this.dataSource)) {
      throw new AuthorizationFailedException("ListManager - getMarketingListMemberList");
    }

    MarketingListMemberList returnList = new MarketingListMemberList();

    Integer startAtParam = (Integer)preferences.get("startATparam");
View Full Code Here


   */
  public EventAtendeesList getEventAtendeesList(int userId, HashMap preference)
      throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("ListManager", userId, this.dataSource))
      throw new AuthorizationFailedException("MarketingList - getEventAtendeesList");

    Integer startATparam = (Integer)preference.get("startATparam");
    Integer EndAtparam = (Integer)preference.get("EndAtparam");
    String searchString = (String)preference.get("searchString");
    String sortmem = (String)preference.get("sortmem");
View Full Code Here

  public MarketingList getMarketingList(int userId, HashMap preference)
      throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("ListManager", userId, this.dataSource)) {
      throw new AuthorizationFailedException("ListManager - getMarketingList");
    }

    MarketingList DL = new MarketingList();

    try {
View Full Code Here

  */
  public void updateFaq(int userId, FaqVO fvo) throws FaqException, AuthorizationFailedException
  {
    if(!CVUtility.canPerformRecordOperation(userId, "FAQ", fvo.getFaqId(), ModuleFieldRightMatrix.UPDATE_RIGHT, this.dataSource))
    {
      throw new AuthorizationFailedException("User cannot access Update the FAQ.");
    }

    CVDal cvdl = new CVDal(dataSource);
    try
    {
View Full Code Here

  */
  public void deleteFaq(int userId, int faqId)throws AuthorizationFailedException
  {
    if(!CVUtility.canPerformRecordOperation(userId, "FAQ", faqId, ModuleFieldRightMatrix.UPDATE_RIGHT, this.dataSource))
    {
      throw new AuthorizationFailedException("User cannot access DELETE the FAQ.");
    }

    CVDal cvdl = new CVDal(dataSource);

    HashMap hmFaq=new HashMap();
View Full Code Here

   */
  public int deleteOpportunity(int userId, int opportunityID) throws AuthorizationFailedException
  {
    if (!CVUtility.canPerformRecordOperation(userId, "Opportunities", opportunityID,
        ModuleFieldRightMatrix.DELETE_RIGHT, this.dataSource))
      throw new AuthorizationFailedException("Opportunities - deleteOpportunity");

    int result = 0;

    CVDal cvdal = new CVDal(dataSource);
    try {
View Full Code Here

   * @exception none
   */
  public int addOpportunity(int userId, OpportunityVO oVO) throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Opportunities", userId, this.dataSource))
      throw new AuthorizationFailedException("Opportunities - addOpportunity");

    int opportunityID = -1;
    CVDal cvdal = new CVDal(dataSource);

    try {
View Full Code Here

   */
  public void updateOpportunity(int userId, OpportunityVO oVO) throws AuthorizationFailedException
  {
    if (!CVUtility.canPerformRecordOperation(userId, "Opportunities", oVO.getOpportunityID(),
        ModuleFieldRightMatrix.UPDATE_RIGHT, this.dataSource))
      throw new AuthorizationFailedException("Opportunities - updateOpportunity");

    CVDal cvdal = new CVDal(dataSource);
    try {
      ActivityVO aVO = oVO.getActivityVO();
      float totalAmount = (float)0.0;
View Full Code Here

      throws AuthorizationFailedException
  {

    if (!CVUtility.canPerformRecordOperation(userId, "Opportunities", opportunityId,
        ModuleFieldRightMatrix.VIEW_RIGHT, this.dataSource))
      throw new AuthorizationFailedException("Opportunities - getOpportunity");

    HashMap relatedOpportunityInfo = new HashMap();
    CVDal cvdal = new CVDal(dataSource);
    try {
      cvdal.setSql("sale.opportunity.relatedopportunityinfo");
View Full Code Here

  public OpportunityVO getOpportunity(int userId, int opportunityId)
      throws AuthorizationFailedException
  {
    if (!CVUtility.canPerformRecordOperation(userId, "Opportunities", opportunityId,
        ModuleFieldRightMatrix.VIEW_RIGHT, this.dataSource))
      throw new AuthorizationFailedException("Opportunities - getOpportunity");

    OpportunityVO oVO = null;
    CVDal cvdal = new CVDal(dataSource);
    try {
      cvdal.setSql("sale.opportunity.getopportunity");
View Full Code Here

TOP

Related Classes of com.centraview.common.AuthorizationFailedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.