You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Frank Otto <ot...@delta-barth.de> on 2010/08/18 16:10:35 UTC

rename jetspeed page

  Hi,

I have a existing jetspeed page. How can I rename it with ajax api?


kind regards,

frank



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: rename jetspeed page

Posted by David Sean Taylor <d....@onehippo.com>.
On Tue, Aug 24, 2010 at 12:12 AM, Frank Otto <ot...@delta-barth.de> wrote:
>  Ok, but how can I change title and short-title?
>


http://localhost:8080/jetspeed/ajaxapi/Public/public.psml?action=updatepage&method=info&title=NewTitle&short-title=NewShortTitle

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: rename jetspeed page

Posted by Frank Otto <ot...@delta-barth.de>.
  Ok, but how can I change title and short-title?

Am 23.08.2010 19:35, schrieb David Sean Taylor:
> On Mon, Aug 23, 2010 at 6:10 AM, Frank Otto<ot...@delta-barth.de>  wrote:
>>   I use jetspeed 2.2.0. Is there the rest api in this version? I get http
>> status 404 on open .http://.../<context_path>/services/...
>>
> The APIs I recommended are only available in 2.2.1. In 2.2.0, you can
> use the older "Ajax APIs":
>
> http://localhost:8080/jetspeed/ajaxapi/Public/public.psml?action=updatepage&method=move&destination=/Shared&name=public2.psml
>
> The example above moves the public.psml page from the /Public folder
> to the /Shared folder and renames it to public2.psml
>
> Note: there is also a "copy" method
>
> Note: you can also rename a folder similarly with the "updatefolder" action
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: rename jetspeed page

Posted by David Sean Taylor <d....@onehippo.com>.
On Mon, Aug 23, 2010 at 6:10 AM, Frank Otto <ot...@delta-barth.de> wrote:
>  I use jetspeed 2.2.0. Is there the rest api in this version? I get http
> status 404 on open .http://.../<context_path>/services/...
>
The APIs I recommended are only available in 2.2.1. In 2.2.0, you can
use the older "Ajax APIs":

http://localhost:8080/jetspeed/ajaxapi/Public/public.psml?action=updatepage&method=move&destination=/Shared&name=public2.psml

The example above moves the public.psml page from the /Public folder
to the /Shared folder and renames it to public2.psml

Note: there is also a "copy" method

Note: you can also rename a folder similarly with the "updatefolder" action

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: rename jetspeed page

Posted by Frank Otto <ot...@delta-barth.de>.
  I use jetspeed 2.2.0. Is there the rest api in this version? I get 
http status 404 on open .http://.../<context_path>/services/...

Frank

Am 18.08.2010 18:14, schrieb David Sean Taylor:
> On Wed, Aug 18, 2010 at 7:10 AM, Frank Otto<ot...@delta-barth.de>  wrote:
>>   Hi,
>>
>> I have a existing jetspeed page. How can I rename it with ajax api?
>>
> The Page Management Service is a HTTP request-based API, communicating
> over a simple REST (Representational State Transfer) protocol,
> providing information and management functionality on portal page
> nodes such as pages, folders and links. This service is accessed over
> HTTP via the "/services/pagemanagement" path on the portal URL:
>
> http://hostname/contextname/services/pagemanagement/
>
> I think you will want the "move node" api documented here:
>
> http://portals.apache.org/jetspeed-2/devguide/guide-rest-api.html
>
> See the section on "Page Management Service"
>
> or if you want to simply change the title, see the "Update Node Info"
> section of the docs
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: rename jetspeed page

Posted by David Sean Taylor <d....@onehippo.com>.
On Wed, Aug 18, 2010 at 7:10 AM, Frank Otto <ot...@delta-barth.de> wrote:
>  Hi,
>
> I have a existing jetspeed page. How can I rename it with ajax api?
>
The Page Management Service is a HTTP request-based API, communicating
over a simple REST (Representational State Transfer) protocol,
providing information and management functionality on portal page
nodes such as pages, folders and links. This service is accessed over
HTTP via the "/services/pagemanagement" path on the portal URL:

http://hostname/contextname/services/pagemanagement/

I think you will want the "move node" api documented here:

http://portals.apache.org/jetspeed-2/devguide/guide-rest-api.html

See the section on "Page Management Service"

or if you want to simply change the title, see the "Update Node Info"
section of the docs

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org