public class PrintCockpitUtilities extends Object
| Constructor and Description |
|---|
PrintCockpitUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAdjustedUrl(String url)
Adjust an URL string by precede a "~", if it's not already the first character and the URL is not absolute
|
static TypeService |
getCockpitTypeService() |
static HybrisEnumValue |
getEnumByCode(String code,
List<HybrisEnumValue> list)
Check if an HybrisEnumValue object with a given code is contained within a list and return this object.
|
static ModelHelper |
getModelHelper() |
static ModelService |
getModelService() |
static boolean |
isChapter(TypedObject object) |
static boolean |
isChapterType(ObjectType type) |
static boolean |
isPage(TypedObject object) |
static boolean |
isPageType(ObjectType type) |
static boolean |
isPlacement(TypedObject object) |
static boolean |
isPlacementType(ObjectType type) |
static boolean |
isPublication(TypedObject object) |
static boolean |
isPublicationType(ObjectType type) |
static void |
setPublicationRecursively(Collection<TypedObject> elements,
PublicationModel publication,
List<UndoableOperation> operations)
Sets publication recursively for all elements in given collection
|
static void |
setPublicationRecursivelyForChapter(TypedObject chapterObject,
PublicationModel publication,
List<UndoableOperation> operations)
Sets publication for given chapter and all subelements
|
static void |
setPublicationRecursivelyForPage(TypedObject pageObject,
PublicationModel publication,
List<UndoableOperation> operations)
Sets publication for given page and all subelements
|
public static String getAdjustedUrl(String url)
url - a string containing the URLpublic static HybrisEnumValue getEnumByCode(String code, List<HybrisEnumValue> list)
code - the code of the enumlist - a list of HybrisEnumValue objectspublic static void setPublicationRecursivelyForPage(TypedObject pageObject, PublicationModel publication, List<UndoableOperation> operations)
pageObject - publication - operations - public static void setPublicationRecursivelyForChapter(TypedObject chapterObject, PublicationModel publication, List<UndoableOperation> operations)
chapterObject - publication - operations - public static void setPublicationRecursively(Collection<TypedObject> elements, PublicationModel publication, List<UndoableOperation> operations)
elements - - collection of TypedObject or ItemModel implementationspublication - public static boolean isPublication(TypedObject object)
public static boolean isChapter(TypedObject object)
public static boolean isPage(TypedObject object)
public static boolean isPlacement(TypedObject object)
public static boolean isPublicationType(ObjectType type)
public static boolean isChapterType(ObjectType type)
public static boolean isPageType(ObjectType type)
public static boolean isPlacementType(ObjectType type)
public static TypeService getCockpitTypeService()
public static ModelService getModelService()
public static ModelHelper getModelHelper()
Copyright © 2017 SAP SE. All Rights Reserved.