Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-06 Thread Giordano Ninonà
I've removed the *saveDocument() *method and it works :D

Thnaks,
Giordano.

2016-01-05 18:38 GMT+01:00 vinc...@massol.net :

>
>
>
> On 5 Jan 2016 at 18:35:18, Giordano Ninonà (giordano.nin...@gmail.com
> (mailto:giordano.nin...@gmail.com)) wrote:
>
> > Well, I am not performing these modification from velocity, I am doing
> it in Java. Following the java method that I expose through the script
> service:
> >
> > public void removeInstance(String iName) throws XWikiException {
> >
> > XWikiContext xcontext = this.xwikiContextProvider.get();
> > XWiki wiki = xcontext.getWiki();
> > DocumentReference docRef = new DocumentReference(wikiName, wikiSpace,
> iName);
> > XWikiDocument xDoc = wiki.getDocument(docRef, xcontext);
> >
> > if (something) {
> > .
> > .
> > wiki.deleteDocument(xDoc, xcontext);
> > wiki.saveDocument(xDoc, xcontext);
>
> ahhh… thats why...
>
> You delete the doc and then recreate it ;-)
>
> Thanks
> -Vincent
>
> > }
> >
> > "iName" is the page title.
> > I have noticed that the method ".getDocument()" create a new document if
> it is not present, and I've looked at the "deleted page" index and I found
> the document that has been created and deleted. I think there is something
> that I am missing, probably I don't pass to the metod the right page name?
> >
> > Thanks,
> > Giordano.
> >
> > 2016-01-05 16:54 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net)
> :
> > > The fact that you see it in the AS is normal and expected. This is a
> log of everything that was done to documents.
> > >
> > > However the doc should no longer appear in the Dashboard Tree.
> > >
> > > Thanks
> > > -Vincent
> > >
> > >
> > >
> > > On 5 Jan 2016 at 16:39:02, Giordano Ninonà (giordano.nin...@gmail.com
> (mailto:giordano.nin...@gmail.com)) wrote:
> > >
> > > > Hi Vincent,
> > > >
> > > > I mean that I can see the deletion on the Activity Stream, with
> "tree representation" I mean the pages' tree in the Dashboard and I didn't
> noticed any error.
> > > >
> > > > Thanks,
> > > > Giordano.
> > > >
> > > > 2016-01-05 16:25 GMT+01:00 vinc...@massol.net(mailto:
> vinc...@massol.net) :
> > > > > Hi,
> > > > > On 5 Jan 2016 at 16:20:52, Giordano Ninonà (
> giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)(mailto:
> giordano.nin...@gmail.com)) wrote:
> > > > >
> > > > > > Hi users,
> > > > > >
> > > > > > I'm developing a java component that offer APIs accessed through
> script
> > > > > > services to perfom modification to the wiki.
> > > > > >
> > > > > > When I delete a document (thus the related page I guessed) from
> my java
> > > > > > code with the "*.deleteDocument(doc, context)*", on my browser I
> see the
> > > > > > last modification as a page deletion but the page is still
> accessible on
> > > > > > the tree representation.
> > > > >
> > > > > What tree?
> > > > >
> > > > > Are you talking about the Activity Stream or something else?
> > > > >
> > > > > Deleted documents are deleted so if your doc still appears then
> it’s not been deleted (maybe there was an error?).
> > > > >
> > > > > Thanks
> > > > > -Vincent
> > > > >
> > > > > > The XWikiDocument's method ".setHidden(true)" solve my problem,
> but I can't
> > > > > > catch the relations between xwiki pages-->Documents-->Document
> reference
> > > > > > and how to handle deletion of non-terminal pages preserving the
> information
> > > > > > contained in them like: the wiki and the nested page to whom
> they had been
> > > > > > belonged, the content and the comments.
> > > > > >
> > > > > > Thanks for your help,
> > > > > > Giordano.
> > > > >
> > > >
> >
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net



