コード例 #1
0
  /**
   * Adds the asset vocabulary to the database. Also notifies the appropriate model listeners.
   *
   * @param assetVocabulary the asset vocabulary
   * @return the asset vocabulary that was added
   */
  @Indexable(type = IndexableType.REINDEX)
  @Override
  public AssetVocabulary addAssetVocabulary(AssetVocabulary assetVocabulary) {
    assetVocabulary.setNew(true);

    return assetVocabularyPersistence.update(assetVocabulary);
  }