Examples of ComponentList


Examples of net.fortuna.ical4j.model.ComponentList

            if (!hasPermission(workEffortId, "VIEW", context)) {
                return ICalWorker.createForbiddenResponse(null);
            }
        }
        Calendar calendar = makeCalendar(publishProperties, context);
        ComponentList components = calendar.getComponents();
        List<GenericValue> workEfforts = getRelatedWorkEfforts(publishProperties, context);
        if (workEfforts != null) {
            for (GenericValue workEffort : workEfforts) {
                ResponseProperties responseProps = toCalendarComponent(components, workEffort, context);
                if (responseProps != null) {
View Full Code Here

Examples of net.fortuna.ical4j.model.ComponentList

        String workEffortUid = workEffort.getString("universalId");
        String workEffortTypeId = workEffort.getString("workEffortTypeId");
        GenericValue typeValue = delegator.findOne("WorkEffortType", UtilMisc.toMap("workEffortTypeId", workEffortTypeId), true);
        boolean isTask = false;
        boolean newComponent = true;
        ComponentList resultList = null;
        ComponentList alarms = null;
        Component result = null;
        if ("TASK".equals(workEffortTypeId) || (typeValue != null && "TASK".equals(typeValue.get("parentTypeId")))) {
            isTask = true;
            resultList = components.getComponents("VTODO");
        } else if ("EVENT".equals(workEffortTypeId) || (typeValue != null && "EVENT".equals(typeValue.get("parentTypeId")))) {
View Full Code Here

Examples of net.fortuna.ical4j.model.ComponentList

                is("nico2ical"));
            assertThat(calendar.getProperty("VERSION").getValue(), is("2.0"));
            assertThat(
                calendar.getProperty("X-WR-CALNAME").getValue(),
                is("ニコニコ生放送"));
            ComponentList components = calendar.getComponents();
            assertThat(components, is(notNullValue()));
            assertThat(components.size(), is(0));
        } catch (IOException e) {
            fail(e.getMessage());
        } catch (ParserException e) {
            fail(e.getMessage());
        } finally {
View Full Code Here

Examples of net.fortuna.ical4j.model.ComponentList

                is("nico2ical"));
            assertThat(calendar.getProperty("VERSION").getValue(), is("2.0"));
            assertThat(
                calendar.getProperty("X-WR-CALNAME").getValue(),
                is("ニコニコ生放送"));
            ComponentList components = calendar.getComponents();
            assertThat(components, is(notNullValue()));
            assertThat(components.size(), is(1));
            // DTSTARTが古い順にイベントが並んでいる。
            int i = 0;
            for (Object object : components) {
                assertThat(object, is(notNullValue()));
                assertThat(object, is(instanceOf(VEvent.class)));
View Full Code Here

Examples of net.fortuna.ical4j.model.ComponentList

                is("nico2ical"));
            assertThat(calendar.getProperty("VERSION").getValue(), is("2.0"));
            assertThat(
                calendar.getProperty("X-WR-CALNAME").getValue(),
                is("ニコニコ生放送"));
            ComponentList components = calendar.getComponents();
            assertThat(components, is(notNullValue()));
            assertThat(components.size(), is(2));
            // DTSTARTが古い順にイベントが並んでいる。
            int i = 1;
            for (Object object : components) {
                assertThat(object, is(notNullValue()));
                assertThat(object, is(instanceOf(VEvent.class)));
View Full Code Here

Examples of net.fortuna.ical4j.model.ComponentList

                is("nico2ical"));
            assertThat(calendar.getProperty("VERSION").getValue(), is("2.0"));
            assertThat(
                calendar.getProperty("X-WR-CALNAME").getValue(),
                is("ニコニコ生放送"));
            ComponentList components = calendar.getComponents();
            assertThat(components, is(notNullValue()));
            assertThat(components.size(), is(3));
            // DTSTARTが古い順にイベントが並んでいる。
            int i = 2;
            for (Object object : components) {
                assertThat(object, is(notNullValue()));
                assertThat(object, is(instanceOf(VEvent.class)));
View Full Code Here

Examples of net.fortuna.ical4j.model.ComponentList

                is("nico2ical"));
            assertThat(calendar.getProperty("VERSION").getValue(), is("2.0"));
            assertThat(
                calendar.getProperty("X-WR-CALNAME").getValue(),
                is("ニコニコ生放送"));
            ComponentList components = calendar.getComponents();
            assertThat(components, is(notNullValue()));
            assertThat(components.size(), is(4));
            // DTSTARTが古い順にイベントが並んでいる。
            int i = 3;
            for (Object object : components) {
                assertThat(object, is(notNullValue()));
                assertThat(object, is(instanceOf(VEvent.class)));
View Full Code Here

Examples of net.fortuna.ical4j.model.ComponentList

        assertThat(calendar.getProperty("PRODID").getValue(), is("nico2ical"));
        assertThat(calendar.getProperty("VERSION").getValue(), is("2.0"));
        assertThat(
            calendar.getProperty("X-WR-CALNAME").getValue(),
            is("ニコニコ生放送"));
        ComponentList components = calendar.getComponents();
        assertThat(components, is(notNullValue()));
        assertThat(components.size(), is(8));
        // DTSTARTが古い順にイベントが並んでいる。
        int i = 7;
        for (Object object : components) {
            assertThat(object, is(notNullValue()));
            assertThat(object, is(instanceOf(VEvent.class)));
View Full Code Here

Examples of net.fortuna.ical4j.model.ComponentList

        assertThat(calendar.getProperty("PRODID").getValue(), is("nico2ical"));
        assertThat(calendar.getProperty("VERSION").getValue(), is("2.0"));
        assertThat(
            calendar.getProperty("X-WR-CALNAME").getValue(),
            is("ニコニコ生放送"));
        ComponentList components = calendar.getComponents();
        assertThat(components, is(notNullValue()));
        assertThat(components.size(), is(0));
    }
View Full Code Here

Examples of org.codehaus.plexus.component.collections.ComponentList

                        Type componentType = Object.class;
                        if (typeParameters != null && typeParameters.length == 1 && typeParameters[0] instanceof Class) {
                            componentType = typeParameters[0];
                        }

                        assignment = new ComponentList(container,
                                toClass( componentType ),
                                role,
                                roleHints,
                                componentDescriptor.getHumanReadableKey());
                    }
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.