On 5 Jan 2016 at 18:35:18, Giordano Ninonà 
(giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:

> Well, I am not performing these modification from velocity, I am doing it in 
> Java. Following the java method that I expose through the script service:
>  
> public void removeInstance(String iName) throws XWikiException {
>  
> XWikiContext xcontext = this.xwikiContextProvider.get();
> XWiki wiki = xcontext.getWiki();
> DocumentReference docRef = new DocumentReference(wikiName, wikiSpace, iName);
> XWikiDocument xDoc = wiki.getDocument(docRef, xcontext);
>  
> if (something) {
> .
> .
> wiki.deleteDocument(xDoc, xcontext);
> wiki.saveDocument(xDoc, xcontext);

ahhh… thats why...

You delete the doc and then recreate it ;-)

Thanks
-Vincent

> }
>  
> "iName" is the page title.
> I have noticed that the method ".getDocument()" create a new document if it 
> is not present, and I've looked at the "deleted page" index and I found the 
> document that has been created and deleted. I think there is something that I 
> am missing, probably I don't pass to the metod the right page name?
>  
> Thanks,
> Giordano.
>  
> 2016-01-05 16:54 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net) :
> > The fact that you see it in the AS is normal and expected. This is a log of 
> > everything that was done to documents.  
> >  
> > However the doc should no longer appear in the Dashboard Tree.  
> >  
> > Thanks  
> > -Vincent
> >  
> >  
> >  
> > On 5 Jan 2016 at 16:39:02, Giordano Ninonà 
> > (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:
> >  
> > > Hi Vincent,
> > >  
> > > I mean that I can see the deletion on the Activity Stream, with "tree 
> > > representation" I mean the pages' tree in the Dashboard and I didn't 
> > > noticed any error.
> > >  
> > > Thanks,
> > > Giordano.
> > >  
> > > 2016-01-05 16:25 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net) :
> > > > Hi,  
> > > > On 5 Jan 2016 at 16:20:52, Giordano Ninonà 
> > > > (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)(mailto:giordano.nin...@gmail.com))
> > > >  wrote:
> > > >  
> > > > > Hi users,
> > > > >
> > > > > I'm developing a java component that offer APIs accessed through 
> > > > > script
> > > > > services to perfom modification to the wiki.
> > > > >
> > > > > When I delete a document (thus the related page I guessed) from my 
> > > > > java
> > > > > code with the "*.deleteDocument(doc, context)*", on my browser I see 
> > > > > the
> > > > > last modification as a page deletion but the page is still accessible 
> > > > > on
> > > > > the tree representation.  
> > > >  
> > > > What tree?  
> > > >  
> > > > Are you talking about the Activity Stream or something else?  
> > > >  
> > > > Deleted documents are deleted so if your doc still appears then it’s 
> > > > not been deleted (maybe there was an error?).  
> > > >  
> > > > Thanks  
> > > > -Vincent
> > > >  
> > > > > The XWikiDocument's method ".setHidden(true)" solve my problem, but I 
> > > > > can't
> > > > > catch the relations between xwiki pages-->Documents-->Document 
> > > > > reference
> > > > > and how to handle deletion of non-terminal pages preserving the 
> > > > > information
> > > > > contained in them like: the wiki and the nested page to whom they had 
> > > > > been
> > > > > belonged, the content and the comments.
> > > > >
> > > > > Thanks for your help,
> > > > > Giordano.
> > > >  
> > >  
>  

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Giordano Ninonà
Well, I am not performing these modification from velocity, I am doing it
in Java. Following the java method that I expose through the script service:

