コード例 #1
0
  /**
   * This method finds the SyncSet Definition Container NodeRef, creating one if it does not exist.
   *
   * @return the syncset definition container
   */
  public NodeRef getOrCreateDowloadContainer() {
    NodeRef downloadsContainer = getContainer();

    if (downloadsContainer == null) {
      if (log.isInfoEnabled()) log.info("Lazy creating the Downloads System Container ");

      downloadsContainer =
          SystemNodeUtils.getOrCreateSystemChildContainer(
                  getContainerQName(), nodeService, repositoryHelper)
              .getFirst();
    }
    return downloadsContainer;
  }
コード例 #2
0
 private NodeRef getContainer() {
   return SystemNodeUtils.getSystemChildContainer(
       getContainerQName(), nodeService, repositoryHelper);
 }