Hi Hilton,

Yours looks correct. The publicPermission requires the condensed name, in
Java parlance that would be the Class.getSimpleName(), for each media
filter, thus the name of the class, or name of the java file for each media
filter. I'll call it condensed without spaces form.
filter.org.dspace.app.mediafilter.publicPermission = JPEGFilter,
XPDF2Thumbnail, BrandedPreviewJPEGFilter

Once you upgrade to 5.x, and use the ImageMagick media filter, then you'll
be able to drop the extra build pice of -Pxpdf-mediafilter-support, but I'm
guessing you need that now, while your using xpdf.

________________
Peter Dietz
Longsight
www.longsight.com
pe...@longsight.com
p: 740-599-5005 x809

On Wed, Apr 1, 2015 at 9:44 AM, Hilton Gibson <hilton.gib...@gmail.com>
wrote:

> Hi All
>
> Is this correctly documented then:
> http://wiki.lib.sun.ac.za/index.php/SUNScholar/Media_Filters/4.X#Step_4F
> and
> http://wiki.lib.sun.ac.za/index.php/SUNScholar/Media_Filters/5.X#Permissions
>
> Cheers
>
> hg
>
> *Hilton Gibson*
> Ubuntu Linux Systems Administrator
> JS Gericke Library
> Room 1025C
> Stellenbosch University
> Private Bag X5036
> Stellenbosch
> 7599
> South Africa
>
> Tel: +27 21 808 4100 | Cell: +27 84 646 4758
>
> On 1 April 2015 at 15:36, Peter Dietz <pe...@longsight.com> wrote:
>
>> The permissions are set by MediaFilterManager
>> <https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L781>,
>> so the individual media filters don't have to account for this permission
>> feature.
>>
>> I did figure out what the issue was though. You have to use the condensed
>> name of the media filter task (without spaces,
>> ImageMagickPdfThumbnailFilter), and not the expanded name (ImageMagick PDF
>> Thumbnail) in filter.org.dspace.app.mediafilter.publicPermission
>>
>> ________________
>> Peter Dietz
>> Longsight
>> www.longsight.com
>> pe...@longsight.com
>> p: 740-599-5005 x809
>>
>> On Tue, Mar 31, 2015 at 10:29 PM, euler <esne...@seafdec.org.ph> wrote:
>>
>>> Hi Terry
>>>
>>>
>>> > Looking at the following code in MediaFilterManager, there may be a
>>> > mechanism to override the default permission behavior.
>>> >
>>> >
>>> https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L778-L789
>>>
>>> Please, can you help me how to override the default permission behavior?
>>> I
>>> don't want the thumbnails to look like this for the anonymous viewer:
>>> <http://dspace.2283337.n4.nabble.com/file/n4677262/aem-restricted.jpg>
>>>
>>> Thanks in advance,
>>> euler
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://dspace.2283337.n4.nabble.com/Generate-publicly-accessible-thumbnails-of-restricted-content-tp4677233p4677262.html
>>> Sent from the DSpace - Tech mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Dive into the World of Parallel Programming The Go Parallel Website,
>>> sponsored
>>> by Intel and developed in partnership with Slashdot Media, is your hub
>>> for all
>>> things parallel software development, from weekly thought leadership
>>> blogs to
>>> news, videos, case studies, tutorials and more. Take a look and join the
>>> conversation now. http://goparallel.sourceforge.net/
>>> _______________________________________________
>>> DSpace-tech mailing list
>>> DSpace-tech@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>> List Etiquette:
>>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub
>> for all
>> things parallel software development, from weekly thought leadership
>> blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> List Etiquette:
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to