public void removeInstance(String iName) throws XWikiException {

XWikiContext xcontext = this.xwikiContextProvider.get();
XWiki wiki = xcontext.getWiki();
DocumentReference docRef = new DocumentReference(wikiName,
wikiSpace, iName);
XWikiDocument xDoc = wiki.getDocument(docRef, xcontext);

   if (something) {
.
.
wiki.deleteDocument(xDoc, xcontext);
wiki.saveDocument(xDoc, xcontext);
  }

"iName" is the page title.
I have noticed that the method ".getDocument()" create a new document if it
is not present, and I've looked at the "deleted page" index and I found the
document that has been created and deleted. I think there is something that
I am missing, probably I don't pass to the metod the right page name?

Thanks,
Giordano.

2016-01-05 16:54 GMT+01:00 vinc...@massol.net :

> The fact that you see it in the AS is normal and expected. This is a log
> of everything that was done to documents.
>
> However the doc should no longer appear in the Dashboard Tree.
>
> Thanks
> -Vincent
>
>
> On 5 Jan 2016 at 16:39:02, Giordano Ninonà (giordano.nin...@gmail.com)
> wrote:
>
> Hi Vincent,
>
> I mean that I can see the deletion on the Activity Stream, with "tree
> representation" I mean the pages' tree in the Dashboard and I didn't
> noticed any error.
>
> Thanks,
> Giordano.
>
> 2016-01-05 16:25 GMT+01:00 vinc...@massol.net :
>
>> Hi,
>>
>> On 5 Jan 2016 at 16:20:52, Giordano Ninonà (giordano.nin...@gmail.com
>> (mailto:giordano.nin...@gmail.com)) wrote:
>>
>> > Hi users,
>> >
>> > I'm developing a java component that offer APIs accessed through script
>> > services to perfom modification to the wiki.
>> >
>> > When I delete a document (thus the related page I guessed) from my java
>> > code with the "*.deleteDocument(doc, context)*", on my browser I see the
>> > last modification as a page deletion but the page is still accessible on
>> > the tree representation.
>>
>> What tree?
>>
>> Are you talking about the Activity Stream or something else?
>>
>> Deleted documents are deleted so if your doc still appears then it’s not
>> been deleted (maybe there was an error?).
>>
>> Thanks
>> -Vincent
>>
>> > The XWikiDocument's method ".setHidden(true)" solve my problem, but I
>> can't
>> > catch the relations between xwiki pages-->Documents-->Document reference
>> > and how to handle deletion of non-terminal pages preserving the
>> information
>> > contained in them like: the wiki and the nested page to whom they had
>> been
>> > belonged, the content and the comments.
>> >
>> > Thanks for your help,
>> > Giordano.
>>
>>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Marius Dumitru Florea
On Tue, Jan 5, 2016 at 5:20 PM, Giordano Ninonà 
wrote:

> Hi users,
>
> I'm developing a java component that offer APIs accessed through script
> services to perfom modification to the wiki.
>
>

> When I delete a document (thus the related page I guessed) from my java
> code with the "*.deleteDocument(doc, context)*", on my browser I see the
> last modification as a page deletion but the page is still accessible on
> the tree representation.
>

If you have nested pages and you delete a page without its child pages then
that page will still be visible in the tree because of the remaining child
pages. The link will point to an unexisting page though.


>
> The XWikiDocument's method ".setHidden(true)" solve my problem, but I can't
> catch the relations between xwiki pages-->Documents-->Document reference
> and how to handle deletion of non-terminal pages preserving the information
> contained in them like: the wiki and the nested page to whom they had been
> belonged, the content and the comments.
>
> Thanks for your help,
> Giordano.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Giordano Ninonà
How can I get the fullname of a page?

Giordano.

2016-01-05 16:45 GMT+01:00 vinc...@massol.net :

> You might be using some wrong API.
>
> I’ve tested this and it works fine:
>
> {{velocity}}
> * Is page Main.TestPage deleted:
> $xwiki.getDocument('Main.TestPage').isNew()
> #set ($newDoc = $xwiki.getDocument('Main.TestPage'))
> #set ($discard = $newDoc.setContent('test'))
> #set ($discard = $newDoc.save())
> * Is page Main.TestPage deleted:
> $xwiki.getDocument('Main.TestPage').isNew()
> #set ($discard = $newDoc.delete())
> * Is page Main.TestPage deleted:
> $xwiki.getDocument('Main.TestPage').isNew()
> {{velocity}}
>
> Hope it helps,
> -Vincent
>
> On 5 Jan 2016 at 16:39:02, Giordano Ninonà (giordano.nin...@gmail.com
> (mailto:giordano.nin...@gmail.com)) wrote:
>
> > Hi Vincent,
> >
> > I mean that I can see the deletion on the Activity Stream, with "tree
> representation" I mean the pages' tree in the Dashboard and I didn't
> noticed any error.
> >
> > Thanks,
> > Giordano.
> >
> > 2016-01-05 16:25 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net)
> :
> > > Hi,
> > > On 5 Jan 2016 at 16:20:52, Giordano Ninonà (giordano.nin...@gmail.com
> (mailto:giordano.nin...@gmail.com)(mailto:giordano.nin...@gmail.com))
> wrote:
> > >
> > > > Hi users,
> > > >
> > > > I'm developing a java component that offer APIs accessed through
> script
> > > > services to perfom modification to the wiki.
> > > >
> > > > When I delete a document (thus the related page I guessed) from my
> java
> > > > code with the "*.deleteDocument(doc, context)*", on my browser I see
> the
> > > > last modification as a page deletion but the page is still
> accessible on
> > > > the tree representation.
> > >
> > > What tree?
> > >
> > > Are you talking about the Activity Stream or something else?
> > >
> > > Deleted documents are deleted so if your doc still appears then it’s
> not been deleted (maybe there was an error?).
> > >
> > > Thanks
> > > -Vincent
> > >
> > > > The XWikiDocument's method ".setHidden(true)" solve my problem, but
> I can't
> > > > catch the relations between xwiki pages-->Documents-->Document
> reference
> > > > and how to handle deletion of non-terminal pages preserving the
> information
> > > > contained in them like: the wiki and the nested page to whom they
> had been
> > > > belonged, the content and the comments.
> > > >
> > > > Thanks for your help,
> > > > Giordano.
> > >
> >
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net
The fact that you see it in the AS is normal and expected. This is a log of 
everything that was done to documents.

