Package com.liferay.docs.guestbook.model

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


   */
  @Override
  public Entry findByG_G_First(long groupId, long guestbookId,
    OrderByComparator orderByComparator)
    throws NoSuchEntryException, SystemException {
    Entry entry = fetchByG_G_First(groupId, guestbookId, orderByComparator);

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

View Full Code Here


   */
  @Override
  public Entry findByG_G_Last(long groupId, long guestbookId,
    OrderByComparator orderByComparator)
    throws NoSuchEntryException, SystemException {
    Entry entry = fetchByG_G_Last(groupId, guestbookId, orderByComparator);

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

View Full Code Here

   */
  @Override
  public Entry[] findByG_G_PrevAndNext(long entryId, long groupId,
    long guestbookId, OrderByComparator orderByComparator)
    throws NoSuchEntryException, SystemException {
    Entry entry = findByPrimaryKey(entryId);

    Session session = null;

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

   * @param entryId the primary key for the new entry
   * @return the new entry
   */
  @Override
  public Entry create(long entryId) {
    Entry entry = new EntryImpl();

    entry.setNew(true);
    entry.setPrimaryKey(entryId);

    String uuid = PortalUUIDUtil.generate();

    entry.setUuid(uuid);

    return entry;
  }
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      Entry entry = (Entry)session.get(EntryImpl.class, primaryKey);

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

   * @throws SystemException if a system exception occurred
   */
  @Override
  public Entry findByPrimaryKey(Serializable primaryKey)
    throws NoSuchEntryException, SystemException {
    Entry entry = fetchByPrimaryKey(primaryKey);

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

   * @throws SystemException if a system exception occurred
   */
  @Override
  public Entry fetchByPrimaryKey(Serializable primaryKey)
    throws SystemException {
    Entry entry = (Entry)EntityCacheUtil.getResult(EntryModelImpl.ENTITY_CACHE_ENABLED,
        EntryImpl.class, primaryKey);

    if (entry == _nullEntry) {
      return null;
    }
View Full Code Here

  @Override
  @SuppressWarnings("unused")
  protected void performAction(Object object)
    throws PortalException, SystemException {
    Entry stagedModel = (Entry)object;

    StagedModelDataHandlerUtil.exportStagedModel(_portletDataContext,
      stagedModel);
  }
View Full Code Here

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

    Entry entry = EntryLocalServiceUtil
        .getEntry(entryId);

    return permissionChecker
        .hasPermission(entry.getGroupId(),
            Entry.class.getName(), entry.getEntryId(),
            actionId);

  }
View Full Code Here

   */
  @Override
  public Entry findByUuid_First(String uuid,
    OrderByComparator orderByComparator)
    throws NoSuchEntryException, SystemException {
    Entry entry = fetchByUuid_First(uuid, orderByComparator);

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

View Full Code Here

TOP

Related Classes of com.liferay.docs.guestbook.model.Entry

Copyright © 2018 www.massapicom. 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.