Adds a Participant Object representing a document for XDS Exports

@param documentUniqueId The Document Entry Unique Id
@param repositoryUniqueId The Repository Unique Id of the Repository housing the document
@param homeCommunityId The Home Community Id
493126
public void addDocumentParticipantObject(String documentUniqueId, String repositoryUniqueId, String homeCommunityId)
	{
		List<TypeValuePairType> tvp = new LinkedList<>();
        //SEK - 10/19/2011 - added check for empty or null, RE: Issue Tracker artifact artf2295 (was Issue 135)
 		if (!EventUtils.isEmptyOrNull(repositoryUniqueId)) {
			tvp.add(getTypeValuePair("Repository Unique Id", repositoryUniqueId.getBytes()));
		}
		if (!EventUtils.isEmptyOrNull(homeCommunityId)) {
			tvp.add(getTypeValuePair("ihe:homeCommunityID", homeCommunityId.getBytes()));
		}
		
		addParticipantObjectIdentification(
				new RFC3881ParticipantObjectCodes.RFC3881ParticipantObjectIDTypeCodes.ReportNumber(), 
				null, 
				null, 
				tvp, 
				documentUniqueId, 
				RFC3881ParticipantObjectTypeCodes.SYSTEM, 
				RFC3881ParticipantObjectTypeRoleCodes.REPORT,
				null, 
				null);
	}
830944
@Override
    public boolean add(RepositoryConnection repoConnection) {
        boolean ret = super.add(repoConnection);
        if (repoConnection instanceof RestRepositoryConnection) {
            ((RestRepositoryConnection) repoConnection).setUserAgent(_userAgent);
        }
        return ret;
    }
8550
protected void addHome(BeanMetaData bmd) throws ContainerException {
        try {
            EJSContainer.homeOfHomes.addHome(bmd); //d200714 d429866.2 F743-26072
        } catch (Throwable ex) {
            ContainerException ex2 = new ContainerException(ex);
            Tr.error(tc, "CAUGHT_EXCEPTION_THROWING_NEW_EXCEPTION_CNTR0035E",
                     new Object[] { ex, ex2.toString() });
            throw ex2;
        }
    }
502489
public String putDocument(Document document) {
		String key = UUID.randomUUID().toString();
		documentMap.put(key, document);
		return key;
	}
670913
@Override
    public void writeDocumentHeader(XMLEventWriter writer,
                                    String repositoryHash,
                                    Date currentDate) throws JournalException {
        super.writeDocumentHeader(writer, repositoryHash, currentDate);
    }
1024608
public DocumentClient createDocumentClient(final BaseCosmosDbProperties properties) {
        val policy = ConnectionPolicy.GetDefault();
        var userAgent = (policy.getUserAgentSuffix() == null
            ? StringUtils.EMPTY
            : ';' + policy.getUserAgentSuffix()) + ';' + USER_AGENT_SUFFIX;
        if (properties.isAllowTelemetry() && GetHashMac.getHashMac() != null) {
            userAgent += ';' + GetHashMac.getHashMac();
        }
        policy.setUserAgentSuffix(userAgent);
        return new DocumentClient(properties.getUri(), properties.getKey(), policy,
            ConsistencyLevel.valueOf(properties.getConsistencyLevel()));
    }
987700
public StorageBuilder setUserCredentialsRepository( UserCredentialsRepository userCredentialsRepo, String userId )
    {
        this.userCredentialsRepo = userCredentialsRepo;
        this.userId = userId;

        return this;
    }
197648
public function addRepository($repositoryId, $repositoryUrl, $rootUrl)
    {
        if (empty($repositoryId) || empty($repositoryUrl) || empty($rootUrl)) {
            throw new CmisInvalidArgumentException(
                'Repository Id or Repository URL or Root URL is not set!',
                1408536098
            );
        }

        $this->repositoryUrls[$repositoryId] = $repositoryUrl;
        $this->rootUrls[$repositoryId] = $rootUrl;
    }
1351000
final public void addIdFromDoc(Integer docId, Long reference) {
    if (!closed && (docId != null)) {
      addSinglePoint(docId, 0, 0, docId, reference);
    }
  }
654402
@Override
    public StateIdsBuilder append(final String stateToken, final int document) {
        return doAppend(Collections.singletonList(new StateId(stateToken, document)));
    }
881454
public void addEntityId(long entityId)
    {
        if(this.entityIds == null)
            this.entityIds = new ArrayList<Long>();
        this.entityIds.add(entityId);
    }
261366
public Task<RemoteInsertOneResult> insertOne(final DocumentT document) {
    return dispatcher.dispatchTask(new Callable<RemoteInsertOneResult>() {
      @Override
      public RemoteInsertOneResult call() {
        return proxy.insertOne(document);
      }
    });
  }
210763
public void setRepository(String repository) {
        if (meta == null) {
            meta = new EventMeta();
        }
        meta.setRepository(repository);
    }
1236875
@Override
	public void addObjectToFolder(String repositoryId, String objectId, String folderId, Boolean allVersions, ExtensionsData extension) {
		multiFilingService.addObjectToFolder(repositoryId, objectId, folderId, allVersions, extension);
	}
631362
void addDocument(Document doc) throws IOException
   {
      update(Collections.<String> emptyList(), Arrays.asList(new Document[]{doc}));
   }
1068123
private Node createGroupIdLayout(Node rootNode, ArtifactDescriptor artifact) throws RepositoryException
   {
      FolderDescriptor groupId = artifact.getGroupId();
      List<String> struct_groupId = new ArrayList<String>();

      String[] items = groupId.getAsPath().split("/");

      for (String subString : items)
      {
         struct_groupId.add(subString);
      }
      Node groupIdTail = rootNode;

      for (Iterator<String> iterator = struct_groupId.iterator(); iterator.hasNext();)
      {
         String name = iterator.next();
         Node levelNode;
         // Node do not has such child nodes
         if (!groupIdTail.hasNode(name))
         {
            levelNode = groupIdTail.addNode(name, "nt:folder");
            levelNode.addMixin("exo:groupId");
         }
         else
         {
            levelNode = groupIdTail.getNode(name);
         }
         groupIdTail = levelNode;
      }

      return groupIdTail;
   }
75070
public static void assertNodeExistById(final Session session, final String itemId) throws RepositoryException {
        try {
            session.getNodeByIdentifier(itemId);
        } catch (final ItemNotFoundException e) {
            LOG.debug("Item with id {} does not exist", itemId, e);
            fail(e.getMessage());
        }
    }