OrgLaborServiceSoap.java :  » Portal » liferay-portal-4.4.2 » com » liferay » portal » service » http » Java Open Source

Java Open Source » Portal » liferay portal 4.4.2 
liferay portal 4.4.2 » com » liferay » portal » service » http » OrgLaborServiceSoap.java
/**
 * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package com.liferay.portal.service.http;

import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.service.OrgLaborServiceUtil;

import java.rmi.RemoteException;

/**
 * <a href="OrgLaborServiceSoap.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class provides a SOAP utility for the
 * <code>com.liferay.portal.service.OrgLaborServiceUtil</code> service
 * utility. The static methods of this class calls the same methods of the
 * service utility. However, the signatures are different because it is
 * difficult for SOAP to support certain types.
 * </p>
 *
 * <p>
 * ServiceBuilder follows certain rules in translating the methods. For example,
 * if the method in the service utility returns a <code>java.util.List</code>,
 * that is translated to an array of
 * <code>com.liferay.portal.model.OrgLaborSoap</code>. If the method in the
 * service utility returns a <code>com.liferay.portal.model.OrgLabor</code>,
 * that is translated to a <code>com.liferay.portal.model.OrgLaborSoap</code>.
 * Methods that SOAP cannot safely wire are skipped.
 * </p>
 *
 * <p>
 * The benefits of using the SOAP utility is that it is cross platform
 * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
 * even Perl, to call the generated services. One drawback of SOAP is that it is
 * slow because it needs to serialize all calls into a text format (XML).
 * </p>
 *
 * <p>
 * You can see a list of services at
 * http://localhost:8080/tunnel-web/secure/axis. Set the property
 * <code>tunnel.servlet.hosts.allowed</code> in portal.properties to configure
 * security.
 * </p>
 *
 * <p>
 * The SOAP utility is only generated for remote services.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see com.liferay.portal.service.OrgLaborServiceUtil
 * @see com.liferay.portal.service.http.OrgLaborServiceHttp
 * @see com.liferay.portal.service.model.OrgLaborSoap
 *
 */
public class OrgLaborServiceSoap {
  public static com.liferay.portal.model.OrgLaborSoap addOrgLabor(
    long organizationId, int typeId, int sunOpen, int sunClose,
    int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
    int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
    int satOpen, int satClose) throws RemoteException {
    try {
      com.liferay.portal.model.OrgLabor returnValue = OrgLaborServiceUtil.addOrgLabor(organizationId,
          typeId, sunOpen, sunClose, monOpen, monClose, tueOpen,
          tueClose, wedOpen, wedClose, thuOpen, thuClose, friOpen,
          friClose, satOpen, satClose);

      return com.liferay.portal.model.OrgLaborSoap.toSoapModel(returnValue);
    }
    catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }

  public static void deleteOrgLabor(long orgLaborId)
    throws RemoteException {
    try {
      OrgLaborServiceUtil.deleteOrgLabor(orgLaborId);
    }
    catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }

  public static com.liferay.portal.model.OrgLaborSoap getOrgLabor(
    long orgLaborId) throws RemoteException {
    try {
      com.liferay.portal.model.OrgLabor returnValue = OrgLaborServiceUtil.getOrgLabor(orgLaborId);

      return com.liferay.portal.model.OrgLaborSoap.toSoapModel(returnValue);
    }
    catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }

  public static com.liferay.portal.model.OrgLaborSoap[] getOrgLabors(
    long organizationId) throws RemoteException {
    try {
      java.util.List returnValue = OrgLaborServiceUtil.getOrgLabors(organizationId);

      return com.liferay.portal.model.OrgLaborSoap.toSoapModels(returnValue);
    }
    catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }

  public static com.liferay.portal.model.OrgLaborSoap updateOrgLabor(
    long orgLaborId, int sunOpen, int sunClose, int monOpen, int monClose,
    int tueOpen, int tueClose, int wedOpen, int wedClose, int thuOpen,
    int thuClose, int friOpen, int friClose, int satOpen, int satClose)
    throws RemoteException {
    try {
      com.liferay.portal.model.OrgLabor returnValue = OrgLaborServiceUtil.updateOrgLabor(orgLaborId,
          sunOpen, sunClose, monOpen, monClose, tueOpen, tueClose,
          wedOpen, wedClose, thuOpen, thuClose, friOpen, friClose,
          satOpen, satClose);

      return com.liferay.portal.model.OrgLaborSoap.toSoapModel(returnValue);
    }
    catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }

  private static Log _log = LogFactoryUtil.getLog(OrgLaborServiceSoap.class);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.