Package com.nosester.portlet.eventlisting.model

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


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

    Location location = LocationLocalServiceUtil.getLocation(locationId);

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


  public static Location toModel(LocationSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    Location model = new LocationImpl();

    model.setLocationId(soapModel.getLocationId());
    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.setStreetAddress(soapModel.getStreetAddress());
    model.setCity(soapModel.getCity());
    model.setStateOrProvince(soapModel.getStateOrProvince());
    model.setCountry(soapModel.getCountry());

    return model;
  }
View Full Code Here

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

    Location location = (Location)obj;

    long primaryKey = location.getPrimaryKey();

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

    String country = (ParamUtil.getString(request, "country"));

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

    Location location = null;

    if (locationId <= 0) {

      location = LocationLocalServiceUtil.addLocation(
        serviceContext.getUserId(), serviceContext.getScopeGroupId(), name, description,
View Full Code Here

    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 void addLocationResources(
      long locationId, boolean addGroupPermissions,
      boolean addGuestPermissions)
    throws PortalException, SystemException {

    Location location = locationPersistence.fetchByPrimaryKey(locationId);

    addLocationResources(
      location, addGroupPermissions, addGuestPermissions);
  }
View Full Code Here

  public void addLocationResources(
      long locationId, String[] groupPermissions,
      String[] guestPermissions)
    throws PortalException, SystemException {

    Location location = locationPersistence.fetchByPrimaryKey(locationId);

    addLocationResources(location, groupPermissions, guestPermissions);
  }
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

   */
  @Override
  public Location findByGroupId_First(long groupId,
    OrderByComparator orderByComparator)
    throws NoSuchLocationException, SystemException {
    Location location = fetchByGroupId_First(groupId, orderByComparator);

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

View Full Code Here

TOP

Related Classes of com.nosester.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.