Package com.liferay.samples.portlet.eventlisting.model.impl

Examples of com.liferay.samples.portlet.eventlisting.model.impl.EventImpl


   * @param eventId the primary key for the new event
   * @return the new event
   */
  @Override
  public Event create(long eventId) {
    Event event = new EventImpl();

    event.setNew(true);
    event.setPrimaryKey(eventId);

    return event;
  }
View Full Code Here


  protected Event toUnwrappedModel(Event event) {
    if (event instanceof EventImpl) {
      return event;
    }

    EventImpl eventImpl = new EventImpl();

    eventImpl.setNew(event.isNew());
    eventImpl.setPrimaryKey(event.getPrimaryKey());

    eventImpl.setEventId(event.getEventId());
    eventImpl.setName(event.getName());
    eventImpl.setDescription(event.getDescription());
    eventImpl.setDate(event.getDate());
    eventImpl.setCompanyId(event.getCompanyId());
    eventImpl.setGroupId(event.getGroupId());
    eventImpl.setUserId(event.getUserId());
    eventImpl.setCreateDate(event.getCreateDate());
    eventImpl.setModifiedDate(event.getModifiedDate());
    eventImpl.setLocationId(event.getLocationId());

    return eventImpl;
  }
View Full Code Here

TOP

Related Classes of com.liferay.samples.portlet.eventlisting.model.impl.EventImpl

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.