public class LayoutLocalServiceHelper
extends Object
implements com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
Modifier and Type | Field and Description |
---|---|
protected com.liferay.portal.kernel.service.persistence.LayoutFriendlyURLPersistence |
layoutFriendlyURLPersistence |
protected com.liferay.portal.kernel.service.persistence.LayoutPersistence |
layoutPersistence |
protected com.liferay.portal.kernel.service.persistence.LayoutSetPersistence |
layoutSetPersistence |
protected com.liferay.portal.kernel.service.ResourcePermissionLocalService |
resourcePermissionLocalService |
Constructor and Description |
---|
LayoutLocalServiceHelper() |
Modifier and Type | Method and Description |
---|---|
String |
getFriendlyURL(long groupId,
boolean privateLayout,
long layoutId,
String name,
String friendlyURL) |
String |
getFriendlyURL(String friendlyURL) |
Map<Locale,String> |
getFriendlyURLMap(long groupId,
boolean privateLayout,
long layoutId,
String name,
Map<Locale,String> friendlyURLMap) |
int |
getNextPriority(long groupId,
boolean privateLayout,
long parentLayoutId,
String sourcePrototypeLayoutUuid,
int defaultPriority) |
String |
getOSGiServiceIdentifier() |
long |
getParentLayoutId(long groupId,
boolean privateLayout,
long parentLayoutId) |
protected boolean |
hasGuestViewPermission(com.liferay.portal.kernel.model.Layout layout) |
boolean |
hasLayoutSetPrototypeLayout(com.liferay.portal.kernel.model.LayoutSetPrototype layoutSetPrototype,
String layoutUuid) |
void |
validate(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
String name,
String type,
boolean hidden,
Map<Locale,String> friendlyURLMap,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
validateFirstLayout(com.liferay.portal.kernel.model.Layout layout) |
void |
validateFirstLayout(String type) |
void |
validateFriendlyURL(long groupId,
boolean privateLayout,
long layoutId,
String friendlyURL) |
void |
validateFriendlyURLs(long groupId,
boolean privateLayout,
long layoutId,
Map<Locale,String> friendlyURLMap) |
void |
validateName(String name) |
void |
validateName(String name,
String languageId) |
void |
validateParentLayoutId(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId) |
@BeanReference(type=com.liferay.portal.kernel.service.persistence.LayoutFriendlyURLPersistence.class) protected com.liferay.portal.kernel.service.persistence.LayoutFriendlyURLPersistence layoutFriendlyURLPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.LayoutPersistence.class) protected com.liferay.portal.kernel.service.persistence.LayoutPersistence layoutPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.LayoutSetPersistence.class) protected com.liferay.portal.kernel.service.persistence.LayoutSetPersistence layoutSetPersistence
@BeanReference(type=com.liferay.portal.kernel.service.ResourcePermissionLocalService.class) protected com.liferay.portal.kernel.service.ResourcePermissionLocalService resourcePermissionLocalService
public String getFriendlyURL(long groupId, boolean privateLayout, long layoutId, String name, String friendlyURL) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public String getFriendlyURL(String friendlyURL)
public Map<Locale,String> getFriendlyURLMap(long groupId, boolean privateLayout, long layoutId, String name, Map<Locale,String> friendlyURLMap) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public int getNextPriority(long groupId, boolean privateLayout, long parentLayoutId, String sourcePrototypeLayoutUuid, int defaultPriority)
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
public long getParentLayoutId(long groupId, boolean privateLayout, long parentLayoutId)
public boolean hasLayoutSetPrototypeLayout(com.liferay.portal.kernel.model.LayoutSetPrototype layoutSetPrototype, String layoutUuid) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void validate(long groupId, boolean privateLayout, long layoutId, long parentLayoutId, String name, String type, boolean hidden, Map<Locale,String> friendlyURLMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void validateFirstLayout(com.liferay.portal.kernel.model.Layout layout) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void validateFirstLayout(String type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void validateFriendlyURL(long groupId, boolean privateLayout, long layoutId, String friendlyURL) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void validateFriendlyURLs(long groupId, boolean privateLayout, long layoutId, Map<Locale,String> friendlyURLMap) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void validateName(String name) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void validateName(String name, String languageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void validateParentLayoutId(long groupId, boolean privateLayout, long layoutId, long parentLayoutId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected boolean hasGuestViewPermission(com.liferay.portal.kernel.model.Layout layout) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException