Package de.iritgo.aktera.usergroupmgr

Examples of de.iritgo.aktera.usergroupmgr.UserMgrException


      pf = (PersistentFactory) getService(PersistentFactory.ROLE);
      myUser = pf.create("keel.user");
    }
    catch (ServiceException e)
    {
      throw new UserMgrException(e);
    }
    catch (PersistenceException e)
    {
      throw new UserMgrException(e);
    }

    return myUser;
  }
View Full Code Here


    {
      user = (User) getService(User.ROLE, "persist-user");
    }
    catch (ServiceException e)
    {
      throw new UserMgrException("Error getting user service from container", e);
    }

    user.set(User.Property.NAME, name);
    user.set(User.Property.PASSWORD, password);
    user.set(User.Property.EMAIL, email);
View Full Code Here

        group = createGroupFromPersistent(g);
      }
    }
    catch (PersistenceException e)
    {
      throw new UserMgrException("Error from underlying persistence engine while finding user", e);
    }
    catch (ServiceException e)
    {
      throw new UserMgrException("Internal error getting user service while finding user", e);
    }

    return group;
  }
View Full Code Here

      pf = (PersistentFactory) getService(PersistentFactory.ROLE);
      myGroup = pf.create("keel.usergroup");
    }
    catch (ServiceException e)
    {
      throw new UserMgrException(e);
    }
    catch (PersistenceException e)
    {
      throw new UserMgrException(e);
    }

    return myGroup;
  }
View Full Code Here

        groupList.add(nextGroup);
      }
    }
    catch (PersistenceException e)
    {
      throw new UserMgrException("Error from underlying persistence engine while adding group", e);
    }
    catch (ServiceException e)
    {
      throw new UserMgrException("Internal error getting user service while adding group", e);
    }

    Group[] type =
    {};
View Full Code Here

      g.add();
      newGroup = createGroupFromPersistent(g);
    }
    catch (PersistenceException e)
    {
      throw new UserMgrException("Error from underlying persistence engine while adding group", e);
    }
    catch (ServiceException e)
    {
      throw new UserMgrException("Internal error getting user service while adding group", e);
    }

    return newGroup;
  }
View Full Code Here

      {
        g.delete();
      }
      else
      {
        throw new UserMgrException("Cannot delete, group not found");
      }
    }
    catch (PersistenceException e)
    {
      throw new UserMgrException("Error from underlying persistence engine while deleting group", e);
    }

    return true;
  }
View Full Code Here

        g.setField(FLD_DESCRIPTION, group.get(Group.Property.DESCRIPTION));
        g.update();
      }
      else
      {
        throw new UserMgrException("Cannot update, group not found");
      }
    }
    catch (PersistenceException e)
    {
      throw new UserMgrException("Error from underlying persistence engine while updating group", e);
    }

    return true;
  }
View Full Code Here

      pf = (PersistentFactory) getService(PersistentFactory.ROLE);
      myGroupMembers = pf.create("keel.groupmembers");
    }
    catch (ServiceException e)
    {
      throw new UserMgrException(e);
    }
    catch (PersistenceException e)
    {
      throw new UserMgrException(e);
    }

    return myGroupMembers;
  }
View Full Code Here

        userList.add(nextUser);
      }
    }
    catch (PersistenceException e)
    {
      throw new UserMgrException("Error from underlying persistence engine while listing users", e);
    }

    User[] type =
    {};
View Full Code Here

TOP

Related Classes of de.iritgo.aktera.usergroupmgr.UserMgrException

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.