Liferay 7.0-ce-b4

com.liferay.portal.service.impl
Class LayoutLocalServiceHelper

java.lang.Object
  extended by com.liferay.portal.service.impl.LayoutLocalServiceHelper
All Implemented Interfaces:
IdentifiableOSGiService

public class LayoutLocalServiceHelper
extends Object
implements IdentifiableOSGiService


Field Summary
protected  LayoutFriendlyURLPersistence layoutFriendlyURLPersistence
           
protected  LayoutPersistence layoutPersistence
           
protected  LayoutSetPersistence layoutSetPersistence
           
protected  ResourcePermissionLocalService resourcePermissionLocalService
           
 
Constructor Summary
LayoutLocalServiceHelper()
           
 
Method Summary
 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(Layout layout)
           
 boolean hasLayoutSetPrototypeLayout(LayoutSetPrototype layoutSetPrototype, String layoutUuid)
           
 void validate(long groupId, boolean privateLayout, long layoutId, long parentLayoutId, String name, String type, boolean hidden, Map<Locale,String> friendlyURLMap, ServiceContext serviceContext)
           
 void validateFirstLayout(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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layoutFriendlyURLPersistence

@BeanReference(type=LayoutFriendlyURLPersistence.class)
protected LayoutFriendlyURLPersistence layoutFriendlyURLPersistence

layoutPersistence

@BeanReference(type=LayoutPersistence.class)
protected LayoutPersistence layoutPersistence

layoutSetPersistence

@BeanReference(type=LayoutSetPersistence.class)
protected LayoutSetPersistence layoutSetPersistence

resourcePermissionLocalService

@BeanReference(type=ResourcePermissionLocalService.class)
protected ResourcePermissionLocalService resourcePermissionLocalService
Constructor Detail

LayoutLocalServiceHelper

public LayoutLocalServiceHelper()
Method Detail

getFriendlyURL

public String getFriendlyURL(long groupId,
                             boolean privateLayout,
                             long layoutId,
                             String name,
                             String friendlyURL)
                      throws PortalException
Throws:
PortalException

getFriendlyURL

public String getFriendlyURL(String friendlyURL)

getFriendlyURLMap

public Map<Locale,String> getFriendlyURLMap(long groupId,
                                            boolean privateLayout,
                                            long layoutId,
                                            String name,
                                            Map<Locale,String> friendlyURLMap)
                                     throws PortalException
Throws:
PortalException

getNextPriority

public int getNextPriority(long groupId,
                           boolean privateLayout,
                           long parentLayoutId,
                           String sourcePrototypeLayoutUuid,
                           int defaultPriority)

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Specified by:
getOSGiServiceIdentifier in interface IdentifiableOSGiService

getParentLayoutId

public long getParentLayoutId(long groupId,
                              boolean privateLayout,
                              long parentLayoutId)

hasLayoutSetPrototypeLayout

public boolean hasLayoutSetPrototypeLayout(LayoutSetPrototype layoutSetPrototype,
                                           String layoutUuid)
                                    throws PortalException
Throws:
PortalException

validate

public void validate(long groupId,
                     boolean privateLayout,
                     long layoutId,
                     long parentLayoutId,
                     String name,
                     String type,
                     boolean hidden,
                     Map<Locale,String> friendlyURLMap,
                     ServiceContext serviceContext)
              throws PortalException
Throws:
PortalException

validateFirstLayout

public void validateFirstLayout(Layout layout)
                         throws PortalException
Throws:
PortalException

validateFirstLayout

public void validateFirstLayout(String type)
                         throws PortalException
Throws:
PortalException

validateFriendlyURL

public void validateFriendlyURL(long groupId,
                                boolean privateLayout,
                                long layoutId,
                                String friendlyURL)
                         throws PortalException
Throws:
PortalException

validateFriendlyURLs

public void validateFriendlyURLs(long groupId,
                                 boolean privateLayout,
                                 long layoutId,
                                 Map<Locale,String> friendlyURLMap)
                          throws PortalException
Throws:
PortalException

validateName

public void validateName(String name)
                  throws PortalException
Throws:
PortalException

validateName

public void validateName(String name,
                         String languageId)
                  throws PortalException
Throws:
PortalException

validateParentLayoutId

public void validateParentLayoutId(long groupId,
                                   boolean privateLayout,
                                   long layoutId,
                                   long parentLayoutId)
                            throws PortalException
Throws:
PortalException

hasGuestViewPermission

protected boolean hasGuestViewPermission(Layout layout)
                                  throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4