However the doc should no longer appear in the Dashboard Tree.

Thanks
-Vincent


On 5 Jan 2016 at 16:39:02, Giordano Ninonà (giordano.nin...@gmail.com) wrote:

Hi Vincent,

I mean that I can see the deletion on the Activity Stream, with "tree 
representation" I mean the pages' tree in the Dashboard and I didn't noticed 
any error.

Thanks,
Giordano.

2016-01-05 16:25 GMT+01:00 vinc...@massol.net :
Hi,

On 5 Jan 2016 at 16:20:52, Giordano Ninonà 
(giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:

> Hi users,
>
> I'm developing a java component that offer APIs accessed through script
> services to perfom modification to the wiki.
>
> When I delete a document (thus the related page I guessed) from my java
> code with the "*.deleteDocument(doc, context)*", on my browser I see the
> last modification as a page deletion but the page is still accessible on
> the tree representation.

What tree?

Are you talking about the Activity Stream or something else?

Deleted documents are deleted so if your doc still appears then it’s not been 
deleted (maybe there was an error?).

Thanks
-Vincent

> The XWikiDocument's method ".setHidden(true)" solve my problem, but I can't
> catch the relations between xwiki pages-->Documents-->Document reference
> and how to handle deletion of non-terminal pages preserving the information
> contained in them like: the wiki and the nested page to whom they had been
> belonged, the content and the comments.
>
> Thanks for your help,
> Giordano.


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Thomas Mortagne
He is talking about XWikiDocument so I guess he is using
com.xpn.xwiki.XWiki and not the scripting API.

On Tue, Jan 5, 2016 at 4:47 PM, vinc...@massol.net  wrote:
> Note that there’s no deleteDocument() in the class represented by the $xwiki 
> binding so IMO you’ve just not deleted anything :)
>
> Thanks
> -Vincent
>
>
> On 5 Jan 2016 at 16:45:30, vinc...@massol.net (vinc...@massol.net) wrote:
>
> You might be using some wrong API.
>
> I’ve tested this and it works fine:
>
> {{velocity}}
> * Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()
> #set ($newDoc = $xwiki.getDocument('Main.TestPage'))
> #set ($discard = $newDoc.setContent('test'))
> #set ($discard = $newDoc.save())
> * Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()
> #set ($discard = $newDoc.delete())
> * Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()
> {{velocity}}
>
> Hope it helps,
> -Vincent
>
> On 5 Jan 2016 at 16:39:02, Giordano Ninonà 
> (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:
>
>> Hi Vincent,
>>
>> I mean that I can see the deletion on the Activity Stream, with "tree 
>> representation" I mean the pages' tree in the Dashboard and I didn't noticed 
>> any error.
>>
>> Thanks,
>> Giordano.
>>
>> 2016-01-05 16:25 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net) :
>> > Hi,
>> > On 5 Jan 2016 at 16:20:52, Giordano Ninonà 
>> > (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)(mailto:giordano.nin...@gmail.com))
>> >  wrote:
>> >
>> > > Hi users,
>> > >
>> > > I'm developing a java component that offer APIs accessed through script
>> > > services to perfom modification to the wiki.
>> > >
>> > > When I delete a document (thus the related page I guessed) from my java
>> > > code with the "*.deleteDocument(doc, context)*", on my browser I see the
>> > > last modification as a page deletion but the page is still accessible on
>> > > the tree representation.
>> >
>> > What tree?
>> >
>> > Are you talking about the Activity Stream or something else?
>> >
>> > Deleted documents are deleted so if your doc still appears then it’s not 
>> > been deleted (maybe there was an error?).
>> >
>> > Thanks
>> > -Vincent
>> >
>> > > The XWikiDocument's method ".setHidden(true)" solve my problem, but I 
>> > > can't
>> > > catch the relations between xwiki pages-->Documents-->Document reference
>> > > and how to handle deletion of non-terminal pages preserving the 
>> > > information
>> > > contained in them like: the wiki and the nested page to whom they had 
>> > > been
>> > > belonged, the content and the comments.
>> > >
>> > > Thanks for your help,
>> > > Giordano.
>> >
>>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net
Note that there’s no deleteDocument() in the class represented by the $xwiki 
binding so IMO you’ve just not deleted anything :)

