Examples of Manager


Examples of org.apache.catalina.Manager

               SecurityAssociationActions.pushRunAsIdentity(runAsIdentity);
            }
            userPrincipal.set(caller);
           
            // If there is a session, get the tomcat session for the principal
            Manager manager = container.getManager();
            if (manager != null && hsession != null)
            {
               try
               {
                  session = manager.findSession(hsession.getId());
               }
               catch (IOException ignore)
               {
               }
            }
View Full Code Here

Examples of org.apache.cayenne.testdo.inherit.Manager

        Department d3 = context.newObject(Department.class);
        d3.setName("d3");

        context.commitChanges();

        Manager m1 = context.newObject(Manager.class);
        m1.setName("m1");
        m1.setPersonType("EM");

        Manager m2 = context.newObject(Manager.class);
        m2.setName("m2");
        m2.setPersonType("EM");

        Manager m3 = context.newObject(Manager.class);
        m3.setName("m3");
        m3.setPersonType("EM");

        Address a1 = context.newObject(Address.class);
        m1.addToAddresses(a1);

        Address a2 = context.newObject(Address.class);
        m2.addToAddresses(a2);

        Address a3 = context.newObject(Address.class);
        m3.addToAddresses(a3);

        d1.addToEmployees(m1);
        d1.addToEmployees(m2);
        d3.addToEmployees(m3);
View Full Code Here

Examples of org.apache.cocoon.sitemap.Manager

        this.componentManager.initialize();

        getLogger().debug("Setting up the sitemap.");
        // Create the sitemap
        Configuration sconf = conf.getChild("sitemap");
        this.sitemapManager = new Manager();
        this.sitemapManager.setLogger(getLogger());
        this.sitemapManager.contextualize(this.context);
        this.sitemapManager.compose(this.componentManager);
        this.sitemapManager.configure(conf);
        this.sitemapFileName = sconf.getAttribute("file");
View Full Code Here

Examples of org.apache.cocoon.webapps.authentication.components.Manager

        } else {
           throw new ProcessingException("Unknown mode " + modeString);
        }

        // logout
        Manager authManager = null;
        try {
            RequestState state = RequestState.getState();
           
            authManager = (Manager) this.manager.lookup(Manager.ROLE);
            final String handlerName = par.getParameter("handler",
                                                         (state == null ? null : state.getHandlerName()));
            if ( null == handlerName )
                throw new ProcessingException("LogoutAction requires at least the handler parameter.");
            authManager.logout( handlerName , mode );
        } finally {
            this.manager.release( (Component)authManager );
        }

        if (this.getLogger().isDebugEnabled() ) {
View Full Code Here

Examples of org.apache.karaf.shell.api.action.lifecycle.Manager

    public String getDiscoveryResource() {
        return "META-INF/services/org/apache/karaf/shell/commands";
    }

    protected void discoverCommands(Session session, ClassLoader cl, String resource) throws IOException, ClassNotFoundException {
        Manager manager = new ManagerImpl(session.getRegistry(), session.getFactory().getRegistry(), true);
        Enumeration<URL> urls = cl.getResources(resource);
        while (urls.hasMoreElements()) {
            URL url = urls.nextElement();
            BufferedReader r = new BufferedReader(new InputStreamReader(url.openStream()));
            String line = r.readLine();
            while (line != null) {
                line = line.trim();
                if (line.length() > 0 && line.charAt(0) != '#') {
                    final Class<?> actionClass = cl.loadClass(line);
                    manager.register(actionClass);
                }
                line = r.readLine();
            }
            r.close();
        }
View Full Code Here

Examples of org.apache.olingo.odata2.ref.model.Manager

      Room room = dataContainer.createRoom();
      room.setSeats(0);
      room.setVersion(0);
      return room;
    } else if (ENTITYSET_1_4.equals(entitySet.getName())) {
      Manager manager = dataContainer.createManager();
      manager.setAge(0);
      manager.setLocation(new Location(null, null, null));
      return manager;
    } else if (ENTITYSET_1_5.equals(entitySet.getName())) {
      return dataContainer.createBuilding();
    } else if (ENTITYSET_2_1.equals(entitySet.getName())) {
      return dataContainer.createPhoto(HttpContentType.APPLICATION_OCTET_STREAM);
View Full Code Here

Examples of org.apache.openjpa.persistence.inheritance.entity.Manager

    super.setUp(CLEAR_TABLES, Department.class, Employee.class,
        PTEmployee.class, FTEmployee.class, Manager.class);

    EntityManager em = emf.createEntityManager();
    em.getTransaction().begin();
        Manager m = new Manager();
        m.setId(1);
        m.setFirstName("mf1");
        m.setLastName("ml1");
        m.setSalary(1000000);
        m.setVacationDays(20);
               
        Department d = new Department();
        d.setId(1);
        d.setDepartmentName("d1");
        d.setDepartmentManager(m);
        m.setDepartment(d);
       
        Employee e1 = new Employee();
        e1.setId(2);
        e1.setFirstName("ef1");
        e1.setLastName("el1");
View Full Code Here

Examples of org.apache.tomcat.Manager

     *
     * @param manager The newly associated Manager
     */
    public void setManager(Manager manager) {

  Manager oldManager = this.manager;
  this.manager = manager;
  if (this.manager != null)
      this.manager.setContainer(this);
  support.firePropertyChange("manager", oldManager, this.manager);

View Full Code Here

Examples of org.castor.cpa.test.framework.xml.Manager

        Transaction trans = _transactions.get(tx);
       
        if (trans.getMode() == TransactionModeType.LOCAL) {
            return JDOConfFactory.createLocalTransactionDemarcation();
        } else if (trans.getMode() == TransactionModeType.GLOBAL) {
            Manager manager = trans.getManager();
            if (manager == null) {
                throw new CPAConfigException("No manager definition found "
                        + "in global transaction config '" + tx + "'.");
            }
           
            String name = manager.getName();
            if (name == null) {
                throw new CPAConfigException("No manager name specified "
                        + "in global transaction config '" + tx + "'.");
            }
           
            Properties props = new Properties();
            for (int i = 0; i < manager.getParamCount(); i++) {
                Param param = manager.getParam(i);
                props.put(param.getName(), param.getValue());
            }
           
            return JDOConfFactory.createGlobalTransactionDemarcation(name, props);
        } else {
View Full Code Here

Examples of org.cipango.j2ee.session.Manager

   
    protected void setUpDistributableSessionManager(ClassLoader loader)
    {
        try
        {
            Manager sm = getDistributableSessionManager();
            Store store=sm.getStore();
            if(store instanceof AbstractReplicatedStore)
                ((AbstractReplicatedStore)store).setLoader(loader);
            if(_timeOutPresent)
                sm.setMaxInactiveInterval(_timeOutMinutes*60);
            getSessionHandler().setSessionManager(sm);
        }
        catch(Exception e)
        {
          Log.warn("could not set up Distributable HttpSession Manager - using local one",e);
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.