Package com.centraview.administration.authorization

Examples of com.centraview.administration.authorization.ModuleFieldRightMatrix


    public int doEndTag() throws JspException {


    HttpSession session = ((HttpServletRequest)(pageContext.getRequest())).getSession();

        ModuleFieldRightMatrix mfrmx = ((UserObject)session.getAttribute("userobject")).getUserPref().getModuleAuthorizationMatrix();
    HashMap hm = mfrmx.getFieldRights(getModulename());

    if (hm != null && hm.containsKey(getFieldname()))
    {
      fieldRight =  ((Integer)hm.get(getFieldname())).intValue();
    }
View Full Code Here


     */
    public int doStartTag() throws JspException
  {
    HttpSession session = ((HttpServletRequest)(pageContext.getRequest())).getSession();
   
        ModuleFieldRightMatrix mfrmx = ((UserObject)session.getAttribute("userobject")).getUserPref().getModuleAuthorizationMatrix();
    HashMap hm = mfrmx.getFieldRights(getModulename());
   
    if (hm != null && hm.containsKey(getFieldname()))
    {
      fieldRight =  ((Integer)hm.get(getFieldname())).intValue();
    }
View Full Code Here

     */
    public int doStartTag() throws JspException {

      HttpSession session = ((HttpServletRequest)(pageContext.getRequest())).getSession();
     
      ModuleFieldRightMatrix mfrmx = ((UserObject)session.getAttribute("userobject")).getUserPref().getModuleAuthorizationMatrix();
      HashMap hm = mfrmx.getFieldRights(getModulename());
     
      if (hm != null && hm.containsKey(getFieldname()))
      {
        fieldRight =  ((Integer)hm.get(getFieldname())).intValue();
      }
View Full Code Here

        AuthorizationHome authHome = (AuthorizationHome)CVUtility.getHomeObject(
            "com.centraview.administration.authorization.AuthorizationHome", "Authorization");
        Authorization authRemote = authHome.create();
        authRemote.setDataSource(this.dataSource);

        ModuleFieldRightMatrix rightsMatrix = authRemote.getUserSecurityProfileMatrix(userObject
            .getIndividualID());

        if (!rightsMatrix.isModuleVisible("Synchronize")) {
          return (false);
        }

        userPrefs.setModuleAuthorizationMatrix(rightsMatrix);
        userObject.setUserPref(userPrefs);
View Full Code Here

    setDisabled(false);
    HttpSession session = ((HttpServletRequest)pageContext.getRequest()).getSession();
    UserObject userObject = (UserObject)session.getAttribute("userobject");

    ModuleFieldRightMatrix modulefieldrightmatrix = userObject.getUserPref().getModuleAuthorizationMatrix();

    HashMap hashmap = modulefieldrightmatrix.getFieldRights(getModulename());
    if(hashmap != null && hashmap.containsKey(getFieldname()))
      fieldRight = ((Integer)hashmap.get(getFieldname())).intValue();

    int individualID = userObject.getIndividualID();
View Full Code Here

      sfremote.setDataSource(dataSource);

      // get the list of individuals from the ejb layer
      Collection individualList = sfremote.getIndividualList(individualIDsession);

      ModuleFieldRightMatrix rightsMatrix = userObject.getUserPref().getModuleAuthorizationMatrix();
      HashMap indivFieldRights = rightsMatrix.getFieldRights("Individual");
      HashMap entityFieldRights = rightsMatrix.getFieldRights("Entity");

      // individualList shouldn't be null. If it is, there's a problem.
      // SyncFacadeEJB should always return a valid collection (an
      // empty Collection is still a valid Collection, but null is not).
      if (individualList != null)
View Full Code Here

     */
    protected String renderSelectStartElement() throws JspException {

      HttpSession session = ((HttpServletRequest)(pageContext.getRequest())).getSession();

      ModuleFieldRightMatrix mfrmx = ((UserObject)session.getAttribute("userobject")).getUserPref().getModuleAuthorizationMatrix();
      HashMap hm = mfrmx.getFieldRights(getModulename());
      //System.out.println("[DEBUG] [CVSelectTag]: SandeepJ- matrix in cvselect : "+hm);
      if (hm != null && hm.containsKey(getFieldname()))
      {
        fieldRight =  ((Integer)hm.get(getFieldname())).intValue();
      }
View Full Code Here

    return objUIVO;
  }

  public static ModuleFieldRightMatrix getUserModuleRight(String moduleName, int individualId, boolean byListCol, String dataSource)
  {
    ModuleFieldRightMatrix retVal = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome home = (AuthorizationLocalHome) ic.lookup("local/Authorization");
      AuthorizationLocal local = home.create();
      local.setDataSource(dataSource);
View Full Code Here

     * @since Struts 1.1
     */
    protected String renderTextareaElement() throws JspException {

        HttpSession httpsession = ((HttpServletRequest)pageContext.getRequest()).getSession();
        ModuleFieldRightMatrix modulefieldrightmatrix = ((UserObject)httpsession.getAttribute("userobject")).getUserPref().getModuleAuthorizationMatrix();
        HashMap hashmap = modulefieldrightmatrix.getFieldRights(getModulename());
        if(hashmap != null && hashmap.containsKey(getFieldname()))
            fieldRight = ((Integer)hashmap.get(getFieldname())).intValue();
     
        StringBuffer results = new StringBuffer("<textarea");
       
View Full Code Here

        throws JspException {
   
    //Added by shilpa.
        HttpSession session = ((HttpServletRequest)(pageContext.getRequest())).getSession();
       
        ModuleFieldRightMatrix mfrmx = ((UserObject)session.getAttribute("userobject")).getUserPref().getModuleAuthorizationMatrix();
        HashMap hm = mfrmx.getFieldRights(getModulename());
       
        if (hm != null && hm.containsKey(getFieldname()))
        {
          fieldRight =  ((Integer)hm.get(getFieldname())).intValue();
        }
View Full Code Here

TOP

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

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.