Package com.filenet.api.util

Examples of com.filenet.api.util.Id


  public FnId(String sid) throws RepositoryDocumentException {
    if (Strings.isNullOrEmpty(sid)) {
      throw new RepositoryDocumentException("ID is null or empty");
    }
    this.id = new Id(sid);
  }
View Full Code Here


    if (prop == null) {
      logger.log(Level.FINEST, "{0} property is null", propertyName);
      return;
    }
    if (prop instanceof PropertyId) {
      Id val = prop.getIdValue();
      if (val != null) {
        String id = val.toString();
        valuesList.add(Value.getStringValue(id.substring(1, id.length() - 1)));
      } else {
        logger.log(Level.FINEST,
            "{0} property [PropertyId] contains NULL value", propertyName);
      }
    } else if (prop instanceof PropertyIdList) {
      IdList idList = prop.getIdListValue();
      Iterator iter = idList.iterator();
      while (iter.hasNext()) {
        Id val = (Id) iter.next();
        if (val != null) {
          // Whenever the ID is retrieved from FileNet, it comes with
          // "{" and "}" surrounded and ID is in between these curly braces.
          // FileNet connector needs ID without curly braces.  Thus removing
          // the curly braces.
          String id = val.toString();
          valuesList.add(
              Value.getStringValue(id.substring(1, id.length() - 1)));
        } else {
          logger.log(Level.FINEST,
              "{0} property [PropertyIdList] contains NULL value",
View Full Code Here

  // Helper method to create object
  private IBaseObject createObject(String guid, String timeStr,
      boolean isDeletionEvent, boolean isReleasedVersion)
          throws ParseException, RepositoryDocumentException {
    Date createdTime = dateFormatter.parse(timeStr);
    Id id = new Id(guid);
    return new MockBaseObject(new FnId(id), new FnId(id),
        createdTime, isDeletionEvent, isReleasedVersion);
  }
View Full Code Here

  }

  @Override
  public IId getVersionSeriesId() throws RepositoryDocumentException {
    if (object instanceof DeletionEvent) {
      Id id = ((DeletionEvent) this.object).get_VersionSeriesId();
      return new FnId(id);
    } else {
      Id id = ((Document) this.object).get_ReleasedVersion()
          .get_VersionSeries().get_Id();
      return new FnId(id);
    }
  }
View Full Code Here

TOP

Related Classes of com.filenet.api.util.Id

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.