Examples of SystemUserRoleImpl


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

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

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

            {
              if(logger.isInfoEnabled())
                logger.info("Trying to create:" + systemUserVO.getUserName() + "/" + roleName);
        try
        {
          SystemUserRoleImpl userRole = new SystemUserRoleImpl();
          userRole.setUserName(""+systemUserVO.getUserName());
          userRole.setRoleName(roleName);
       
          db.create(userRole);
        }
        catch (PersistenceException e)
        {
View Full Code Here

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

    public void addUser(String roleName, String userName, Database db) throws ConstraintException, SystemException, Exception
    {
      if(userName != null)
    {
        SystemUserRoleImpl sur = new SystemUserRoleImpl();
        sur.setUserName(userName);
        sur.setRoleName(roleName);
       
        db.create(sur);
    }
    }
View Full Code Here

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

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

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

          oql.bind(roleName);
         
          QueryResults results = oql.execute();
        while (results.hasMore())
            {
          SystemUserRoleImpl sur = (SystemUserRoleImpl)results.nextElement();
          db.remove(sur);
            }
       
        results.close();
        oql.close();
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.