[opencms-dev] User Role for Newsletter Module

Konstantin Ott kott at abc-digital.com
Thu May 29 17:11:57 CEST 2008


Hi Bobi,

The effect was, that some directories in the vfs didn't show the context 
menu anymore. When trying to open the context menu with the right mouse 
button nothing happened and in the log-file appeared:
ERROR [lorerTypeAccess: 235] Error reading groups of user Admin
...
Caused by: org.opencms.file.CmsDataAccessException: Unable to read 
resource "/system/orgunits/nl_Newsletter".
    at 
org.opencms.db.generic.CmsUserDriver.readOrganizationalUnit(CmsUserDriver.java:1292) 

    at 
org.opencms.db.CmsDriverManager.readOrganizationalUnit(CmsDriverManager.java:5826) 

    at 
org.opencms.db.CmsDriverManager.getRolesForResource(CmsDriverManager.java:4098) 

    at 
org.opencms.db.CmsSecurityManager.getRolesForResource(CmsSecurityManager.java:2238) 

    ... 41 more
Caused by: org.opencms.file.CmsVfsResourceNotFoundException: Unable to 
read resource "/system/orgunits/nl_Newsletter".
    at 
org.opencms.db.generic.CmsVfsDriver.readResource(CmsVfsDriver.java:1917)

the resource /system/orgunits/nl_Newsletter
is the old place of the newsletter unit
So actually it might be working, if we copy or simblink the unit, but 
this gets somehow esoteric.

so long
Konstantin

Bozidar Ilievski schrieb:
> Hi Konstantin.
>
> We had the same problem when creating a Newsletter OU.
> Wherever we created the Unit, it was always a direct child of the "root 
> organization unit".
> We did the same workaround that you described here (after creation of 
> the Newsletter unit, we just moved the folder under /system/orgunits/ to 
> the right location).
> It works fine so far.
>
> What side effects have you encountered?
>
> Regards,
> Bobi.
>
> Konstantin Ott wrote:
>   
>> hello again,
>> my workaround wont work. There are side effects we didnt wont.
>> So we still stay with the problem:
>>
>> 1. create a subunit A
>> 2. in the subunit A we create a newsletter Unit
>> 3. the newsletter Unit is not beneath the subunit A, but beneath the 
>> root organizational unit.
>>
>> Any tips to create the newsletter unit as subunit of A?
>> Konstantin Ott
>>
>>     
>>> Hi,-
>>> well this is right and works well. The problem was, that it is not 
>>> possible to create a Newsletter Unit in a subunit from the root Unit. A 
>>> newsletter Unit always has root Unit as direct parent Unit, even if you 
>>> create it in a subunit. Also it isnt possible to create a user with 
>>> Account Manager role in the newsletter Unit. So it wasn't possible to 
>>> have a Account Manager in the parent Unit of the newsletter unit that 
>>> wasnt the root Unit.
>>> But we found a way out:
>>>
>>> 1. Create a subunit with a new Account Manager
>>> 2. Create a newsletter unit
>>> 3. Move the newsletter unit in the VFS path /system/orgunits into the 
>>> directory of the subunit created in 1)
>>> Now the newsletter unit is a subunit of the subunit.
>>>
>>> Bozidar Ilievski schrieb:
>>>   
>>>       
>>>> Hi.
>>>>
>>>> I don't see what is the problem here.
>>>>
>>>> User having "Account Manager" role, can manage users in his 
>>>> Organizational Unit and any sub Organizational Unit.
>>>> He will NOT be able to edit users in the parent OUs.
>>>>
>>>> So, you only need to create this "newsletter manager" in a OU different 
>>>> than the "root organizational unit".
>>>>
>>>> Regards,
>>>>     
>>>>         
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>>     
>
>   


-- 
Mit besten Grüssen / with best regards


Konstantin Ott
abc Neue Medien | Systementwickler
___________________________________________


Albert Bauer KG

Conventstr. 1-3

22089 Hamburg | Germany

Phone: +49 40 25109-224

Fax: +49 40 25109-121

mailto:kott at abc-digital.com 

http://www.abc-digital.com

____________________________________________

Albert Bauer KG (GmbH & Co.)
P.H.G. Reproduktionsgesellschaft Conventhaus mbH
Sitz der Gesellschaft: Hamburg
Handelsregister: Amtsgericht Hamburg HRB 11120
Geschäftsführer: Harald Dau, Carsten Dau, Rolf Gehrke, Marcus Müller




More information about the opencms-dev mailing list