public boolean isDirectlyBlockedBy(BlockingContext cxt) { Individual parentBlocked = cxt.blocked.getParent(); Individual parentBlocker = cxt.blocker.getParent(); if( SetUtils.equals( cxt.blocked.getTypes(), cxt.blocker.getTypes() ) && SetUtils.equals( parentBlocked.getTypes(), parentBlocker.getTypes() ) ) { if( SetUtils.equals( cxt.getIncomingRoles(), BlockingContext.getIncomingRoles( cxt.blocker ) ) ) return true; } return false; } }
public boolean isDirectlyBlockedBy(BlockingContext cxt) { Individual parentBlocked = cxt.blocked.getParent(); Individual parentBlocker = cxt.blocker.getParent(); if( SetUtils.equals( cxt.blocked.getTypes(), cxt.blocker.getTypes() ) && SetUtils.equals( parentBlocked.getTypes(), parentBlocker.getTypes() ) ) { if( SetUtils.equals( cxt.getIncomingRoles(), BlockingContext.getIncomingRoles( cxt.blocker ) ) ) return true; } return false; } }