Ejemplo n.º 1
0
  /**
   * Adds the social activity to the database. Also notifies the appropriate model listeners.
   *
   * @param socialActivity the social activity
   * @return the social activity that was added
   * @throws SystemException if a system exception occurred
   */
  @Indexable(type = IndexableType.REINDEX)
  @Override
  public SocialActivity addSocialActivity(SocialActivity socialActivity) throws SystemException {
    socialActivity.setNew(true);

    return socialActivityPersistence.update(socialActivity);
  }