1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface PhoneService {
50 public com.liferay.portal.model.Phone addPhone(java.lang.String className,
51 long classPK, java.lang.String number, java.lang.String extension,
52 int typeId, boolean primary)
53 throws com.liferay.portal.kernel.exception.PortalException,
54 com.liferay.portal.kernel.exception.SystemException;
55
56 public void deletePhone(long phoneId)
57 throws com.liferay.portal.kernel.exception.PortalException,
58 com.liferay.portal.kernel.exception.SystemException;
59
60 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
61 public com.liferay.portal.model.Phone getPhone(long phoneId)
62 throws com.liferay.portal.kernel.exception.PortalException,
63 com.liferay.portal.kernel.exception.SystemException;
64
65 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
66 public java.util.List<com.liferay.portal.model.Phone> getPhones(
67 java.lang.String className, long classPK)
68 throws com.liferay.portal.kernel.exception.PortalException,
69 com.liferay.portal.kernel.exception.SystemException;
70
71 public com.liferay.portal.model.Phone updatePhone(long phoneId,
72 java.lang.String number, java.lang.String extension, int typeId,
73 boolean primary)
74 throws com.liferay.portal.kernel.exception.PortalException,
75 com.liferay.portal.kernel.exception.SystemException;
76 }