Package com.centraview.administration.authorization

Examples of com.centraview.administration.authorization.AuthorizationLocal


      // end of added by sandeepj for adding attachFileIds into ProposalLink
      // table
      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic
          .lookup("local/Authorization");
      AuthorizationLocal authorizationLocal = authorizationHome.create();
      authorizationLocal.setDataSource(dataSource);
      authorizationLocal.saveCurrentDefaultPermission("Proposals", gid, individualID);
    } catch (Exception e) {
      logger.error("[addProposal]: Exception", e);
    } finally {
      dl.destroy();
      dl = null;
View Full Code Here


        dl.executeUpdate();

        kbid = dl.getAutoGeneratedKey();
        InitialContext ic = CVUtility.getInitialContext();
        AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
        AuthorizationLocal authorizationLocal = authorizationHome.create();
        authorizationLocal.setDataSource(dataSource);
        authorizationLocal.saveCurrentDefaultPermission("Knowledgebase", kbid, userId);
      }
      catch(Exception e)
      {
        e.printStackTrace();
      } finally {
View Full Code Here

      dl.executeUpdate();
      gid = dl.getAutoGeneratedKey();
      // Everything is created now apply the default permissions for this user.
      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
      AuthorizationLocal authorizationLocal = authorizationHome.create();
      authorizationLocal.setDataSource(dataSource);
      authorizationLocal.saveCurrentDefaultPermission("Group", gid, userId);
    } catch (Exception e) {
      logger.error("[createGroup]: Exception", e);
    } finally {
      dl.destroy();
    }
View Full Code Here

        custFieldVO.setRecordID( promotionid );
        custRemote.addCustomField(custFieldVO);
      }

            AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
            AuthorizationLocal authorizationLocal = authorizationHome.create();
            authorizationLocal.setDataSource(dataSource);
            authorizationLocal.saveCurrentDefaultPermission("Promotion", promotionid, userId);

    }
    catch(Exception e )
    {
      System.out.println("[Exception][PromotionEJB.addPromotion] Exception Thrown: "+e);
View Full Code Here

        }
      }   // end if (hrexpenseLines != null)

      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
      AuthorizationLocal authorizationLocal = authorizationHome.create();
      authorizationLocal.setDataSource(this.dataSource);
      authorizationLocal.saveCurrentDefaultPermission("Expense", expenseFormID, userID);
    }catch(Exception e){
      System.out.println("[Exception][HrExpensesEJB.ejbCreate] Exception Thrown: "+e);
      e.printStackTrace();
    }finally{
      cvdal.destroy();
View Full Code Here

      entityCollection = this.getAccessEntityList(individualId,preference);
      // get field rights
      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome home = (AuthorizationLocalHome) ic.lookup("local/Authorization");
      AuthorizationLocal local = home.create();

      entityFieldRights = local.getNoneRightFieldMethod("Entity", individualId);
      if (entityFieldRights == null)
      {
        entityFieldRights = new HashMap();
      }
      individualFieldRights = local.getNoneRightFieldMethod("Individual", individualId);
      if (individualFieldRights == null)
      {
        individualFieldRights = new HashMap();
      }
    } catch (Exception e) {
View Full Code Here

     Collection individualCollection = this.getAccessIndividualList(individualId,preference);

      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome home = (AuthorizationLocalHome) ic.lookup("local/Authorization");
      AuthorizationLocal local = home.create();
      HashMap individualFieldRights = local.getNoneRightFieldMethod("Individual", individualId);
      HashMap entityFieldRights = local.getNoneRightFieldMethod("Entity", individualId);

      Iterator it = individualCollection.iterator();

      while (it.hasNext())
      {
View Full Code Here

      cvdl.clearParameters();


      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome home = (AuthorizationLocalHome)ic.lookup("local/Authorization");
      AuthorizationLocal local =  home.create();

      HashMap groupFieldRights = local.getNoneRightFieldMethod("Group", individualId);


      Collection v = null;

      /* Added for Advance Search  */
 
View Full Code Here

TOP

Related Classes of com.centraview.administration.authorization.AuthorizationLocal

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.