Class PreviewableResolverUtil

Object
com.liferay.portal.preview.PreviewableResolverUtil

public class PreviewableResolverUtil extends Object
Author:
Shuyang Zhou
  • Constructor Details

    • PreviewableResolverUtil

      public PreviewableResolverUtil()
  • Method Details

    • addPreviewableMap

      public static Long addPreviewableMap(Map<Class<?>,Map<Serializable,Serializable>> previewableMap)
    • getPreviewableMap

      public static Map<Serializable,Serializable> getPreviewableMap(Class<?> modelClass)
    • getPreviewId

      public static Long getPreviewId()
    • getPreviewIds

      public static Set<Long> getPreviewIds()
    • removePreviewableMap

      public static Map<Class<?>,Map<Serializable,Serializable>> removePreviewableMap(Long previewId)
    • resolve

      public static com.liferay.portal.kernel.model.BaseModel<?> resolve(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
    • resolve

      public static Collection<com.liferay.portal.kernel.model.BaseModel<?>> resolve(Collection<com.liferay.portal.kernel.model.BaseModel<?>> fromBaseModels, Collection<com.liferay.portal.kernel.model.BaseModel<?>> toBaseModels)
    • setPreviewIdWithSafeCloseable

      public static com.liferay.petra.lang.SafeCloseable setPreviewIdWithSafeCloseable(Long previewId)