You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Shawn McKinney (JIRA)" <ji...@apache.org> on 2016/10/06 21:20:20 UTC

[jira] [Updated] (FC-186) pass tenantid for groupmgr funcs

     [ https://issues.apache.org/jira/browse/FC-186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shawn McKinney updated FC-186:
------------------------------
    Summary: pass tenantid for groupmgr funcs  (was: pass tenantid when deassign role from group)

> pass tenantid for groupmgr funcs
> --------------------------------
>
>                 Key: FC-186
>                 URL: https://issues.apache.org/jira/browse/FC-186
>             Project: FORTRESS
>          Issue Type: Sub-task
>    Affects Versions: 1.0.1
>            Reporter: Shawn McKinney
>            Assignee: Shawn McKinney
>             Fix For: 2.0.0-RC1
>
>
> anytime a mgr impl calls down into a DAO (thru the P object) the tenant id must be set onto the entity.
> Change code as shown below:
> public final class AdminMgrImpl extends Manageable implements AdminMgr, Serializable
> {
> ...
>     public void deleteRole( Role role ) throws SecurityException
>     {
> ...
>         List<Group> groups = groupP.roleGroups( outRole );
>         for ( Group group : groups )
>         {
>             group.setContextId( this.contextId );
>             groupP.deassign( group, outRole.getDn() );
>         }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)