[ 
https://issues.apache.org/jira/browse/FC-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14569099#comment-14569099
 ] 

Shawn McKinney commented on FC-109:
-----------------------------------

Yes that is the list of entities.  Was able to break the cycle between the 
UserRole entities and RoleUtil by adding an interface, 
org.apache.directory.fortress.core.model.ParentUtil to is implemented by the 
RoleUtil class.  An instance of RoleUtil is passed on invocation of the 
entity's load method and subsequently called back for the parents:

    public void load( String szRawData, String contextId, ParentUtil parentUtil 
)
    {
        if ( ( szRawData != null ) && ( szRawData.length() > 0 ) )
        {
            String[] tokens = StringUtils.splitPreserveAllTokens( szRawData, 
GlobalIds.DELIMITER );
            for ( int i = 0; i < tokens.length; i++ )
            {
                if ( VUtil.isNotNullOrEmpty( tokens[i] ) )
                {
                    switch ( i )
                    {
                        case 0:
                            name = tokens[i];
                            parents = parentUtil.getParentsCB( 
name.toUpperCase(), contextId );
                            break;



> break core package cycles
> -------------------------
>
>                 Key: FC-109
>                 URL: https://issues.apache.org/jira/browse/FC-109
>             Project: FORTRESS
>          Issue Type: Sub-task
>    Affects Versions: 1.0.0-RC41
>            Reporter: Shawn McKinney
>             Fix For: 1.0.0
>
>
> remove the package cycles from the core by moving the entities into a 
> separate package named 'model'.



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

Reply via email to