Examples of InfoGluePrincipal


Examples of org.infoglue.cms.security.InfoGluePrincipal

    List groups = new ArrayList();
    groups.add(new InfoGlueGroup("administrators", "", null));
    groups.add(new InfoGlueGroup("cmsUser", "", null));

    InfoGluePrincipal p = new InfoGluePrincipal("mattias", "mattias", "Mattias", "Bogeblad", "mattias.bogeblad@gmail.com", roles, groups, false, null);
   
    return p;
  }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

    {
    Object result = null;
   
        try
        {
          InfoGluePrincipal principal = this.getInfoGluePrincipal();
          if(userName != null && !userName.equals(""))
            principal = new InfoGluePrincipal(userName, userName, userName, userName, "", null, null, null, false, null);
           
            final DynamicWebservice ws = new DynamicWebservice(principal);

            ws.setTargetEndpointAddress(endpointAddress);
            ws.setOperationName(operationName);
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

        logger.info("Getting all principals through webservice..");
        logger.info("***************************************");
       
        try
        {
            InfoGluePrincipal principal = UserControllerProxy.getController().getUser(userName);
           
            if(principal != null)
            {
            bean = new InfoGluePrincipalBean();
            bean.setName(principal.getName());
            bean.setDisplayName(principal.getDisplayName());
            bean.setEmail(principal.getEmail());
            bean.setFirstName(principal.getFirstName());
            bean.setLastName(principal.getLastName());
            bean.setAdministrator(false);
            bean.setMetaInformation(principal.getMetaInformation());
           
            List groups = new ArrayList();
            Iterator groupsListIterator = principal.getGroups().iterator();
              while(groupsListIterator.hasNext())
              {
                InfoGlueGroup group = (InfoGlueGroup)groupsListIterator.next();
                InfoGlueGroupBean groupBean = new InfoGlueGroupBean();
                groupBean.setName(group.getName());
                groupBean.setDisplayName(group.getDisplayName());
                groupBean.setDescription(group.getDescription());
                groups.add(groupBean)
              }
              bean.setGroups(groups);
 
            List roles = new ArrayList();
            Iterator rolesListIterator = principal.getRoles().iterator();
              while(rolesListIterator.hasNext())
              {
                InfoGlueRole role = (InfoGlueRole)rolesListIterator.next();
                InfoGlueRoleBean roleBean = new InfoGlueRoleBean();
                roleBean.setName(role.getName());
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

            List principalList = UserControllerProxy.getController().getAllUsers();

            Iterator principalListIterator = principalList.iterator();
            while(principalListIterator.hasNext())
            {
              InfoGluePrincipal principal = (InfoGluePrincipal)principalListIterator.next();
              InfoGluePrincipalBean bean = new InfoGluePrincipalBean();
              bean.setName(principal.getName());
              bean.setDisplayName(principal.getDisplayName());
              bean.setEmail(principal.getEmail());
              bean.setFirstName(principal.getFirstName());
              bean.setLastName(principal.getLastName());
              bean.setAdministrator(false);
              bean.setMetaInformation(principal.getMetaInformation());
             
              List groups = new ArrayList();
              Iterator groupsListIterator = principal.getGroups().iterator();
                while(groupsListIterator.hasNext())
                {
                  InfoGlueGroup group = (InfoGlueGroup)groupsListIterator.next();
                  InfoGlueGroupBean groupBean = new InfoGlueGroupBean();
                  groupBean.setName(group.getName());
                  groupBean.setDisplayName(group.getDisplayName());
                  groupBean.setDescription(group.getDescription());
                  groups.add(groupBean)
                }
                bean.setGroups(groups);

              List roles = new ArrayList();
              Iterator rolesListIterator = principal.getRoles().iterator();
                while(rolesListIterator.hasNext())
                {
                  InfoGlueRole role = (InfoGlueRole)rolesListIterator.next();
                  InfoGlueRoleBean roleBean = new InfoGlueRoleBean();
                  roleBean.setName(role.getName());
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

            List principalList = RoleControllerProxy.getController().getInfoGluePrincipals(roleName);

            Iterator principalListIterator = principalList.iterator();
            while(principalListIterator.hasNext())
            {
              InfoGluePrincipal principal = (InfoGluePrincipal)principalListIterator.next();
              InfoGluePrincipalBean bean = new InfoGluePrincipalBean();
              bean.setName(principal.getName());
              bean.setDisplayName(principal.getDisplayName());
              bean.setEmail(principal.getEmail());
              bean.setFirstName(principal.getFirstName());
              bean.setLastName(principal.getLastName());
              bean.setAdministrator(false);
              bean.setMetaInformation(principal.getMetaInformation());
             
              List groups = new ArrayList();
              Iterator groupsListIterator = principal.getGroups().iterator();
                while(groupsListIterator.hasNext())
                {
                  InfoGlueGroup group = (InfoGlueGroup)groupsListIterator.next();
                  InfoGlueGroupBean groupBean = new InfoGlueGroupBean();
                  groupBean.setName(group.getName());
                  groupBean.setDisplayName(group.getDisplayName());
                  groupBean.setDescription(group.getDescription());
                  groups.add(groupBean)
                }
                bean.setGroups(groups);

              List roles = new ArrayList();
              Iterator rolesListIterator = principal.getRoles().iterator();
                while(rolesListIterator.hasNext())
                {
                  InfoGlueRole role = (InfoGlueRole)rolesListIterator.next();
                  InfoGlueRoleBean roleBean = new InfoGlueRoleBean();
                  roleBean.setName(role.getName());
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

            List principalList = GroupControllerProxy.getController().getInfoGluePrincipals(groupName);

            Iterator principalListIterator = principalList.iterator();
            while(principalListIterator.hasNext())
            {
              InfoGluePrincipal principal = (InfoGluePrincipal)principalListIterator.next();
              InfoGluePrincipalBean bean = new InfoGluePrincipalBean();
              bean.setName(principal.getName());
              bean.setDisplayName(principal.getDisplayName());
              bean.setEmail(principal.getEmail());
              bean.setFirstName(principal.getFirstName());
              bean.setLastName(principal.getLastName());
              bean.setAdministrator(false);
              bean.setMetaInformation(principal.getMetaInformation());
             
              List groups = new ArrayList();
              Iterator groupsListIterator = principal.getGroups().iterator();
                while(groupsListIterator.hasNext())
                {
                  InfoGlueGroup group = (InfoGlueGroup)groupsListIterator.next();
                  InfoGlueGroupBean groupBean = new InfoGlueGroupBean();
                  groupBean.setName(group.getName());
                  groupBean.setDisplayName(group.getDisplayName());
                  groupBean.setDescription(group.getDescription());
                  groups.add(groupBean)
                }
                bean.setGroups(groups);

              List roles = new ArrayList();
              Iterator rolesListIterator = principal.getRoles().iterator();
                while(rolesListIterator.hasNext())
                {
                  InfoGlueRole role = (InfoGlueRole)rolesListIterator.next();
                  InfoGlueRoleBean roleBean = new InfoGlueRoleBean();
                  roleBean.setName(role.getName());
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

    {
    Object result = null;
   
        try
        {
          InfoGluePrincipal principal = this.getInfoGluePrincipal();
          if(userName != null && !userName.equals(""))
            principal = new InfoGluePrincipal(userName, userName, userName, userName, "", null, null, null, false, null);
           
          final DynamicWebservice ws = new DynamicWebservice(principal);

            ws.setTargetEndpointAddress(endpointAddress);
            ws.setOperationName(operationName);
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

  public InfoGluePrincipal getTestPrincipal()
  {
    //BasicMethodAccessManager.checkAccessToCall(new String[]{SubscriptionsJob.class.getName()}, "FUCK OFF - your attempt have been registered.");
   
    return new InfoGluePrincipal("TestUser", "none", "none", "none", new ArrayList(), new ArrayList(), true, null);
  }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

    if(contentTypeDefinitionVOList != null && contentTypeDefinitionVOList.size() > 0)
      this.contentTypeDefinitionVO = (ContentTypeDefinitionVO)contentTypeDefinitionVOList.get(0);
   
    logger.info("contentTypeDefinitionVO:" + contentTypeDefinitionVO.getName());
   
    InfoGluePrincipal infoGluePrincipal = UserControllerProxy.getController().getUser(userName);
    userPropertiesVOList = UserPropertiesController.getController().getUserPropertiesVOList(userName, this.languageId);
    if(userPropertiesVOList != null && userPropertiesVOList.size() > 0)
    {
      this.userPropertiesVO = (UserPropertiesVO)userPropertiesVOList.get(0);
      this.contentTypeDefinitionId = this.userPropertiesVO.getLanguageId();
View Full Code Here

Examples of org.infoglue.cms.security.InfoGluePrincipal

      if(userNames != null)
      {
        for(int i=0; i<userNames.length; i++)
        {
          String userName = userNames[i];
          InfoGluePrincipal principal = UserControllerProxy.getController().getUser(userName);
          if(usersAddresses.indexOf(principal.getEmail()) == -1)
          {
            if(usersAddresses.length() > 0)
              usersAddresses += ";";
           
            usersAddresses += principal.getEmail();
          }
        }
      }
     
      if(roleNames != null)
      {
        for(int i=0; i<roleNames.length; i++)
        {
          String roleName = roleNames[i];
         
          List principals = RoleControllerProxy.getController().getInfoGluePrincipals(roleName);
          Iterator principalsIterator = principals.iterator();
          while(principalsIterator.hasNext())
          {
            InfoGluePrincipal principal = (InfoGluePrincipal)principalsIterator.next();
            if(usersAddresses.indexOf(principal.getEmail()) == -1)
            {
              if(usersAddresses.length() > 0)
                usersAddresses += ";";
             
              usersAddresses += principal.getEmail();
            }
          }
        }
      }
     
      if(groupNames != null)
      { 
        for(int i=0; i<groupNames.length; i++)
        {
          String groupName = groupNames[i];
         
          List principals = GroupControllerProxy.getController().getInfoGluePrincipals(groupName);
          Iterator principalsIterator = principals.iterator();
          while(principalsIterator.hasNext())
          {
            InfoGluePrincipal principal = (InfoGluePrincipal)principalsIterator.next();
            if(usersAddresses.indexOf(principal.getEmail()) == -1)
            {
              if(usersAddresses.length() > 0)
                usersAddresses += ";";
             
              usersAddresses += principal.getEmail();
            }
          }
        }
      }
     
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.