Package com.nosester.portlet.eventlisting.model

Examples of com.nosester.portlet.eventlisting.model.Event


    Session session = null;

    try {
      session = openSession();

      Event event = (Event)session.get(EventImpl.class, primaryKey);

      if (event == 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 Event findByPrimaryKey(Serializable primaryKey)
    throws NoSuchEventException, SystemException {
    Event event = fetchByPrimaryKey(primaryKey);

    if (event == 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 Event fetchByPrimaryKey(Serializable primaryKey)
    throws SystemException {
    Event event = (Event)EntityCacheUtil.getResult(EventModelImpl.ENTITY_CACHE_ENABLED,
        EventImpl.class, primaryKey);

    if (event == _nullEvent) {
      return null;
    }
View Full Code Here

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

    Event event = EventLocalServiceUtil.getEvent(eventId);

    return contains(permissionChecker, event, actionId);
  }
View Full Code Here

  public static Event toModel(EventSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    Event model = new EventImpl();

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

    return model;
  }
View Full Code Here

  public static Event toModel(EventSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    Event model = new EventImpl();

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

    return model;
  }
View Full Code Here

    if (!(obj instanceof Event)) {
      return false;
    }

    Event event = (Event)obj;

    long primaryKey = event.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    }
    else {
View Full Code Here

    if (!(obj instanceof Event)) {
      return false;
    }

    Event event = (Event)obj;

    long primaryKey = event.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    }
    else {
View Full Code Here

      }

      ServiceContext serviceContext = ServiceContextFactory.getInstance(
        Event.class.getName(), request);

      Event event = null;

      if (eventId <= 0) {
        event = EventServiceUtil.addEvent(
          serviceContext.getScopeGroupId(), name, description, month, day,
          year, hour, minute, locationId, serviceContext);
View Full Code Here

    }

    ServiceContext serviceContext = ServiceContextFactory.getInstance(
      Event.class.getName(), request);

    Event event = null;

    if (eventId <= 0) {
      event = EventServiceUtil.addEvent(
        serviceContext.getScopeGroupId(), name, description, month, day,
        year, hour, minute, locationId, serviceContext);
View Full Code Here

TOP

Related Classes of com.nosester.portlet.eventlisting.model.Event

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.