@Override
    public EntityEnum getEntityType(IGroupMember entity) {
        if (entity == null) {
            throw new IllegalArgumentException("Parameter must not be null");
        }

        if (IEntityGroup.class.isAssignableFrom(entity.getClass())) {
            return EntityEnum.getEntityEnum(entity.getLeafType(), true);
        } else {
            return EntityEnum.getEntityEnum(entity.getLeafType(), false);
        }
    }
@ Override public EntityEnum getEntityType ( IGroupMember entity ) { if ( entity == null ) { throw new IllegalArgumentException ( "Parameter must not be null" ) ; } if ( IEntityGroup . class . isAssignableFrom ( entity . getClass ( ) ) ) { return EntityEnum . getEntityEnum ( entity . getLeafType ( ) , true ) ; } else { return EntityEnum . getEntityEnum ( entity . getLeafType ( ) , false ) ; } }
/*
(non-Javadoc)
@see org.apereo.portal.layout.dlm.remoting.IGroupListHelper#getEntityType(org.apereo.portal.groups.IGroupMember)