Examples of InfoGluePrincipal


Examples of org.infoglue.cms.security.InfoGluePrincipal

   * This method creates a div for the components properties.
   */
 
  private String getComponentTasksDiv(Integer repositoryId, Integer siteNodeId, Integer languageId, Integer contentId, InfoGlueComponent component, int position, int maxPosition, Document document, TemplateController templateController) throws Exception
  {   
      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;
      }
     
    boolean hasAccessToAccessRights   = AccessRightController.getController().getIsPrincipalAuthorized(templateController.getDatabase(), principal, "ComponentEditor.ChangeSlotAccess", "");
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

   */
  //private static String componentPaletteDiv = null;
 
  private String getComponentPaletteDiv(Integer siteNodeId, Integer languageId, TemplateController templateController) throws Exception
  {   
    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;
      }
     
    //if(!templateController.getDeliveryContext().getShowSimple())
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

                 
                  //logger.info("RepositoryId.: "+repositoryId);
                  //logger.info("LanguageId...: "+languageId);
                  //logger.info("RequestURI...: "+requestURI);
     
                    InfoGluePrincipal infoGluePrincipal = (InfoGluePrincipal) httpSession.getAttribute("infogluePrincipal");
                    if (infoGluePrincipal == null)
                    {
                        try
                        {
                            infoGluePrincipal = (InfoGluePrincipal) CacheController.getCachedObject("userCache", "anonymous");
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

     
        String pageKey = this.nodeDeliveryController.getPageCacheKey(dbWrapper.getDatabase(), this.getHttpSession(), this.getRequest(), this.siteNodeId, this.languageId, this.contentId, browserBean.getUseragent(), this.getRequest().getQueryString(), "_" + this.showSimple + "_pagecomponentDecorated");

      templateController = getTemplateController(dbWrapper, getSiteNodeId(), getLanguageId(), getContentId(), getRequest(), (InfoGluePrincipal)this.principal, true);

        InfoGluePrincipal principal = templateController.getPrincipal();
        String cmsUserName = (String)templateController.getHttpServletRequest().getSession().getAttribute("cmsUserName");
        if(cmsUserName != null && !CmsPropertyHandler.getAnonymousUser().equalsIgnoreCase(cmsUserName))
          principal = templateController.getPrincipal(cmsUserName);

        //As this is the decorated view we need to cache personalized results due to access rights etc.
        if(principal != null && pageKey.indexOf(principal.getName()) == -1)
          pageKey = pageKey + "_" + principal.getName();

        if(logger.isInfoEnabled())
          logger.info("A pageKey:" + pageKey);

      if(logger.isInfoEnabled())
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

    }
   
    authorizationModule.setExtraProperties(extraProperties);
    logger.info("authorizerClass:" + authorizerClass + ":" + authorizationModule.getClass().getName());
   
    InfoGluePrincipal infoGluePrincipal = authorizationModule.getAuthorizedInfoGluePrincipal(userName);
    logger.info("infoGluePrincipal:" + infoGluePrincipal);
    if(infoGluePrincipal != null)
    {
      logger.info("roles:" + infoGluePrincipal.getRoles());
      logger.info("groups:" + infoGluePrincipal.getGroups());
    }
   
    return infoGluePrincipal;   
    }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

     
      try
      {
        beginTransaction(db);
     
          InfoGluePrincipal principal = this.getInfoGluePrincipal();
          String cmsUserName = (String)this.getHttpSession().getAttribute("cmsUserName");
            if(cmsUserName != null)
              principal = UserControllerProxy.getController(db).getUser(cmsUserName);
          else
            principal = (InfoGluePrincipal)this.getAnonymousPrincipal();
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

     
      try
      {
        beginTransaction(db);
     
          InfoGluePrincipal principal = this.getInfoGluePrincipal();
          String cmsUserName = (String)this.getHttpSession().getAttribute("cmsUserName");
          if(cmsUserName != null)
              principal = UserControllerProxy.getController(db).getUser(cmsUserName);
          else
            principal = (InfoGluePrincipal)this.getAnonymousPrincipal();
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

     
      try
      {
        beginTransaction(db);
     
        InfoGluePrincipal principal = this.getInfoGluePrincipal();
          String cmsUserName = (String)this.getHttpSession().getAttribute("cmsUserName");

          if(cmsUserName != null)
              principal = UserControllerProxy.getController(db).getUser(cmsUserName);
          else
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

     
      try
      {
        beginTransaction(db);
     
          InfoGluePrincipal principal = this.getInfoGluePrincipal();
          String cmsUserName = (String)this.getHttpSession().getAttribute("cmsUserName");
            if(cmsUserName != null)
              principal = UserControllerProxy.getController(db).getUser(cmsUserName);
          else
            principal = (InfoGluePrincipal)this.getAnonymousPrincipal();
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

      {
        String componentEditorUrl   = "" + CmsPropertyHandler.getComponentEditorUrl();
     
      if(html == null)
      {
        InfoGluePrincipal principal = getController().getPrincipal();
          String cmsUserName = (String)getController().getHttpServletRequest().getSession().getAttribute("cmsUserName");
          if(cmsUserName != null && !CmsPropertyHandler.getAnonymousUser().equalsIgnoreCase(cmsUserName))
            principal = getController().getPrincipal(cmsUserName);

        Locale locale = getController().getLocaleAvailableInTool(principal);
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.