private boolean checkAccessOnChild(final Classification _parent,
                                       final Instance _instance,
                                       final AccessType _accessType)
        throws EFapsException
    {
        boolean ret = false;
        if (!_parent.isAbstract()) {
            ret = _parent.hasAccess(getInstance4Classification(_instance, _parent), _accessType);
        }
        if (!ret) {
            for (final Classification childClass : _parent.getChildClassifications()) {
                ret = childClass.hasAccess(getInstance4Classification(_instance, childClass), _accessType);
                if (ret) {
                    break;
                }
            }
        }
        return ret;
    }
private boolean checkAccessOnChild ( final Classification _parent , final Instance _instance , final AccessType _accessType ) throws EFapsException { boolean ret = false ; if ( ! _parent . isAbstract ( ) ) { ret = _parent . hasAccess ( getInstance4Classification ( _instance , _parent ) , _accessType ) ; } if ( ! ret ) { for ( final Classification childClass : _parent . getChildClassifications ( ) ) { ret = childClass . hasAccess ( getInstance4Classification ( _instance , childClass ) , _accessType ) ; if ( ret ) { break ; } } } return ret ; }
@param _parent parent to iterate down
@param _instance instance to check
@param _accessType   accesstype
@return true of access is granted
@throws EFapsException on error