Examples of InfoGluePrincipal


Examples of org.infoglue.cms.security.InfoGluePrincipal

          if(getIsDecorated() && getDeliveryContext().getConsiderEditorInDecoratedMode())
          {
            String cmsUserName = (String)getHttpServletRequest().getSession().getAttribute("cmsUserName");
            if(cmsUserName != null)
            {
              InfoGluePrincipal cmsPrincipal = getPrincipal(cmsUserName);

              if(cmsPrincipal != null && AccessRightController.getController().getIsPrincipalAuthorized(cmsPrincipal, action, protectedContentId.toString()))
                hasUserContentAccess = true;               
            }
        }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

          if(!hasUserPageWriteAccess && getIsDecorated() && getDeliveryContext().getConsiderEditorInDecoratedMode())
            {
              String cmsUserName = (String)getHttpServletRequest().getSession().getAttribute("cmsUserName");
              if(cmsUserName != null)
              {
                InfoGluePrincipal cmsPrincipal = getPrincipal(cmsUserName);

                if(cmsPrincipal != null)
                  hasUserPageWriteAccess = AccessRightController.getController().getIsPrincipalAuthorized((InfoGluePrincipal)principal, "SiteNodeVersion.Write", protectedSiteNodeVersionId.toString());
              }
          }   
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

        if(getIsDecorated() && getDeliveryContext().getConsiderEditorInDecoratedMode())
          {
            String cmsUserName = (String)getHttpServletRequest().getSession().getAttribute("cmsUserName");
            if(cmsUserName != null && !cmsUserName.equals(infoGluePrincipal.getName()))
            {
              InfoGluePrincipal cmsPrincipal = getPrincipal(cmsUserName);
             
              if(cmsPrincipal != null && AccessRightController.getController().getIsPrincipalAuthorized(cmsPrincipal, interceptionPointName, extraParameters))
                hasUserContentAccess = true;
            }
        }   
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

  {
      List workflowSteps = null;
     
      try
      {
          InfoGluePrincipal infoGluePrincipal = this.getPrincipal();
          if(infoGluePrincipal == null)
          {
          Map arguments = new HashMap();
          arguments.put("j_username", CmsPropertyHandler.getAnonymousUser());
          arguments.put("j_password", CmsPropertyHandler.getAnonymousPassword());
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

  {
      List workflowSteps = null;
     
      try
      {
          InfoGluePrincipal infoGluePrincipal = this.getPrincipal();
          if(infoGluePrincipal == null)
          {
              Map arguments = new HashMap();
              arguments.put("j_username", CmsPropertyHandler.getAnonymousUser());
          arguments.put("j_password", CmsPropertyHandler.getAnonymousPassword());
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

  {
      List workflowSteps = null;
     
      try
      {
          InfoGluePrincipal infoGluePrincipal = this.getPrincipal();
          if(infoGluePrincipal == null)
          {
              Map arguments = new HashMap();
              arguments.put("j_username", CmsPropertyHandler.getAnonymousUser());
          arguments.put("j_password", CmsPropertyHandler.getAnonymousPassword());
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

    try
    {
      SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeId);
      LanguageVO masterLanguageVO = LanguageController.getController().getMasterLanguage(siteNodeVO.getRepositoryId());
     
      InfoGluePrincipal principal = this.getTemplateController().getPrincipal();
      String cmsUserName = (String)this.getTemplateController().getHttpServletRequest().getSession().getAttribute("cmsUserName");
      if(cmsUserName != null)
        principal = this.getTemplateController().getPrincipal(cmsUserName);
         
      List<ContentVO> sortedPageTemplates = PageTemplateController.getController().getPageTemplates(principal, masterLanguageVO.getId());
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

    try
    {
      String cmsBaseUrl = CmsPropertyHandler.getCmsBaseUrl();
      String componentEditorUrl = CmsPropertyHandler.getComponentEditorUrl();

      InfoGluePrincipal principal = templateController.getPrincipal();
        String cmsUserName = (String)templateController.getHttpServletRequest().getSession().getAttribute("cmsUserName");
        if(cmsUserName != null && !CmsPropertyHandler.getAnonymousUser().equalsIgnoreCase(cmsUserName))
        {
          InfoGluePrincipal newPrincipal = templateController.getPrincipal(cmsUserName);
          if(newPrincipal != null)
            principal = newPrincipal;
        }
       
        Locale locale = templateController.getLocaleAvailableInTool(principal);
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

        else if(!disableSlotDecoration)
            subComponentString += "<div id=\"Comp" + component.getId() + "_" + id + "\" class=\"componentDiv " + slotBean.getLimitationClasses() + "\" onmouseup=\"javascript:assignComponent('" + siteNodeId + "', '" + languageId + "', '" + contentId + "', '" + component.getId() + "', '" + id + "', '" + false + "', '" + slotBean.getAllowedComponentsArrayAsUrlEncodedString() + "', '" + slotBean.getDisallowedComponentsArrayAsUrlEncodedString() + "', '" + slotBean.getAllowedComponentGroupsArrayAsUrlEncodedString() + "', '');\">";
           
        List subComponents = getInheritedComponents(getDatabase(), templateController, component, templateController.getSiteNodeId(), id, inherit);

          InfoGluePrincipal principal = templateController.getPrincipal();
          String cmsUserName = (String)templateController.getHttpServletRequest().getSession().getAttribute("cmsUserName");
          if(cmsUserName != null)
          {
            InfoGluePrincipal newPrincipal = templateController.getPrincipal(cmsUserName);
            if(newPrincipal != null)
              principal = newPrincipal;
          }
         
        String clickToAddHTML = "";
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

      StringBuffer sb = new StringBuffer();
    Timer timer = new Timer();
    timer.setActive(false);

    InfoGluePrincipal principal = templateController.getPrincipal();
    String cmsUserName = (String)templateController.getHttpServletRequest().getSession().getAttribute("cmsUserName");
      if(cmsUserName != null && !CmsPropertyHandler.getAnonymousUser().equalsIgnoreCase(cmsUserName))
      {
        InfoGluePrincipal newPrincipal = templateController.getPrincipal(cmsUserName);
        if(newPrincipal != null)
          principal = newPrincipal;
      }
   
    //Locale locale = templateController.getLocale();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.