Examples of Manager


Examples of business.entities.Manager

public class Company {
  private static List employees = new TreeList();
 
  public static void main(String[] args) {
    Manager manager = new Manager("Ospel", 1000000, 1000000000);
    Assistant assistant = new Assistant("Nobody", 10);

    employees.add(manager);
    employees.add(assistant);
   
    manager.setAssistant(assistant);
    manager.manage();
   
    System.out.println(manager.getSalary());
    System.out.println(assistant.getSalary());
   
    manager.charge();
    System.out.println(manager.getSalary());
  }
View Full Code Here

Examples of com.getperka.flatpack.domain.Manager

    toReturn.getAddress().setStreet("street");
    return toReturn;
  }

  protected Manager makeManager() {
    Manager toReturn = managers.get();
    toReturn.setName("Manager Name");
    toReturn.getAddress().setStreet("manager street");
    return toReturn;
  }
View Full Code Here

Examples of com.google.enterprise.connector.manager.Manager

   * @throws IOException
   */
  @Override
  protected void doGet(HttpServletRequest req, HttpServletResponse res)
      throws IOException {
    Manager manager = Context.getInstance().getManager();
    String typeName = req.getParameter(ServletUtil.XMLTAG_CONNECTOR_TYPE);
    String language = req.getParameter(ServletUtil.QUERY_PARAM_LANG);
    res.setContentType(ServletUtil.MIMETYPE_HTML);
    PrintWriter out = res.getWriter();

View Full Code Here

Examples of com.iCo6.IO.mini.file.Manager

     * @param database Database File Name, any extension can be used.
     */
    public Mini(String folder, String database) {
        this.database = database;
        this.folder = folder;
        this.Database = new Manager(this.folder, this.database, true);
        this.read();
    }
View Full Code Here

Examples of com.jcasey.controller.Manager

  private File bookFile;


  public JaxbAction(){
    linkController = new Manager();
  }
View Full Code Here

Examples of com.xmultra.manager.Manager

        // Request that each manager(s) stop.
        for (int i = 0; i < managerArray.length; i++) {

            // Get this manager.
            Manager manager = (Manager)managerArray[i];

            // Remove this manager from the list of managers.
            // It will get added back in during manager.init().
            callbackRegistry.removeFromManagerList(manager, this);

            // Clear out the LogRegistry (which is used to check for duplicate
            // log files).
            LogUtils.clearManagersFromLogRegistry(manager);

            // Request for the manager to stop running.
            manager.stopRunningRequest(false);
        }

        // Wait for the managers to stop and restart.
        for (int i = 0; i < managerArray.length; i++) {

            // Get this manager.
            Manager manager = (Manager)managerArray[i];

            // Get the node from the existing manager and wait for it to stop.
            Node mgrNode = manager.stopRunningWait();

            // Re-initialize that manager with its node. If no sucess, retry.
            try {
                if (!manager.init(mgrNode, Xmultra.getXmultraRootDir(),
                    manager.getStartingManagersSyncFlag())) {

                    // There is an error so throw exception.
                    throw new InvalidConfigFileFormatException();
                }
            }
            catch (InvalidConfigFileFormatException e) {
                msgEntry.setAppContext("reloadProcessorConfigFile()");
                msgEntry.setDocInfo(origConfigFile.toString());
                msgEntry.setMessageText("Error in new config file. " +
                        "Reverting to previous config file. " +
                        "Bad config file moved to 'old' location.");
                msgEntry.setError(e.getMessage());
                logger.logWarning(msgEntry);

                // Restore the original file.
                restoreOriginalConfigFile(oldFile, origConfigFile, newConfigFile);

                // Try to reload again.
                try {
                    // Remove this manager from the list of managers.
                    // It will get added back in during manager.init().
                    callbackRegistry.removeFromManagerList(manager, this);

                    // Re-initialize the manager with original cfg file.
                    // If no sucess, give up.
                    if (!manager.init(mgrNode, Xmultra.getXmultraRootDir(),
                        manager.getStartingManagersSyncFlag())) {

                        // There is an error so throw exception.
                        throw new InvalidConfigFileFormatException();
                    }
                }
                catch (InvalidConfigFileFormatException ie) {

                    // Couldn't even reload the old config file.
                    msgEntry.setAppContext("reloadProcessorConfigFile()");
                    msgEntry.setDocInfo(configFile.toString());
                    msgEntry.setMessageText("'" + manager.getManagerDescription() +
                            "' unable to reload old config file!\nManager NOT reloaded.");
                    msgEntry.setError(e.getMessage());
                    logger.logWarning(msgEntry);
                    return null;
                }
            }

            // Create & launch the thread.
            Thread t = new Thread(manager, "Manager Thread");
            t.start();

            // Log message.
            msgEntry.setAppContext("reloadProcessorConfigFile()");
            msgEntry.setDocInfo(configFile.toString());
            msgEntry.setMessageText("'" + manager.getManagerDescription() +
                    "' Manager reloaded.");
            logger.logProcess(msgEntry);
        }

        // Delete new file now that reload is complete.
View Full Code Here

Examples of controler.Manager

import controler.Manager;

public class Main {
  public static void main(String[] args){
    Manager manager = new Manager();
    Scanner sc = new Scanner(System.in);
   
    String chaine1 = "";
    String chaine2 = "";
   
    do{
    System.out.println("Enter the first word:");
    chaine1 = sc.next();
   
    System.out.println("Enter the word to compare:");
    chaine2 = sc.next();
   
    if(manager.correct(chaine1, chaine2)){
      System.out.println("These words have a close spelling");
    }
    else{
      System.out.println("These words does not have a close spelling");
    }
View Full Code Here

Examples of employee.manager.Manager

    }

    @Test
    public void getHirePossibility_shouldReturnTrueIfCurrentNumberOfEmployeesIsBelowThanLimit() throws Exception {
        //given
        Manager manager = mock(Manager.class);
        given(manager.getNumberOfSubordinates()).willReturn(0);
        //when
        final Boolean answer = instance.getHirePossibility(manager, employee);
        //then
        assertThat(answer).isEqualTo(Boolean.TRUE);
    }
View Full Code Here

Examples of eu.planets_project.tb.gui.backing.Manager

    if((success.equals("success"))&&(!BMGoalID.equals(""))&&(!autoEvalSerUUID.equals(""))){
      //create the config gui backing bean
      AutoBMGoalEvalUserConfigBean evalConfBean = new AutoBMGoalEvalUserConfigBean();
      //BenchmarkBean contains the BMGoal+EvaluationSerTemplate to configure
      evalConfBean.initBean(BMGoalID,autoEvalSerUUID);
      Manager manager_backing = (Manager)JSFUtil.getManagedObject("Manager_Backing");
      //takes the bean and puts it into the session map
      manager_backing.reinitAutoBMGoalEvalUserConfigBean(evalConfBean);
      //load screen for configuring the autoEvalSerivce
      return "configAutoEvalSer";
    }
    else{
      //an error has occured - display the page with error message
View Full Code Here

Examples of fr.aston.administration.metiers.Manager

    te[1]=e2;
    te[2]=e3;
   
   
    // 2. Creation du manager et affectation du tableau d'employ�s
    Manager m1= new Manager("LOISEAU", "Dor�mi", new Date("05/01/1968"),"loiseau","123", "loiseau@aston.com", 1000, te);
   
    // 3. Affichage du Manager
   
    System.out.println(m1);
   
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.