Returns all the commerce notification templates that the user has permission to view where groupId = &#63;.

@param groupId the group ID
@return the matching commerce notification templates that the user has permission to view
181484
@Override
	public List<CommerceNotificationTemplate> filterFindByGroupId(long groupId) {
		return filterFindByGroupId(groupId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
864532
@Override
	public com.liferay.commerce.model.CommerceRegion fetchCommerceRegionByUuidAndGroupId(
		String uuid, long groupId) {
		return _commerceRegionLocalService.fetchCommerceRegionByUuidAndGroupId(uuid,
			groupId);
	}
266786
@Override
	public CommerceCountry getCommerceCountryByUuidAndGroupId(String uuid,
		long groupId) throws PortalException {
		return commerceCountryPersistence.findByUUID_G(uuid, groupId);
	}
1049144
public static List<CommerceWarehouse> findByG_C_P(long groupId,
		long commerceCountryId, boolean primary) {
		return getPersistence().findByG_C_P(groupId, commerceCountryId, primary);
	}
798153
@Override
	public List<CommerceNotificationTemplateUserSegmentRel> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
38287
@Override
	public List<CommerceTaxMethod> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
81121
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceNotificationQueueEntry commerceNotificationQueueEntry : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceNotificationQueueEntry);
		}
	}
1301522
public static List<CommerceCountry> findByG_S_A(long groupId,
		boolean shippingAllowed, boolean active) {
		return getPersistence().findByG_S_A(groupId, shippingAllowed, active);
	}
968979
@Override
	public List<CommerceSubscriptionEntry> findByG_U(long groupId, long userId) {
		return findByG_U(groupId, userId, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
			null);
	}
285932
@Override
	public com.liferay.commerce.model.CommerceCountry getCommerceCountryByUuidAndGroupId(
		String uuid, long groupId)
		throws com.liferay.portal.kernel.exception.PortalException {
		return _commerceCountryLocalService.getCommerceCountryByUuidAndGroupId(uuid,
			groupId);
	}
966209
@Override
	public List<CProduct> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1255906
@Override
	public List<CPRule> filterFindByGroupId(long groupId) {
		return filterFindByGroupId(groupId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
724914
public function findAllForGroup($groupId)
    {
        if (!$groupId) {
            return [];
        }

        if (!is_array($groupId)) {
            $groupId = [$groupId];
        }

        $cacheKey = join('_', $groupId);

        $permissions = Cache::remember($cacheKey, function () use ($groupId) {
            return $this
                ->find('list', [
                    'keyField' => 'path',
                    'valueField' => 'allowed'
                ])
                ->where([
                    'group_id IN' => $groupId,
                    'allowed >' => 0
                ])
                ->order('allowed DESC')
                ->hydrate(false)
                ->toArray();
        }, 'wasabi/core/group_permissions');

        return $permissions;
    }
383878
@Override
	public List<CommerceUserSegmentEntry> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
847834
@Override
	public List<CommercePriceList> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
917567
@Override
	public CommerceCountry fetchCommerceCountryByUuidAndGroupId(String uuid,
		long groupId) {
		return commerceCountryPersistence.fetchByUUID_G(uuid, groupId);
	}
577186
@Override
	public List<CommerceShipmentItem> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}