Create a groupfinder lobby
@param queueId The target queue
@param uuid The uuid for this lobby
@return The lobby status
342584
public LobbyStatus createGroupFinderLobby(long queueId, String uuid) {
        return client.sendRpcAndWait(SERVICE, "createGroupFinderLobby", queueId, uuid);
    }
1086534
public void createUUID(final AsyncCallback<CmsUUID> callback) {

        // do not stop/start since we do not want to give any feedback to the user
        CmsRpcAction<CmsUUID> action = new CmsRpcAction<CmsUUID>() {

            /**
             * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
             */
            @Override
            public void execute() {

                getService().createUUID(this);
            }

            /**
             * @see org.opencms.gwt.client.rpc.CmsRpcAction#onResponse(java.lang.Object)
             */
            @Override
            protected void onResponse(CmsUUID result) {

                callback.onSuccess(result);
            }
        };
        action.execute();
    }
314662
@Override
	public CPOption getCPOptionByUuidAndGroupId(String uuid, long groupId)
		throws PortalException {
		return cpOptionPersistence.findByUUID_G(uuid, groupId);
	}
711860
public static com.liferay.commerce.model.CommerceRegion fetchCommerceRegionByUuidAndGroupId(
		String uuid, long groupId) {
		return getService().fetchCommerceRegionByUuidAndGroupId(uuid, groupId);
	}
308089
public DistributedIdQueue<T>      buildIdQueue()
    {
        return new DistributedIdQueue<T>
        (
            client,
            consumer,
            serializer,
            queuePath,
            factory,
            executor,
            Integer.MAX_VALUE,
            false,
            lockPath,
            maxItems,
            putInBackground,
            finalFlushMs
        );
    }
1088740
@RequestMapping(value = "/{groupId}/users", method = RequestMethod.GET)
    public ResponseEntity<Set<User>> findUsersOfGroup(@PathVariable Integer groupId) {

        try {
            Set<User> groupUsersSet = this.service.getUsersOfGroup(groupId);
            return new ResponseEntity<Set<User>>(groupUsersSet, HttpStatus.OK);
        } catch (Exception e) {
            LOG.error("Error finding group with id " + groupId + ": "
                + e.getMessage());
            return new ResponseEntity<Set<User>>(HttpStatus.NOT_FOUND);
        }
    }
923199
public static com.liferay.commerce.model.CommerceRegion getCommerceRegionByUuidAndGroupId(
		String uuid, long groupId)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().getCommerceRegionByUuidAndGroupId(uuid, groupId);
	}
960501
public static com.liferay.commerce.model.CommerceCountry fetchCommerceCountryByUuidAndGroupId(
		String uuid, long groupId) {
		return getService().fetchCommerceCountryByUuidAndGroupId(uuid, groupId);
	}
844445
@Override
	public CPInstance removeByUUID_G(String uuid, long groupId)
		throws NoSuchCPInstanceException {
		CPInstance cpInstance = findByUUID_G(uuid, groupId);

		return remove(cpInstance);
	}
968979
@Override
	public List<CommerceSubscriptionEntry> findByG_U(long groupId, long userId) {
		return findByG_U(groupId, userId, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
			null);
	}
1358647
@SuppressWarnings("unchecked")
    public <T> T getObjectByUuid(Class<T> clazz, UUID uuid) {
        final Query query = pm.newQuery(clazz, "uuid == :uuid");
        final List<T> result = (List<T>) query.execute(uuid);
        return Collections.isEmpty(result) ? null : result.get(0);
    }
953197
public static FlowContext createFlowContext(final String uuid) {
        if (null == uuid) {
            throw new IllegalArgumentException("Flow context cannot be null");
        }
        final FlowContext flowContext = new FlowContextImpl(uuid);
        addFlowContext(flowContext);
        return flowContext;
    }
873755
public GroupEntity createNewGroup(String groupId) {
    checkAuthorization(Permissions.CREATE, Resources.GROUP, null);
    return new GroupEntity(groupId);
  }
72546
private static synchronized int setId(Queue queue)
    {
        String queue_string = queue.toString();
        if (!queues.contains(queue_string))
            queues.add(queue_string);
        return queues.indexOf(queue_string);
    }
523701
@Override
	public List<CommerceNotificationQueueEntry> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
244425
public Map<String, Integer> countByStatusAndMainComponentUuids(DbSession dbSession, CeQueueDto.Status status, Set<String> projectUuids) {
    if (projectUuids.isEmpty()) {
      return emptyMap();
    }

    ImmutableMap.Builder<String, Integer> builder = ImmutableMap.builder();
    executeLargeUpdates(
      projectUuids,
      partitionOfProjectUuids -> {
        List<QueueCount> i = mapper(dbSession).countByStatusAndMainComponentUuids(status, partitionOfProjectUuids);
        i.forEach(o -> builder.put(o.getMainComponentUuid(), o.getTotal()));
      });
    return builder.build();
  }
920127
public static Key<CounterShardOperationData> key(final Key<CounterShardData> counterShardDataKey, final UUID id)
	{
		Preconditions.checkNotNull(counterShardDataKey);
		Preconditions.checkNotNull(id);

		return Key.create(counterShardDataKey, CounterShardOperationData.class, id.toString());
	}