Package com.samples.portlet.eventlisting.model

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


    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

  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

TOP

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