Retrieves a group based on its UUID.

@param UUID
the uuid which should be searched
@return the found group or null
496091
public Group getGroupByUUID(final UUID UUID) {
        List<Group> allGroups = getGroups();

        List<Group> groups = ListFilter.filter(allGroups, new Filter<Group>() {

            @Override
            public boolean matches(Group item) {

                if (item.getUuid() != null && item.getUuid().compareTo(UUID) == 0) {
                    return true;
                } else {
                    return false;
                }
            }
        });

        if (groups.size() == 1) {
            return groups.get(0);
        } else {
            return null;
        }
    }
817594
public function getQuestion($uuid)
    {
        foreach ($this->steps as $step) {
            $questions = $step->getQuestions();
            foreach ($questions as $question) {
                if ($question->getUuid() === $uuid) {
                    return $question;
                }
            }
        }

        return null;
    }
756579
@Override
	public CPOption fetchCPOptionByUuidAndGroupId(String uuid, long groupId) {
		return cpOptionPersistence.fetchByUUID_G(uuid, groupId);
	}
527249
public static com.liferay.commerce.product.model.CPOption getCPOptionByUuidAndGroupId(
		String uuid, long groupId)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().getCPOptionByUuidAndGroupId(uuid, groupId);
	}
684084
protected WsGroup findGroupFromKey(String key) {
        WsGroup wsGroup = null;

        if (key != null) {

            GcFindGroups gcFindGroups = new GcFindGroups();
            gcFindGroups.addGroupName(key);
            WsFindGroupsResults results = gcFindGroups.execute();

            // if no results were returned, return null
            if (results != null
                    && results.getGroupResults() != null
                    && results.getGroupResults().length > 0) {

                if (LOGGER.isDebugEnabled()) {
                    LOGGER.debug(
                            "found group from key " + key + ": " + results.getGroupResults()[0]);
                }

                wsGroup = results.getGroupResults()[0];
            }
        }

        return wsGroup;
    }
19577
public function getItem($uuid)
    {
        $found = null;
        foreach ($this->items as $item) {
            if ($item->getUuid() === $uuid) {
                $found = $item;
                break;
            }
        }

        return $found;
    }
1213325
public static Group get(final UUID _uuid)
        throws CacheReloadException
    {
        final Cache<UUID, Group> cache = InfinispanCache.get().<UUID, Group>getCache(Group.IDCACHE);
        if (!cache.containsKey(_uuid) && !Group.getGroupFromDB(Group.SQL_UUID, _uuid.toString())) {
            cache.put(_uuid, Group.NULL, 100, TimeUnit.SECONDS);
        }
        final Group ret = cache.get(_uuid);
        return ret.equals(Group.NULL) ? null : ret;
    }
830581
private Group get_group_i(final String n, final boolean fwd) {
	final GroupElement e = find_i(n, fwd);
	return e != null && e instanceof Group ? (Group) e : null;
    }
1234718
@Override
	public CPOption removeByUUID_G(String uuid, long groupId)
		throws NoSuchCPOptionException {
		CPOption cpOption = findByUUID_G(uuid, groupId);

		return remove(cpOption);
	}
171181
@SuppressWarnings("unchecked")
    public <T> T getObjectByUuid(Class<T> clazz, String uuid) {
        return getObjectByUuid(clazz, UUID.fromString(uuid));
    }
1335086
public static boolean isValidUUID(String uuid) {
        return !StringUtils.isEmpty(uuid) && UUID_PATTERN.matcher(uuid).matches();
    }
1352868
@Override
	public com.liferay.commerce.product.model.CPInstance fetchCPInstanceByUuidAndGroupId(
		String uuid, long groupId) {
		return _cpInstanceLocalService.fetchCPInstanceByUuidAndGroupId(uuid,
			groupId);
	}
1101762
public static com.liferay.commerce.product.model.CPInstance fetchCPInstanceByUuidAndGroupId(
		String uuid, long groupId) {
		return getService().fetchCPInstanceByUuidAndGroupId(uuid, groupId);
	}
917567
@Override
	public CommerceCountry fetchCommerceCountryByUuidAndGroupId(String uuid,
		long groupId) {
		return commerceCountryPersistence.fetchByUUID_G(uuid, groupId);
	}
890874
public RespokeGroup getGroup(String groupIDToFind) {
        RespokeGroup group = null;

        if (null != groupIDToFind) {
            group = groups.get(groupIDToFind);
        }

        return group;
    }
213994
public static String groupFromResourceId(String id) {
        return (id != null) ? ResourceId.fromString(id).resourceGroupName() : null;
    }
1035933
private static CmsUUID toUuid(String uuid) {

        if ("null".equals(uuid) || CmsStringUtil.isEmpty(uuid)) {
            return null;
        }
        return new CmsUUID(uuid);

    }