Thanks
-Vincent


On 5 Jan 2016 at 16:45:30, vinc...@massol.net (vinc...@massol.net) wrote:

You might be using some wrong API.  

I’ve tested this and it works fine:  

{{velocity}}  
* Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()  
#set ($newDoc = $xwiki.getDocument('Main.TestPage'))  
#set ($discard = $newDoc.setContent('test'))  
#set ($discard = $newDoc.save())  
* Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()  
#set ($discard = $newDoc.delete())  
* Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()  
{{velocity}}  

Hope it helps,  
-Vincent  

On 5 Jan 2016 at 16:39:02, Giordano Ninonà 
(giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:  

> Hi Vincent,  
>  
> I mean that I can see the deletion on the Activity Stream, with "tree 
> representation" I mean the pages' tree in the Dashboard and I didn't noticed 
> any error.  
>  
> Thanks,  
> Giordano.  
>  
> 2016-01-05 16:25 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net) :  
> > Hi,  
> > On 5 Jan 2016 at 16:20:52, Giordano Ninonà 
> > (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)(mailto:giordano.nin...@gmail.com))
> >  wrote:  
> >  
> > > Hi users,  
> > >  
> > > I'm developing a java component that offer APIs accessed through script  
> > > services to perfom modification to the wiki.  
> > >  
> > > When I delete a document (thus the related page I guessed) from my java  
> > > code with the "*.deleteDocument(doc, context)*", on my browser I see the  
> > > last modification as a page deletion but the page is still accessible on  
> > > the tree representation.  
> >  
> > What tree?  
> >  
> > Are you talking about the Activity Stream or something else?  
> >  
> > Deleted documents are deleted so if your doc still appears then it’s not 
> > been deleted (maybe there was an error?).  
> >  
> > Thanks  
> > -Vincent  
> >  
> > > The XWikiDocument's method ".setHidden(true)" solve my problem, but I 
> > > can't  
> > > catch the relations between xwiki pages-->Documents-->Document reference  
> > > and how to handle deletion of non-terminal pages preserving the 
> > > information  
> > > contained in them like: the wiki and the nested page to whom they had 
> > > been  
> > > belonged, the content and the comments.  
> > >  
> > > Thanks for your help,  
> > > Giordano.  
> >  
>  

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net
You might be using some wrong API.

I’ve tested this and it works fine:

{{velocity}}
* Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()
#set ($newDoc = $xwiki.getDocument('Main.TestPage'))
#set ($discard = $newDoc.setContent('test'))
#set ($discard = $newDoc.save())
* Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()
#set ($discard = $newDoc.delete())
* Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()
{{velocity}}

Hope it helps,
-Vincent

