[Yanel-commits] rev 40309 -
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Mon Dec 8 15:51:12 CET 2008
Author: michi
Date: 2008-12-08 15:51:12 +0100 (Mon, 08 Dec 2008)
New Revision: 40309
Modified:
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
Log:
obsolete imports removed and log statement added
Modified: public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
===================================================================
--- public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2008-12-08 14:48:19 UTC (rev 40308)
+++ public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2008-12-08 14:51:12 UTC (rev 40309)
@@ -32,7 +32,6 @@
import org.wyona.yanel.core.attributes.viewable.View;
import org.wyona.yanel.core.attributes.viewable.ViewDescriptor;
-import org.wyona.yanel.core.util.PathUtil;
import org.wyona.yanel.core.util.ResourceAttributeHelper;
import org.wyona.yanel.core.workflow.Workflow;
import org.wyona.yanel.core.workflow.WorkflowException;
@@ -133,7 +132,7 @@
mimeType = getResourceConfigProperty("mime-type");
if (mimeType != null) return mimeType;
- String suffix = PathUtil.getSuffix(getPath());
+ String suffix = org.wyona.commons.io.PathUtil.getSuffix(getPath());
if (suffix != null) {
log.debug("SUFFIX: " + suffix);
if (suffix.equals("html")) {
@@ -292,8 +291,9 @@
}
public Date getCheckoutDate() throws Exception {
- Node node = getRealm().getRepository().getNode(getPath());
- // return node.getCheckoutDate();
+ log.warn("Get checkout date not implemented!");
+ //Node node = getRealm().getRepository().getNode(getPath());
+ //return node.getCheckoutDate();
return null;
}
@@ -414,7 +414,7 @@
* Get introspection for Introspectable interface
*/
public String getIntrospection() throws Exception {
- String name = PathUtil.getName(getPath());
+ String name = org.wyona.commons.io.PathUtil.getName(getPath());
StringBuffer sb = new StringBuffer("<?xml version=\"1.0\"?>");
sb.append("<introspection xmlns=\"http://www.wyona.org/neutron/2.0\">");
More information about the Yanel-commits
mailing list