[opencms-dev] Detecting offline/online
Tristan Tarrant
ttarrant at etnoteam.it
Tue Sep 28 12:00:53 CEST 2004
Use:
cms.getRequestContext().currentProject().isOnlineProject()
Tristan
On Tue, 2004-09-28 at 11:14 +0200, David Causse wrote:
> Hi,
>
> I have to develop my own ContentDefinition object with it's own WorkFlow
> process.
> My problem is : I don't know how to detect if my object is accessed by a
> user connected to the live site or a user trying to preview it's own data.
> I have implemented some static method like :
> public static Vector getDataList(..)
> that returns a list of data but I want to filter the data according to
> my workflow "published/not published" if the user is connected to online
> or offline project.
> I can add a CmsObject parameter to my methods.
>
> I'm using OpenCMS 5.0.1
>
> Thank you.
>
> David C.
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040928/f7826455/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2121 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040928/f7826455/attachment.bin>
More information about the opencms-dev
mailing list