Dear all,
I've finished to refactor the rest subsystem and I propose to move it to
the trunk for inclusion in 1.8M1.
It doesn't support all the URIs of the API (see
http://dev.xwiki.org/xwiki/bin/view/Design/RestfulAPI for details) but
still I think it's good to have it included.
Here it is my +1
-Fabio
Hi,
Some comments:
* I don't think the Import space name is a good one for the office
importer. I'd rather not create a new space and move the 2 pages in
the XWiki space (my preference right now, otherwise users will be able
to edit the pages by default unless we provide a WebPreferences and it
makes securing the wiki harder) or use something like OfficeImporter
(less good IMO).
* Navigating to the Importer page shows error messages. I think that
page should not be shown and be hidden so that users don't navigate to
it. It could also be moved to the XWiki space for now.
* We need a link from the top menu. It think that should be real quick
to add for 1.8M1
* it's a little buggy right now but I have commented why in the jira
issue: http://jira.xwiki.org/jira/browse/XWIKI-3083
WDYT?
Thanks
-Vincent
http://xwiki.comhttp://xwiki.orghttp://massol.net
On Sat, Jan 10, 2009 at 4:45 AM, Sergiu Dumitriu <sergiu(a)xwiki.com> wrote:
> tmortagne (SVN) wrote:
>
>> Added: platform/core/branches/xwiki-core-1.7/xwiki-rendering/src/main/java/org/xwiki/rendering/listener/DefaultAttachement.java
>> ===================================================================
>> --- platform/core/branches/xwiki-core-1.7/xwiki-rendering/src/main/java/org/xwiki/rendering/listener/DefaultAttachement.java (rev 0)
>> +++ platform/core/branches/xwiki-core-1.7/xwiki-rendering/src/main/java/org/xwiki/rendering/listener/DefaultAttachement.java 2008-12-27 15:58:45 UTC (rev 14929)
>> @@ -0,0 +1,69 @@
>> +/*
>> + * See the NOTICE file distributed with this work for additional
>> + * information regarding copyright ownership.
>> + *
>> + * This is free software; you can redistribute it and/or modify it
>> + * under the terms of the GNU Lesser General Public License as
>> + * published by the Free Software Foundation; either version 2.1 of
>> + * the License, or (at your option) any later version.
>> + *
>> + * This software is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
>> + * Lesser General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU Lesser General Public
>> + * License along with this software; if not, write to the Free
>> + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
>> + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
>> + */
>> +package org.xwiki.rendering.listener;
>> +
>> +/**
>> + * Default implementation of {@link Attachment}.
>> + *
>> + * @version $Id$
>> + * @since 1.7.1
>> + */
>> +public class DefaultAttachement implements Attachment
>> +{
>> + /**
>> + * The name of the document containing the attachment.
>> + */
>> + private String documentName;
>> +
>> + /**
>> + * The name of the attachment.
>> + */
>> + private String attachmentName;
>> +
>> + /**
>> + * @param documentName the name of the document containing the attachment.
>> + * @param attachmentName the name of the attachment.
>> + */
>> + public DefaultAttachement(String documentName, String attachmentName)
>> + {
>> + this.documentName = documentName;
>> + this.attachmentName = attachmentName;
>> + }
>> +
>> + /**
>> + * {@inheritDoc}
>> + *
>> + * @see org.xwiki.rendering.listener.Attachment#getDocumentName()
>> + */
>> + public String getDocumentName()
>> + {
>> + return this.documentName;
>> + }
>> +
>> + /**
>> + * {@inheritDoc}
>> + *
>> + * @see org.xwiki.rendering.listener.Attachment#getAttachmentName()
>> + */
>> + public String getAttachmentName()
>> + {
>> + return this.attachmentName;
>> + }
>> +}
>
> Shouldn't this one be in an internal package, like the
> DefaultAttachmentParser?
DefaultAttachement is not a component so you need to know it to be
able to use it and it's more the default implementation anyone could
use to represent an attachment. It's here as a toolkit and not just
the implementation used by DefaultAttachmentParser.
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>
--
Thomas Mortagne
tmortagne (SVN) wrote:
> Added: platform/core/branches/xwiki-core-1.7/xwiki-rendering/src/main/java/org/xwiki/rendering/listener/DefaultAttachement.java
> ===================================================================
> --- platform/core/branches/xwiki-core-1.7/xwiki-rendering/src/main/java/org/xwiki/rendering/listener/DefaultAttachement.java (rev 0)
> +++ platform/core/branches/xwiki-core-1.7/xwiki-rendering/src/main/java/org/xwiki/rendering/listener/DefaultAttachement.java 2008-12-27 15:58:45 UTC (rev 14929)
> @@ -0,0 +1,69 @@
> +/*
> + * See the NOTICE file distributed with this work for additional
> + * information regarding copyright ownership.
> + *
> + * This is free software; you can redistribute it and/or modify it
> + * under the terms of the GNU Lesser General Public License as
> + * published by the Free Software Foundation; either version 2.1 of
> + * the License, or (at your option) any later version.
> + *
> + * This software is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with this software; if not, write to the Free
> + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
> + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
> + */
> +package org.xwiki.rendering.listener;
> +
> +/**
> + * Default implementation of {@link Attachment}.
> + *
> + * @version $Id$
> + * @since 1.7.1
> + */
> +public class DefaultAttachement implements Attachment
> +{
> + /**
> + * The name of the document containing the attachment.
> + */
> + private String documentName;
> +
> + /**
> + * The name of the attachment.
> + */
> + private String attachmentName;
> +
> + /**
> + * @param documentName the name of the document containing the attachment.
> + * @param attachmentName the name of the attachment.
> + */
> + public DefaultAttachement(String documentName, String attachmentName)
> + {
> + this.documentName = documentName;
> + this.attachmentName = attachmentName;
> + }
> +
> + /**
> + * {@inheritDoc}
> + *
> + * @see org.xwiki.rendering.listener.Attachment#getDocumentName()
> + */
> + public String getDocumentName()
> + {
> + return this.documentName;
> + }
> +
> + /**
> + * {@inheritDoc}
> + *
> + * @see org.xwiki.rendering.listener.Attachment#getAttachmentName()
> + */
> + public String getAttachmentName()
> + {
> + return this.attachmentName;
> + }
> +}
Shouldn't this one be in an internal package, like the
DefaultAttachmentParser?
--
Sergiu Dumitriu
http://purl.org/net/sergiu/