Package org.infoglue.cms.entities.management.impl.simple

Examples of org.infoglue.cms.entities.management.impl.simple.SystemUserGroupImpl


    public void addUser(String groupName, String userName, Database db) throws ConstraintException, SystemException, Exception
    {
      if(groupName != null && userName != null)
    {
        SystemUserGroupImpl sug = new SystemUserGroupImpl();
        sug.setUserName(userName);
        sug.setGroupName(groupName);
       
        db.create(sug);
    }
    }
View Full Code Here


      oql.bind(userName);
     
      QueryResults results = oql.execute();
    while (results.hasMore())
        {
      SystemUserGroupImpl sur = (SystemUserGroupImpl)results.nextElement();
      db.remove(sur);
        }
   
    results.close();
    oql.close();
View Full Code Here

          oql.bind(groupName);
         
          QueryResults results = oql.execute();
        while (results.hasMore())
            {
          SystemUserGroupImpl sur = (SystemUserGroupImpl)results.nextElement();
          logger.info("Deleting " + sur.getUserName() + "/" + sur.getGroupName());
          db.remove(sur);
            }
       
        results.close();
        oql.close();
View Full Code Here

      oql.bind(userName);
     
      QueryResults results = oql.execute();
    while (results.hasMore())
        {
      SystemUserGroupImpl sur = (SystemUserGroupImpl)results.nextElement();
      if(groupNamesToKeep != null && groupNamesToKeep.contains(sur.getGroupName()))
      {
        logger.info("Keeping " + sur.getUserName() + "/" + sur.getGroupName());
        groupNamesToKeep.remove(sur.getGroupName());
      }
      else
      {
        logger.info("Deleting " + sur.getUserName() + "/" + sur.getGroupName());
        db.remove(sur);
      }
    }
   
    results.close();
View Full Code Here

            {
              if(logger.isInfoEnabled())
                logger.info("Trying to create:" + systemUserVO.getUserName() + "/" + groupName);
        try
        {
          SystemUserGroupImpl userGroup = new SystemUserGroupImpl();
          userGroup.setUserName(""+systemUserVO.getUserName());
          userGroup.setGroupName(groupName);
       
          db.create(userGroup);
        }
        catch (PersistenceException e)
        {
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.management.impl.simple.SystemUserGroupImpl

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.