Examples of Event


Examples of org.fenixedu.academic.domain.accounting.Event

    }

    public ActionForward showPaymentsForEvent(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        final Event event = getEvent(request);
        request.setAttribute("event", event);

        if (!StringUtils.isEmpty(event.getCreatedBy())) {
            User responsible = User.findByUsername(event.getCreatedBy());
            request.setAttribute("responsible", responsible.getPerson());
        }

        if (event.isOpen()) {
            request.setAttribute("entryDTOs", event.calculateEntries());
            request.setAttribute("accountingEventPaymentCodes", event.getNonProcessedPaymentCodes());
        }

        return mapping.findForward("showPaymentsForEvent");
    }
View Full Code Here

Examples of org.ff4j.audit.Event

    @Test
    public void testAudit() throws InterruptedException {
        int nb = 500;
        EventPublisher pub = new EventPublisher();
        for (int i = 0; i < nb; i++) {
            pub.publish(new Event("aer", EventType.HIT_FLIPPED));
            Thread.sleep(2);
        }
        Assert.assertEquals(nb, pub.getRepository().getTotalEventCount());
    }
View Full Code Here

Examples of org.fluentd.logger.sender.Event

        public Event read(Unpacker u, Event to, boolean required) throws IOException {
            if (!required && u.trySkipNil()) {
                return null;
            }

            to = new Event();
            u.readArrayBegin();
            {
                to.tag = Templates.TString.read(u, null, required);
                to.timestamp = Templates.TLong.read(u, null, required);
                int size = u.readMapBegin();
View Full Code Here

Examples of org.focusns.common.event.annotation.Event

                Class<?> beanClass = ClassUtils.forName(beanClassName, beanFactory.getBeanClassLoader());
                if(AnnotationUtils.isAnnotationDeclaredLocally(EventSubscriber.class, beanClass)) {
                    Method[] declearedMethods = beanClass.getDeclaredMethods();
                    for (Method declearedMethod : declearedMethods) {
                        //
                        Event event = AnnotationUtils.getAnnotation(declearedMethod, Event.class);
                        if (event != null) {
                            String eventKey = generateEventKey(event);
                            eventMapping.put(eventKey, event);
                            eventSubscriberMapping.put(eventKey, beanName);
                            //
View Full Code Here

Examples of org.focusns.model.calendar.Event

    @Autowired
    private EventService eventService;

    @Test
    public void createEvent() {
        Event event = new Event();
        event.setTitle("event title");
        event.setContent("event content");
        event.setBegin(new Date());
        event.setEnd(new Date());
        event.setCreatedAt(new Date());
        event.setModifiedAt(new Date());
        event.setCreatedById(1);
        event.setModifiedById(1);
        event.setProjectId(1);
        event.setCategoryId(1);
        //
        eventService.createEvent(event);
    }
View Full Code Here

Examples of org.geoserver.platform.resource.ResourceNotification.Event

        ResourceNotification n = listener.await(5,TimeUnit.SECONDS);

        assertEquals(Kind.ENTRY_MODIFY, n.getKind());
        assertEquals(Paths.BASE, n.getPath());
        assertEquals(1, n.events().size());
        Event e = n.events().get(0);
        assertEquals(Kind.ENTRY_MODIFY, e.getKind());
        assertEquals("FileB", e.getPath());

        listener.reset();
        fileA.delete();
        n = listener.await(5,TimeUnit.SECONDS);
        assertEquals(Kind.ENTRY_MODIFY,n.getKind());
        assertEquals(Paths.BASE,n.getPath());
        e = n.events().get(0);
        assertEquals(Kind.ENTRY_DELETE, e.getKind());
        assertEquals("FileA", e.getPath());
       
        listener.reset();
        fileA.createNewFile();
        n = listener.await(5,TimeUnit.SECONDS);
        assertEquals(Kind.ENTRY_MODIFY,n.getKind());
        assertEquals(Paths.BASE,n.getPath());
        e = n.events().get(0);
        assertEquals(Kind.ENTRY_CREATE, e.getKind());
        assertEquals("FileA", e.getPath());
       
        store.get(Paths.BASE).removeListener(listener);
    }
View Full Code Here

Examples of org.glassfish.api.event.EventListener.Event

        UndeployCommandParameters params = context.getCommandParameters(UndeployCommandParameters.class);

        ApplicationInfo info = appRegistry.get(appName);
        if (info==null) {
            report.failure(context.getLogger(), "Application " + appName + " not registered", null);
            events.send(new Event(Deployment.UNDEPLOYMENT_FAILURE, context));
            return;

        }

        events.send(new Event(Deployment.UNDEPLOYMENT_START, info));

        // for DAS target, the undeploy should unload the application
        // as well
        if (DeploymentUtils.isDASTarget(params.target)) {
            unload(info, context);
        }

        try {
            info.clean(context);
        } catch(Exception e) {
            report.failure(context.getLogger(), "Exception while cleaning application artifacts", e);
            events.send(new Event(Deployment.UNDEPLOYMENT_FAILURE, context));
            return;
        }
        if (report.getActionExitCode().equals(ActionReport.ExitCode.SUCCESS)) {
            events.send(new Event(Deployment.UNDEPLOYMENT_SUCCESS, context));
            deploymentLifecycleProbeProvider.applicationUndeployedEvent(appName, getApplicationType(info));
        } else {           
            events.send(new Event(Deployment.UNDEPLOYMENT_FAILURE, context));           
        }
       
        appRegistry.remove(appName);
    }
View Full Code Here

Examples of org.glassfish.jersey.message.internal.HttpHeaderReader.Event

        throwIllegalArgumentExceptionIfNull(header, LocalizationMessages.ENTITY_TAG_IS_NULL());

        try {
            HttpHeaderReader reader = HttpHeaderReader.newInstance(header);
            Event e = reader.next(false);
            if (e == Event.QuotedString) {
                return new EntityTag(reader.getEventValue());
            } else if (e == Event.Token) {
                if (reader.getEventValue().equals("W")) {
                    reader.nextSeparator('/');
View Full Code Here

Examples of org.glite.ce.creamapi.eventmanagement.Event

        logger.warn("Method not implemented!");
        throw new EventManagerException("Method not implemented!");
    }

    public Event getEvent(String eventId, String userId) throws IllegalArgumentException, EventManagerException {
        Event event = null;
        if (eventId == null) {
            throw new IllegalArgumentException("paramenter eventId must be not null!");
        }
        List<Event> eventList = null;
        try {
View Full Code Here

Examples of org.gtugs.domain.Event

      ServletException {
    String chapterId = request.getParameter("id");
    Chapter chapter = retrieveChapter(chapterId);

    if (chapter == null) {
      return new Event();
    }

    Event event = new Event();
    event.setChapterId(chapter.getId());
    event.setStartDate(new Date());
    event.setStartTime("1900");
    event.setEndDate(new Date());
    event.setEndTime("2100");
    event.setCity(chapter.getCity());
    event.setState(chapter.getState());
    event.setCountry(chapter.getCountry());

    return event;
  }
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.