On 5 Jan 2016 at 16:39:02, Giordano Ninonà 
(giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:

> Hi Vincent,
>  
> I mean that I can see the deletion on the Activity Stream, with "tree 
> representation" I mean the pages' tree in the Dashboard and I didn't noticed 
> any error.
>  
> Thanks,
> Giordano.
>  
> 2016-01-05 16:25 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net) :
> > Hi,  
> > On 5 Jan 2016 at 16:20:52, Giordano Ninonà 
> > (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)(mailto:giordano.nin...@gmail.com))
> >  wrote:
> >  
> > > Hi users,
> > >
> > > I'm developing a java component that offer APIs accessed through script
> > > services to perfom modification to the wiki.
> > >
> > > When I delete a document (thus the related page I guessed) from my java
> > > code with the "*.deleteDocument(doc, context)*", on my browser I see the
> > > last modification as a page deletion but the page is still accessible on
> > > the tree representation.  
> >  
> > What tree?  
> >  
> > Are you talking about the Activity Stream or something else?  
> >  
> > Deleted documents are deleted so if your doc still appears then it’s not 
> > been deleted (maybe there was an error?).  
> >  
> > Thanks  
> > -Vincent
> >  
> > > The XWikiDocument's method ".setHidden(true)" solve my problem, but I 
> > > can't
> > > catch the relations between xwiki pages-->Documents-->Document reference
> > > and how to handle deletion of non-terminal pages preserving the 
> > > information
> > > contained in them like: the wiki and the nested page to whom they had been
> > > belonged, the content and the comments.
> > >
> > > Thanks for your help,
> > > Giordano.
> >  
>  

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Giordano Ninonà
Hi Vincent,

I mean that I can see the deletion on the Activity Stream, with "tree
representation" I mean the pages' tree in the Dashboard and I didn't
noticed any error.

Thanks,
Giordano.

2016-01-05 16:25 GMT+01:00 vinc...@massol.net :

> Hi,
>
> On 5 Jan 2016 at 16:20:52, Giordano Ninonà (giordano.nin...@gmail.com
> (mailto:giordano.nin...@gmail.com)) wrote:
>
> > Hi users,
> >
> > I'm developing a java component that offer APIs accessed through script
> > services to perfom modification to the wiki.
> >
> > When I delete a document (thus the related page I guessed) from my java
> > code with the "*.deleteDocument(doc, context)*", on my browser I see the
> > last modification as a page deletion but the page is still accessible on
> > the tree representation.
>
> What tree?
>
> Are you talking about the Activity Stream or something else?
>
> Deleted documents are deleted so if your doc still appears then it’s not
> been deleted (maybe there was an error?).
>
> Thanks
> -Vincent
>
> > The XWikiDocument's method ".setHidden(true)" solve my problem, but I
> can't
> > catch the relations between xwiki pages-->Documents-->Document reference
> > and how to handle deletion of non-terminal pages preserving the
> information
> > contained in them like: the wiki and the nested page to whom they had
> been
> > belonged, the content and the comments.
> >
> > Thanks for your help,
> > Giordano.
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net
Hi,

On 5 Jan 2016 at 16:20:52, Giordano Ninonà 
(giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:

> Hi users,
>  
> I'm developing a java component that offer APIs accessed through script
> services to perfom modification to the wiki.
>  
> When I delete a document (thus the related page I guessed) from my java
> code with the "*.deleteDocument(doc, context)*", on my browser I see the
> last modification as a page deletion but the page is still accessible on
> the tree representation.

What tree?

Are you talking about the Activity Stream or something else?

Deleted documents are deleted so if your doc still appears then it’s not been 
deleted (maybe there was an error?).

Thanks
-Vincent

> The XWikiDocument's method ".setHidden(true)" solve my problem, but I can't
> catch the relations between xwiki pages-->Documents-->Document reference
> and how to handle deletion of non-terminal pages preserving the information
> contained in them like: the wiki and the nested page to whom they had been
> belonged, the content and the comments.
>  
> Thanks for your help,
> Giordano.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Giordano Ninonà
Hi users,

I'm developing a java component that offer APIs accessed through script
services to perfom modification to the wiki.

When I delete a document (thus the related page I guessed) from my java
code with the "*.deleteDocument(doc, context)*", on my browser I see the
last modification as a page deletion but the page is still accessible on
the tree representation.

The XWikiDocument's method ".setHidden(true)" solve my problem, but I can't
catch the relations between xwiki pages-->Documents-->Document reference
and how to handle deletion of non-terminal pages preserving the information
contained in them like: the wiki and the nested page to whom they had been
belonged, the content and the comments.

Thanks for your help,
Giordano.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users