001
014
015 package com.liferay.portal.kernel.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022 import com.liferay.portal.kernel.model.OrgLabor;
023 import com.liferay.portal.kernel.security.access.control.AccessControlled;
024 import com.liferay.portal.kernel.transaction.Isolation;
025 import com.liferay.portal.kernel.transaction.Propagation;
026 import com.liferay.portal.kernel.transaction.Transactional;
027
028 import java.util.List;
029
030
041 @AccessControlled
042 @JSONWebService
043 @ProviderType
044 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
045 PortalException.class, SystemException.class})
046 public interface OrgLaborService extends BaseService {
047
052 public OrgLabor addOrgLabor(long organizationId, long typeId, int sunOpen,
053 int sunClose, int monOpen, int monClose, int tueOpen, int tueClose,
054 int wedOpen, int wedClose, int thuOpen, int thuClose, int friOpen,
055 int friClose, int satOpen, int satClose) throws PortalException;
056
057 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
058 public OrgLabor getOrgLabor(long orgLaborId) throws PortalException;
059
060 public OrgLabor updateOrgLabor(long orgLaborId, long typeId, int sunOpen,
061 int sunClose, int monOpen, int monClose, int tueOpen, int tueClose,
062 int wedOpen, int wedClose, int thuOpen, int thuClose, int friOpen,
063 int friClose, int satOpen, int satClose) throws PortalException;
064
065
070 public java.lang.String getOSGiServiceIdentifier();
071
072 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073 public List<OrgLabor> getOrgLabors(long organizationId)
074 throws PortalException;
075
076 public void deleteOrgLabor(long orgLaborId) throws PortalException;
077 }