Jahia Template Forum > How to remove public...

0 (0 Good)
0 (0 Bad)

How to remove public access of a file within a template

by  jmoumne »  2011/06/07 20:04

Hi,

I would like to [b:vvortqx6]programatically remove public access of a file within a template[/b:vvortqx6].

Looking at jahia documentation, I found the [b:vvortqx6]public[/b:vvortqx6] attribute in the [b:vvortqx6]JahiaFile[/b:vvortqx6] class.

So far I have the following code :

[code:vvortqx6]

lt;template
  • How to remove public access of a file within a template
    2011/06/07 20:04

    jmoumne Hi,<br/><br/>I would like to [b:vvortqx6]programatically remove public access of a file within a template[/b:vvortqx6].<br/><br/>Looking at jahia documentation, I found the [b:vvortqx6]public[/b:vvortqx6] attribute in the [b:vvortqx6]JahiaFile[/b:vvortqx6] class.<br/><br/>So far I have the following code :<br/><br/>[code:vvortqx6]<br/><br/>lt;template

  • Number of messages  3
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: How to remove public access of a file within a template

    by  shyrkov »  2011/06/07 20:04

    Hello Julien,

    could you, please, confirm that you would like to remove all (read) permissions (ACL entries) from a file (in the repository) and not from a field of your container? Please, also provide your Jahia version (it seems, it is Jahia 6.0 r25203).

    Kind regards
    Sergiy
  • Re: How to remove public access of a file within a template
    2011/06/07 20:04

    shyrkov Hello Julien,<br/><br/>could you, please, confirm that you would like to remove all (read) permissions (ACL entries) from a file (in the repository) and not from a field of your container? Please, also provide your Jahia version (it seems, it is Jahia 6.0 r25203).<br/><br/>Kind regards<br/>Sergiy

  • Number of messages  407
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: How to remove public access of a file within a template

    by  jmoumne »  2011/06/07 20:04

    Thank you for your reply.

    Jahia version is Jahia_EE_v6_SP1_r28889.

    I would like to remove all read permissions (ACL entries) from a file (located in the repository) programmaticaly (meaning using scriptlet or jsp tags within a template .jsp file).

    As I've described in my first post, I get the file ID through a field of a container.

    Sincerely,

    Julien
  • Re: How to remove public access of a file within a template
    2011/06/07 20:04

    jmoumne Thank you for your reply.<br/><br/>Jahia version is Jahia_EE_v6_SP1_r28889.<br/><br/>I would like to remove all read permissions (ACL entries) from a file (located in the repository) programmaticaly (meaning using scriptlet or jsp tags within a template .jsp file).<br/><br/>As I've described in my first post, I get the file ID through a field of a container.<br/><br/>Sincerely,<br/><br/>Julien

  • Number of messages  3
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page