Examples of RoleManager


Examples of edu.uga.galileo.voci.model.RoleManager

   *            The url command.
   */
  private void listRoles(HttpServletRequest request,
      HttpServletResponse response, Command command) {
    ArrayList<Role> roleList = new ArrayList<Role>();
    RoleManager roleManager = new RoleManager();

    try {
      roleList = roleManager.getRoleList(new ProjectManager()
          .getProjectID(command.getProject()));
    } catch (NoSuchProjectException ex) {
      Logger
          .error("\n\n Could not retrieve projectId - RoleServlet.listRoles() \n\n");
      request
View Full Code Here

Examples of eu.planets_project.ifr.core.security.api.services.RoleManager

   * @return A UserManager, as discovered via JNDI.
   */
  public static RoleManager getPlanetsRoleManager() {
    try{
      Context jndiContext = new javax.naming.InitialContext();
      RoleManager rm = (RoleManager) PortableRemoteObject.narrow(
          jndiContext.lookup("planets-project.eu/RoleManager/remote"), RoleManager.class);
      return rm;
    }catch (NamingException e) {
      log.severe("Failure during lookup of the UserManager PortableRemoteObject: "+e.toString());
      return null;
View Full Code Here

Examples of net.sourceforge.ganttproject.roles.RoleManager

    }

    /** This method check if the value has changed, and assk for commit changes. */
    public boolean applyChanges(boolean askForApply) {
        System.err.println("[RolesSettingsPanel] applyChanges(): ");
        RoleManager roleManager = myRolesModel.getRoleManager();
        bHasChange = myRolesModel.hasChanges();
        if (!bHasChange) {
            System.err
                    .println("[RolesSettingsPanel] applyChanges(): no changes");
            return bHasChange;
View Full Code Here

Examples of net.sourceforge.ganttproject.roles.RoleManager

        }

        void enter() throws IOException {
            GPParser opener = myParserFactory.newParser();
            ResourceManager hrManager = getHumanResourceManager();
            RoleManager roleManager = getRoleManager();
            TaskManager taskManager = getTaskManager();
            ResourceTagHandler resourceHandler = new ResourceTagHandler(
                    hrManager, roleManager, myProject.getResourceCustomPropertyManager());
            DependencyTagHandler dependencyHandler = new DependencyTagHandler(
                    opener.getContext(), taskManager, getUIFacade());
View Full Code Here

Examples of net.sourceforge.ganttproject.roles.RoleManager

    private void saveAssignments(TransformerHandler handler) throws SAXException {
        new AssignmentSaver().save(getProject(), handler);
    }
    private void saveRoles(TransformerHandler handler) throws SAXException {
        AttributesImpl attrs = new AttributesImpl();
        RoleManager roleManager = getProject().getRoleManager();
        RoleSet[] roleSets = roleManager.getRoleSets();
        for (int i = 0; i < roleSets.length; i++) {
            RoleSet next = roleSets[i];
            if (next.isEnabled()) {
                addAttribute("roleset-name", next.getName(), attrs);
                emptyElement("roles", attrs, handler);
            }
        }
        //
        RoleSet projectRoleSet = roleManager.getProjectRoleSet();
        if (!projectRoleSet.isEmpty()) {
            startElement("roles", attrs, handler);
            Role[] projectRoles = projectRoleSet.getRoles();
            for (int i = 0; i < projectRoles.length; i++) {
                Role next = projectRoles[i];
View Full Code Here

Examples of net.sourceforge.ganttproject.roles.RoleManager

    public TaskManager getTaskManager() {
        return myTaskManager;
    }

    public RoleManager getRoleManager() {
        RoleManager result = (RoleManager) managerHash.get(ROLE_MANAGER_ID);
        if (result == null) {
            result = RoleManager.Access.getInstance();
            managerHash.put(ROLE_MANAGER_ID, result);
        }
        return result;
View Full Code Here

Examples of org.apache.avalon.excalibur.component.RoleManager

     *
     * @return the role manager
     */
    protected RoleManager createRoleManager() throws Exception
    {
        RoleManager roles = new DefaultRoleManager();

        LifecycleHelper.setupComponent(roles,
            getLogger(),
            this.context,
            this.manager,
View Full Code Here

Examples of org.apache.avalon.excalibur.component.RoleManager

     *
     * @return the role manager
     */
    protected RoleManager createRoleManager() throws Exception
    {
        RoleManager roles = new DefaultRoleManager();

        LifecycleHelper.setupComponent(roles,
            getLogger(),
            this.context,
            this.manager,
View Full Code Here

Examples of org.apache.avalon.excalibur.component.RoleManager

     *
     * @return the role manager
     */
    protected RoleManager createRoleManager() throws Exception
    {
        RoleManager roles = new DefaultRoleManager(this.parentRoleManager);

        LifecycleHelper.setupComponent(roles,
            getLogger(),
            this.context,
            this.manager,
View Full Code Here

Examples of org.apache.avalon.excalibur.component.RoleManager

     *
     * @return the role manager
     */
    protected RoleManager createRoleManager() throws Exception
    {
        RoleManager roles = new DefaultRoleManager(this.parentRoleManager);

        LifecycleHelper.setupComponent(roles,
            getLogger(),
            this.context,
            this.manager,
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.