Examples of WallEntry


Examples of com.liferay.socialnetworking.model.WallEntry

   *
   * @param wallEntryId the primary key for the new wall entry
   * @return the new wall entry
   */
  public WallEntry create(long wallEntryId) {
    WallEntry wallEntry = new WallEntryImpl();

    wallEntry.setNew(true);
    wallEntry.setPrimaryKey(wallEntryId);

    return wallEntry;
  }
View Full Code Here

Examples of com.liferay.socialnetworking.model.WallEntry

    Session session = null;

    try {
      session = openSession();

      WallEntry wallEntry = (WallEntry)session.get(WallEntryImpl.class,
          new Long(wallEntryId));

      if (wallEntry == null) {
        if (_log.isWarnEnabled()) {
          _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + wallEntryId);
View Full Code Here

Examples of com.liferay.socialnetworking.model.WallEntry

   * @throws com.liferay.socialnetworking.NoSuchWallEntryException if a wall entry with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public WallEntry findByPrimaryKey(long wallEntryId)
    throws NoSuchWallEntryException, SystemException {
    WallEntry wallEntry = fetchByPrimaryKey(wallEntryId);

    if (wallEntry == null) {
      if (_log.isWarnEnabled()) {
        _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + wallEntryId);
      }
View Full Code Here

Examples of com.liferay.socialnetworking.model.WallEntry

   * @return the wall entry, or <code>null</code> if a wall entry with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public WallEntry fetchByPrimaryKey(long wallEntryId)
    throws SystemException {
    WallEntry wallEntry = (WallEntry)EntityCacheUtil.getResult(WallEntryModelImpl.ENTITY_CACHE_ENABLED,
        WallEntryImpl.class, wallEntryId, this);

    if (wallEntry == null) {
      Session session = null;

View Full Code Here

Examples of com.liferay.socialnetworking.model.WallEntry

   * @throws SystemException if a system exception occurred
   */
  public WallEntry[] findByGroupId_PrevAndNext(long wallEntryId,
    long groupId, OrderByComparator orderByComparator)
    throws NoSuchWallEntryException, SystemException {
    WallEntry wallEntry = findByPrimaryKey(wallEntryId);

    Session session = null;

    try {
      session = openSession();
View Full Code Here

Examples of com.liferay.socialnetworking.model.WallEntry

   * @throws SystemException if a system exception occurred
   */
  public WallEntry[] findByUserId_PrevAndNext(long wallEntryId, long userId,
    OrderByComparator orderByComparator)
    throws NoSuchWallEntryException, SystemException {
    WallEntry wallEntry = findByPrimaryKey(wallEntryId);

    Session session = null;

    try {
      session = openSession();
View Full Code Here

Examples of com.liferay.socialnetworking.model.WallEntry

   * @throws SystemException if a system exception occurred
   */
  public WallEntry[] findByG_U_PrevAndNext(long wallEntryId, long groupId,
    long userId, OrderByComparator orderByComparator)
    throws NoSuchWallEntryException, SystemException {
    WallEntry wallEntry = findByPrimaryKey(wallEntryId);

    Session session = null;

    try {
      session = openSession();
View Full Code Here

Examples of com.liferay.socialnetworking.model.WallEntry

    User user = userLocalService.getUserById(userId);
    Date now = new Date();

    long wallEntryId = counterLocalService.increment();

    WallEntry wallEntry = wallEntryPersistence.create(wallEntryId);

    wallEntry.setGroupId(groupId);
    wallEntry.setCompanyId(user.getCompanyId());
    wallEntry.setUserId(user.getUserId());
    wallEntry.setUserName(user.getFullName());
    wallEntry.setCreateDate(now);
    wallEntry.setModifiedDate(now);
    wallEntry.setComments(comments);
    wallEntry.setPostFromIpAddress("127.0.0.1");

    wallEntryPersistence.update(wallEntry, false);

    // Email
View Full Code Here

Examples of com.liferay.socialnetworking.model.WallEntry

  }

  public void deleteWallEntry(long wallEntryId)
    throws PortalException, SystemException {

    WallEntry wallEntry = wallEntryPersistence.findByPrimaryKey(
      wallEntryId);

    deleteWallEntry(wallEntry);
  }
View Full Code Here

Examples of com.liferay.socialnetworking.model.WallEntry

  }

  public WallEntry updateWallEntry(long wallEntryId, String comments)
    throws PortalException, SystemException {

    WallEntry wallEntry = wallEntryPersistence.findByPrimaryKey(
      wallEntryId);

    wallEntry.setModifiedDate(new Date());
    wallEntry.setComments(comments);

    wallEntryPersistence.update(wallEntry, false);

    return wallEntry;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.