Examples of dateValue()


Examples of com.ibm.sbt.util.DataNavigator.dateValue()

            DataNavigator nav = contentsNav.get(i);
            try {
                String title = nav.stringValue("path");
                String[] result = title.split("/");
                entry.setTitle(result[result.length - 1]);
                entry.setUpdated(nav.dateValue("modified"));
                entry.setBytes(nav.intValue("bytes"));
                entry.setSize(nav.stringValue("size"));
                entry.setAuthorName(params.get("subscriberId"));
                entry.setVersion(String.valueOf( nav.doubleValue("revision")));
                boolean isDir = nav.booleanValue("is_dir");
View Full Code Here

Examples of com.ibm.sbt.util.DataNavigator.dateValue()

                            for (int i = 0; i < entries.getCount(); i++) {
                                DataNavigator navigator = entries.get(i);
                                FileEntry fe = new FileEntry();
                                fe.setRepository(repId);
                                fe.setTitle(navigator.stringValue(TAG_LABEL));
                                fe.setUpdated(navigator.dateValue(TAG_MODIFIED));
                                fe.setAuthorName(navigator.stringValue(TAG_AUTHOR + "/" + TAG_NAME));
                                fe.setDescription(navigator.stringValue(TAG_SUMMARY));
                                fe.setFileId(navigator.stringValue(TAG_UUID));
                                fe.setUniqueId(fe.getFileId());
                                fe.setMimeType(getMimeType(navigator.stringValue(TAG_LABEL)));
View Full Code Here

Examples of com.ibm.sbt.util.DataNavigator.dateValue()

                                else {
                                    proxyUrl = proxyUrl + TYPE;
                                }
                                fe.setProxyURL(proxyUrl);

                                fe.setPublished(navigator.dateValue(TAG_PUBLISHED));
                                fe.setVersion(navigator.stringValue(TAG_VERSION));
                                fe.setVisibility(navigator.stringValue(TAG_VISIBILITY));
                                fileEntries.add(fe);
                            }
                        }
View Full Code Here

Examples of com.ibm.sbt.util.DataNavigator.dateValue()

            for (int i = 0; i < mynav.getCount(); i++) {
                FileEntry entry = new FileEntry();
                DataNavigator nav = mynav.get(i);
                entry.setUserId((String) UserBean.get().getPerson().getField(LOTUS_LIVE_SUBSCRIBER_ID));
                entry.setTitle(nav.stringValue("title"));
                entry.setUpdated(nav.dateValue("updated"));
                entry.setPublished(nav.dateValue("published"));
                entry.setAuthorName(nav.stringValue("author/name"));
               
                String id = nav.stringValue("id");
                if (StringUtil.isNotEmpty(id)) {
View Full Code Here

Examples of com.ibm.sbt.util.DataNavigator.dateValue()

                FileEntry entry = new FileEntry();
                DataNavigator nav = mynav.get(i);
                entry.setUserId((String) UserBean.get().getPerson().getField(LOTUS_LIVE_SUBSCRIBER_ID));
                entry.setTitle(nav.stringValue("title"));
                entry.setUpdated(nav.dateValue("updated"));
                entry.setPublished(nav.dateValue("published"));
                entry.setAuthorName(nav.stringValue("author/name"));
               
                String id = nav.stringValue("id");
                if (StringUtil.isNotEmpty(id)) {
                    int index = id.indexOf("snx:file!");
View Full Code Here

Examples of com.liusoft.dlog4j.beans.ConfigBean.dateValue()

    return (ConfigBean)namedUniqueResult("GET_CONFIG", new Object[]{key, new Integer(site_id)});
  }

  public static Date dateValue(int site_id, String key) {
    ConfigBean cb = getConfig(site_id, key);   
    return (cb==null)?null:cb.dateValue();
  }

  protected static int intValue(int site_id, String key) {
    return intValue(site_id, key, -1);
  }
View Full Code Here

Examples of org.apache.isis.applib.value.Date.dateValue()

        final Long value = converter.toDatastoreType(date);
        Date date2 = (Date) converter.toMemberType(value);
       
        // necessary to use dateValue() because the Isis date (rather poorly) does not
        // override equals() / hashCode()
        assertThat(date.dateValue(), is(equalTo(date2.dateValue())));
    }

    @Test
    public void toLong_whenNull() {
        assertNull(converter.toDatastoreType(null));
View Full Code Here

Examples of org.apache.isis.applib.value.Date.dateValue()

        final Long datastoreValue = dateMapping.objectToLong(date);
        Date date2 = (Date) dateMapping.longToObject(datastoreValue);
       
        // necessary to use dateValue() because the Isis date (rather poorly) does not
        // override equals() / hashCode()
        assertThat(date.dateValue(), is(equalTo(date2.dateValue())));
    }

}
View Full Code Here

Examples of org.apache.isis.applib.value.Date.dateValue()

        // assertTrue("dateTime's value (" + dateTime.dateValue() + ") should be after java.sql.date's (" + sqlDate +
        // ")",
        // dateTime.dateValue().after(sqlDate));

        assertTrue("dateTime's value (" + dateTime.dateValue() + ") should be after date's (" + date + ")", dateTime
            .dateValue().after(date.dateValue()));

    }

    /**
     * Test {@link Money} type.
View Full Code Here

Examples of org.apache.isis.applib.value.Date.dateValue()

        iswf.bounceSystem();
       
        iswf.beginTran();
        entity = repo.list().get(0);
        assertThat(entity.getDateProperty().dateValue(), is(date.dateValue()));
       
        date = date.add(-1, -1, -1);
        entity.setDateProperty(date);
       
        iswf.commitTran();
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.