Examples of Guestbook


Examples of com.liferay.docs.guestbook.model.Guestbook

   */
  @Override
  public Guestbook findByGroupId_First(long groupId,
    OrderByComparator orderByComparator)
    throws NoSuchGuestbookException, SystemException {
    Guestbook guestbook = fetchByGroupId_First(groupId, orderByComparator);

    if (guestbook != null) {
      return guestbook;
    }

View Full Code Here

Examples of com.liferay.docs.guestbook.model.Guestbook

   */
  @Override
  public Guestbook findByGroupId_Last(long groupId,
    OrderByComparator orderByComparator)
    throws NoSuchGuestbookException, SystemException {
    Guestbook guestbook = fetchByGroupId_Last(groupId, orderByComparator);

    if (guestbook != null) {
      return guestbook;
    }

View Full Code Here

Examples of com.liferay.docs.guestbook.model.Guestbook

   */
  @Override
  public Guestbook[] findByGroupId_PrevAndNext(long guestbookId,
    long groupId, OrderByComparator orderByComparator)
    throws NoSuchGuestbookException, SystemException {
    Guestbook guestbook = findByPrimaryKey(guestbookId);

    Session session = null;

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

Examples of com.liferay.docs.guestbook.model.Guestbook

    if (!InlineSQLHelperUtil.isEnabled(groupId)) {
      return findByGroupId_PrevAndNext(guestbookId, groupId,
        orderByComparator);
    }

    Guestbook guestbook = findByPrimaryKey(guestbookId);

    Session session = null;

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

Examples of com.liferay.docs.guestbook.model.Guestbook

   * @param guestbookId the primary key for the new guestbook
   * @return the new guestbook
   */
  @Override
  public Guestbook create(long guestbookId) {
    Guestbook guestbook = new GuestbookImpl();

    guestbook.setNew(true);
    guestbook.setPrimaryKey(guestbookId);

    String uuid = PortalUUIDUtil.generate();

    guestbook.setUuid(uuid);

    return guestbook;
  }
View Full Code Here

Examples of com.liferay.docs.guestbook.model.Guestbook

    Session session = null;

    try {
      session = openSession();

      Guestbook guestbook = (Guestbook)session.get(GuestbookImpl.class,
          primaryKey);

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

Examples of com.liferay.docs.guestbook.model.Guestbook

   * @throws SystemException if a system exception occurred
   */
  @Override
  public Guestbook findByPrimaryKey(Serializable primaryKey)
    throws NoSuchGuestbookException, SystemException {
    Guestbook guestbook = fetchByPrimaryKey(primaryKey);

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

Examples of com.liferay.docs.guestbook.model.Guestbook

   * @throws SystemException if a system exception occurred
   */
  @Override
  public Guestbook fetchByPrimaryKey(Serializable primaryKey)
    throws SystemException {
    Guestbook guestbook = (Guestbook)EntityCacheUtil.getResult(GuestbookModelImpl.ENTITY_CACHE_ENABLED,
        GuestbookImpl.class, primaryKey);

    if (guestbook == _nullGuestbook) {
      return null;
    }
View Full Code Here

Examples of com.liferay.docs.guestbook.model.Guestbook

  @Override
  public AssetRenderer getAssetRenderer(long classPK, int type)
    throws PortalException, SystemException {

    Guestbook guestbook = GuestbookLocalServiceUtil.getGuestbook(classPK);

    return new GuestbookAssetRenderer(guestbook);
  }
View Full Code Here

Examples of com.liferay.docs.guestbook.model.Guestbook

  public static boolean contains(PermissionChecker permissionChecker,
      long guestbookId, String actionId) throws PortalException,
      SystemException {

    Guestbook guestbook = GuestbookLocalServiceUtil
        .getGuestbook(guestbookId);

    return permissionChecker
        .hasPermission(guestbook.getGroupId(),
            Guestbook.class.getName(), guestbook.getGuestbookId(),
            actionId);

  }
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.