directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn McKinney (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FC-186) pass tenantid for groupmgr funcs
Date Thu, 06 Oct 2016 21:20:20 GMT

     [ 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)

Mime
View raw message