001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface LayoutSetLocalService {
043 public com.liferay.portal.model.LayoutSet addLayoutSet(
044 com.liferay.portal.model.LayoutSet layoutSet)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portal.model.LayoutSet createLayoutSet(long layoutSetId);
048
049 public void deleteLayoutSet(long layoutSetId)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException;
052
053 public void deleteLayoutSet(com.liferay.portal.model.LayoutSet layoutSet)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 @SuppressWarnings("unchecked")
057 public java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061 @SuppressWarnings("unchecked")
062 public java.util.List dynamicQuery(
063 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064 int end) throws com.liferay.portal.kernel.exception.SystemException;
065
066 @SuppressWarnings("unchecked")
067 public java.util.List dynamicQuery(
068 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
069 int end,
070 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071 throws com.liferay.portal.kernel.exception.SystemException;
072
073 public long dynamicQueryCount(
074 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
075 throws com.liferay.portal.kernel.exception.SystemException;
076
077 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078 public com.liferay.portal.model.LayoutSet getLayoutSet(long layoutSetId)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException;
081
082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083 public java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSets(
084 int start, int end)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088 public int getLayoutSetsCount()
089 throws com.liferay.portal.kernel.exception.SystemException;
090
091 public com.liferay.portal.model.LayoutSet updateLayoutSet(
092 com.liferay.portal.model.LayoutSet layoutSet)
093 throws com.liferay.portal.kernel.exception.SystemException;
094
095 public com.liferay.portal.model.LayoutSet updateLayoutSet(
096 com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 public com.liferay.portal.model.LayoutSet addLayoutSet(long groupId,
100 boolean privateLayout)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException;
103
104 public void deleteLayoutSet(long groupId, boolean privateLayout)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException;
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public com.liferay.portal.model.LayoutSet getLayoutSet(long groupId,
110 boolean privateLayout)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public com.liferay.portal.model.LayoutSet getLayoutSet(
116 java.lang.String virtualHost)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException;
119
120 public void updateLogo(long groupId, boolean privateLayout, boolean logo,
121 java.io.File file)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException;
124
125 public void updateLogo(long groupId, boolean privateLayout, boolean logo,
126 java.io.InputStream is)
127 throws com.liferay.portal.kernel.exception.PortalException,
128 com.liferay.portal.kernel.exception.SystemException;
129
130 public void updateLookAndFeel(long groupId, java.lang.String themeId,
131 java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException;
134
135 public com.liferay.portal.model.LayoutSet updateLookAndFeel(long groupId,
136 boolean privateLayout, java.lang.String themeId,
137 java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException;
140
141 public com.liferay.portal.model.LayoutSet updatePageCount(long groupId,
142 boolean privateLayout)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException;
145
146 public com.liferay.portal.model.LayoutSet updateSettings(long groupId,
147 boolean privateLayout, java.lang.String settings)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException;
150
151 public com.liferay.portal.model.LayoutSet updateVirtualHost(long groupId,
152 boolean privateLayout, java.lang.String virtualHost)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException;
155 }