001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023
024
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface OrgLaborService {
041
046 public com.liferay.portal.model.OrgLabor addOrgLabor(long organizationId,
047 int typeId, int sunOpen, int sunClose, int monOpen, int monClose,
048 int tueOpen, int tueClose, int wedOpen, int wedClose, int thuOpen,
049 int thuClose, int friOpen, int friClose, int satOpen, int satClose)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException;
052
053 public void deleteOrgLabor(long orgLaborId)
054 throws com.liferay.portal.kernel.exception.PortalException,
055 com.liferay.portal.kernel.exception.SystemException;
056
057 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
058 public com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException;
061
062 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
063 public java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
064 long organizationId)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException;
067
068 public com.liferay.portal.model.OrgLabor updateOrgLabor(long orgLaborId,
069 int typeId, int sunOpen, int sunClose, int monOpen, int monClose,
070 int tueOpen, int tueClose, int wedOpen, int wedClose, int thuOpen,
071 int thuClose, int friOpen, int friClose, int satOpen, int satClose)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074 }