Examples of InfoGluePrincipal


Examples of org.infoglue.cms.security.InfoGluePrincipal

   */
   public int doEndTag() throws JspException
   {
     try
     {
       final InfoGluePrincipal principal = UserControllerProxy.getController().getUser(principalName);
      
       final DynamicWebservice ws = new DynamicWebservice(principal);
     
       ws.setTargetEndpointAddress(targetEndpointAddress);
       ws.setOperationName(operationName);
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

   */
   public int doEndTag() throws JspException
   {
     try
     {
       final InfoGluePrincipal principal = UserControllerProxy.getController().getUser(principalName);
      
       final DynamicWebservice ws = new DynamicWebservice(principal);
     
       ws.setTargetEndpointAddress(targetEndpointAddress);
       ws.setOperationName(operationName);
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

       GenericDispatcher gd = new GenericDispatcher(actionName, false);
       ActionContext context = gd.prepareContext();
      
       //logger.info("actionName:" + actionName);

       InfoGluePrincipal principal = (InfoGluePrincipal)aRequest.getSession().getAttribute("infogluePrincipal");
       if(principal != null)
         aRequest.setAttribute("infoglueRemoteUser", principal.getName());

       aRequest.setAttribute("webwork.request_url", aRequest.getRequestURL());

       ServletActionContext.setContext(aRequest, aResponse, getServletContext(), actionName);
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

    public InfoGluePrincipal getPrincipal(String userName)
    {
        if(userName == null || userName.equals(""))
            return null;
       
        InfoGluePrincipal infoGluePrincipal = null;
       
        try
        {
            infoGluePrincipal = UserControllerProxy.getController(getDatabase()).getUser(userName);
        }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

  {
    String value = "";
   
    try
    {
        InfoGluePrincipal infoGluePrincipal = this.getPrincipal();
        SiteNodeVO siteNodeVO = getSiteNode();
        value = InfoGluePrincipalControllerProxy.getController().getPrincipalPropertyValue(this.getDatabase(), infoGluePrincipal, propertyName, this.languageId, siteNodeVO.getRepositoryId(), USE_LANGUAGE_FALLBACK, escapeSpecialCharacters, findLargestValue);
    }
    catch(Exception e)
    {
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

  {
    String value = "";
   
    try
    {
        InfoGluePrincipal infoGluePrincipal = this.getPrincipal();
        SiteNodeVO siteNodeVO = getSiteNode();
        value = InfoGluePrincipalControllerProxy.getController().getPrincipalPropertyValue(this.getDatabase(), infoGluePrincipal, propertyName, languageId, siteNodeVO.getRepositoryId(), USE_LANGUAGE_FALLBACK, escapeSpecialCharacters, findLargestValue);
    }
    catch(Exception e)
    {
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

          /*
          String contentKey = "" + content.getValueObject().getId();
          CacheController.cacheObjectInAdvancedCache("contentCache", contentKey, content.getValueObject(), new String[]{CacheController.getPooledString(1, content.getValueObject().getId())}, true);
          */
          //if(ContentDeliveryController.getContentDeliveryController().isValidContent(this.getDatabase(), content.getId(), localLanguageId, USE_LANGUAGE_FALLBACK, true, getPrincipal(), this.deliveryContext))
          InfoGluePrincipal principal = UserControllerProxy.getController(getDatabase()).getUser(userName);
          if(ContentDeliveryController.getContentDeliveryController().isValidContent(this.getDatabase(), content.getValueObject(), localLanguageId, USE_LANGUAGE_FALLBACK, true, principal, this.deliveryContext, false, false))
          {
            if(startNodeId != null)
            {
              if(hasNodeIdAsParent(content.getContentId(), startNodeId))
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

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

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

Examples of org.infoglue.cms.security.InfoGluePrincipal

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

                if(cmsPrincipal != null)
                  hasUserPageAccess = AccessRightController.getController().getIsPrincipalAuthorized((InfoGluePrincipal)principal, interceptionPointName, 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)
              {
                InfoGluePrincipal cmsPrincipal = getPrincipal(cmsUserName);

                if(cmsPrincipal != null && AccessRightController.getController().getIsPrincipalAuthorized(cmsPrincipal, "Content.Read", protectedContentId.toString()))
                  hasUserContentAccess = true;               
              }
          }
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.