Package com.liferay.portal.model

Examples of com.liferay.portal.model.User


      long userId, long eventId, String name, String description,
      int month, int day, int year, int hour, int minute, long locationId,
      ServiceContext serviceContext)
    throws PortalException, SystemException {

    User user = userPersistence.findByPrimaryKey(userId);

    Date now = new Date();

    Event event = EventLocalServiceUtil.fetchEvent(eventId);

    event.setModifiedDate(serviceContext.getModifiedDate(now));
    event.setName(name);
    event.setDescription(description);

    Calendar dateCal = CalendarFactoryUtil.getCalendar(user.getTimeZone());
    dateCal.set(year, month, day, hour, minute);
    Date date = dateCal.getTime();
    event.setDate(date);

    event.setLocationId(locationId);
View Full Code Here


          long userId, long groupId, String name, String description,
          int month, int day, int year, int hour, int minute, long locationId,
          ServiceContext serviceContext)
      throws PortalException, SystemException {

      User user = userPersistence.findByPrimaryKey(userId);

      Date now = new Date();

      long eventId = counterLocalService.increment(Event.class.getName());

      Event event = eventPersistence.create(eventId);

      event.setName(name);
      event.setDescription(description);

      Calendar dateCal = CalendarFactoryUtil.getCalendar(
          user.getTimeZone());
      dateCal.set(year, month, day, hour, minute);
      Date date = dateCal.getTime();
      event.setDate(date);

      event.setLocationId(locationId);

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

      super.addEvent(event);
View Full Code Here

          long userId, long eventId, String name, String description,
          int month, int day, int year, int hour, int minute,
          long locationId, ServiceContext serviceContext)
      throws PortalException, SystemException {

      User user = userPersistence.findByPrimaryKey(userId);

      Date now = new Date();

      Event event = EventLocalServiceUtil.fetchEvent(eventId);

      event.setModifiedDate(serviceContext.getModifiedDate(now));
      event.setName(name);
      event.setDescription(description);

      Calendar dateCal = CalendarFactoryUtil.getCalendar(
          user.getTimeZone());
      dateCal.set(year, month, day, hour, minute);
      Date date = dateCal.getTime();
      event.setDate(date);

      event.setLocationId(locationId);
View Full Code Here

      @Override
      protected void performAction(Object object)
        throws PortalException, SystemException {

        User user = (User)object;

        user.setModifiedDate(new Date());
        user.setLanguageId(PortletPropsValues.COMPANY_DEFAULT_LOCALE);
        user.setTimeZoneId(
          PortletPropsValues.COMPANY_DEFAULT_TIME_ZONE);

        UserLocalServiceUtil.updateUser(user);
      }
View Full Code Here

          long userId, long groupId, String name, String description,
          String streetAddress, String city, String stateOrProvince,
          String country, ServiceContext serviceContext)
  throws PortalException, SystemException {

      User user = userPersistence.findByPrimaryKey(userId);

      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);
View Full Code Here

          long userId, long locationId, String name, String description,
          String streetAddress, String city, String stateOrProvince,
          String country, ServiceContext serviceContext)
      throws PortalException, SystemException {

      User user = userPersistence.findByPrimaryKey(userId);

      Date now = new Date();

      Location location = locationPersistence.findByPrimaryKey(locationId);
View Full Code Here

      long userId, long groupId, String name, String description,
      int month, int day, int year, int hour, int minute, long locationId,
      ServiceContext serviceContext)
    throws PortalException, SystemException {

    User user = userPersistence.findByPrimaryKey(userId);

    Date now = new Date();

    long eventId = counterLocalService.increment(Event.class.getName());

    Event event = eventPersistence.create(eventId);

    event.setName(name);
    event.setDescription(description);

    Calendar dateCal = CalendarFactoryUtil.getCalendar(user.getTimeZone());
    dateCal.set(year, month, day, hour, minute);
    Date date = dateCal.getTime();
    event.setDate(date);

    event.setLocationId(locationId);

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

    super.addEvent(event);
View Full Code Here

      long userId, long eventId, String name, String description,
      int month, int day, int year, int hour, int minute, long locationId,
      ServiceContext serviceContext)
    throws PortalException, SystemException {

    User user = userPersistence.findByPrimaryKey(userId);

    Date now = new Date();

    Event event = EventLocalServiceUtil.fetchEvent(eventId);

    event.setModifiedDate(serviceContext.getModifiedDate(now));
    event.setName(name);
    event.setDescription(description);

    Calendar dateCal = CalendarFactoryUtil.getCalendar(user.getTimeZone());
    dateCal.set(year, month, day, hour, minute);
    Date date = dateCal.getTime();
    event.setDate(date);

    event.setLocationId(locationId);
View Full Code Here

      long userId, long groupId, String name, String description,
      String streetAddress, String city, String stateOrProvince,
      String country, ServiceContext serviceContext)
  throws PortalException, SystemException {

    User user = userPersistence.findByPrimaryKey(userId);

    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);
View Full Code Here

      long userId, long locationId, String name, String description,
      String streetAddress, String city, String stateOrProvince,
      String country, ServiceContext serviceContext)
    throws PortalException, SystemException {

    User user = userPersistence.findByPrimaryKey(userId);

    Date now = new Date();

    Location location = locationPersistence.findByPrimaryKey(locationId);
View Full Code Here

TOP

Related Classes of com.liferay.portal.model.User

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.