I am trying to programmatically create new security entries.

Everything works fine apart from the fact that I am not sure how to add permissions for the owner. What I am trying to do is get behavior similar to that attained when you have an registry entry which includes:

<access action="*">
<allow-if-owner
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllowOwner"/>
</access>


I did not find anything which seems to do the job in SecurityEntry. The closest thing I could find was:

public boolean allowsUser(java.lang.String userName,
                         java.lang.String action,
                         java.lang.String ownerUserName)

but I do not know the owner name (nor do I care - I just want to set it for the current active owner).

How should I proceed about adding this owner permission? If I need to use the above method how to I get the current owner?

Thanks,
-Ron

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to