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

Examples of com.liferay.samples.portlet.eventlisting.model.Location


      Date now = new Date();

      long locationId =
          counterLocalService.increment(Location.class.getName());

      Location location = locationPersistence.create(locationId);

      location.setName(name);
      location.setDescription(description);
      location.setStreetAddress(streetAddress);
      location.setCity(city);
      location.setStateOrProvince(stateOrProvince);
      location.setCountry(country);

      location.setGroupId(groupId);
      location.setCompanyId(user.getCompanyId());
      location.setUserId(user.getUserId());
      location.setCreateDate(serviceContext.getCreateDate(now));
      location.setModifiedDate(serviceContext.getModifiedDate(now));

      super.addLocation(location);

      return location;
  }
View Full Code Here


  }

  public Location deleteLocation(long locationId)
      throws PortalException, SystemException {

      Location location = locationPersistence.fetchByPrimaryKey(locationId);

      return deleteLocation(location);
  }
View Full Code Here

      User user = userPersistence.findByPrimaryKey(userId);

      Date now = new Date();

      Location location = locationPersistence.findByPrimaryKey(locationId);

      location.setName(name);
      location.setDescription(description);
      location.setStreetAddress(streetAddress);
      location.setCity(city);
      location.setStateOrProvince(stateOrProvince);
      location.setCountry(country);
      location.setModifiedDate(serviceContext.getModifiedDate(now));

      super.updateLocation(location);

      return location;
  }
View Full Code Here

TOP

Related Classes of com.liferay.samples.portlet.eventlisting.model.Location

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.