Package com.liferay.object.test.util
Class TreeTestUtil
java.lang.Object
com.liferay.object.test.util.TreeTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertObjectDefinitionTree(Map<String, String[]> expectedMap, com.liferay.object.tree.Tree actualTree, com.liferay.object.service.ObjectDefinitionLocalService objectDefinitionLocalService) static voidassertObjectEntryTree(Map<String, String[]> expectedMap, com.liferay.object.tree.Tree actualTree, com.liferay.object.service.ObjectEntryLocalService objectEntryLocalService) static voidbind(com.liferay.object.service.ObjectRelationshipLocalService objectRelationshipLocalService, List<com.liferay.object.model.ObjectRelationship> objectRelationships) static com.liferay.object.tree.TreecreateObjectDefinitionTree(com.liferay.object.service.ObjectDefinitionLocalService objectDefinitionLocalService, com.liferay.object.service.ObjectRelationshipLocalService objectRelationshipLocalService, boolean published, Map<String, String[]> treeMap) static com.liferay.object.tree.TreecreateObjectEntryTree(String externalReferenceCodeSuffix, com.liferay.object.service.ObjectDefinitionLocalService objectDefinitionLocalService, com.liferay.object.service.ObjectEntryLocalService objectEntryLocalService, com.liferay.object.service.ObjectFieldLocalService objectFieldLocalService, com.liferay.object.service.ObjectRelationshipLocalService objectRelationshipLocalService, long rootObjectDefinitionId) static voiddeleteObjectDefinitionHierarchy(com.liferay.object.service.ObjectDefinitionLocalService objectDefinitionLocalService, String[] objectDefinitionNames, com.liferay.object.service.ObjectEntryLocalService objectEntryLocalService, com.liferay.object.service.ObjectRelationshipLocalService objectRelationshipLocalService) static voidforEachNodeObjectDefinition(Iterator<com.liferay.object.tree.Node> iterator, com.liferay.object.service.ObjectDefinitionLocalService objectDefinitionLocalService, com.liferay.petra.function.UnsafeConsumer<com.liferay.object.model.ObjectDefinition, Exception> unsafeConsumer) static voidforEachNodeObjectEntry(Iterator<com.liferay.object.tree.Node> iterator, com.liferay.object.service.ObjectEntryLocalService objectEntryLocalService, com.liferay.petra.function.UnsafeConsumer<com.liferay.object.model.ObjectEntry, Exception> unsafeConsumer) static com.liferay.object.model.ObjectRelationshipgetEdgeObjectRelationship(com.liferay.object.model.ObjectDefinition objectDefinition, com.liferay.object.service.ObjectRelationshipLocalService objectRelationshipLocalService, com.liferay.object.tree.Tree tree) static voidunbind(Long objectDefinitionId, com.liferay.object.service.ObjectRelationshipLocalService objectRelationshipLocalService)
-
Constructor Details
-
TreeTestUtil
public TreeTestUtil()
-
-
Method Details
-
assertObjectDefinitionTree
public static void assertObjectDefinitionTree(Map<String, String[]> expectedMap, com.liferay.object.tree.Tree actualTree, com.liferay.object.service.ObjectDefinitionLocalService objectDefinitionLocalService) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
assertObjectEntryTree
public static void assertObjectEntryTree(Map<String, String[]> expectedMap, com.liferay.object.tree.Tree actualTree, com.liferay.object.service.ObjectEntryLocalService objectEntryLocalService) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
bind
public static void bind(com.liferay.object.service.ObjectRelationshipLocalService objectRelationshipLocalService, List<com.liferay.object.model.ObjectRelationship> objectRelationships) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
createObjectDefinitionTree
public static com.liferay.object.tree.Tree createObjectDefinitionTree(com.liferay.object.service.ObjectDefinitionLocalService objectDefinitionLocalService, com.liferay.object.service.ObjectRelationshipLocalService objectRelationshipLocalService, boolean published, Map<String, String[]> treeMap) throws Exception- Throws:
Exception
-
createObjectEntryTree
public static com.liferay.object.tree.Tree createObjectEntryTree(String externalReferenceCodeSuffix, com.liferay.object.service.ObjectDefinitionLocalService objectDefinitionLocalService, com.liferay.object.service.ObjectEntryLocalService objectEntryLocalService, com.liferay.object.service.ObjectFieldLocalService objectFieldLocalService, com.liferay.object.service.ObjectRelationshipLocalService objectRelationshipLocalService, long rootObjectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteObjectDefinitionHierarchy
public static void deleteObjectDefinitionHierarchy(com.liferay.object.service.ObjectDefinitionLocalService objectDefinitionLocalService, String[] objectDefinitionNames, com.liferay.object.service.ObjectEntryLocalService objectEntryLocalService, com.liferay.object.service.ObjectRelationshipLocalService objectRelationshipLocalService) throws Exception - Throws:
Exception
-
forEachNodeObjectDefinition
public static void forEachNodeObjectDefinition(Iterator<com.liferay.object.tree.Node> iterator, com.liferay.object.service.ObjectDefinitionLocalService objectDefinitionLocalService, com.liferay.petra.function.UnsafeConsumer<com.liferay.object.model.ObjectDefinition, Exception> unsafeConsumer) throws Exception- Throws:
Exception
-
forEachNodeObjectEntry
public static void forEachNodeObjectEntry(Iterator<com.liferay.object.tree.Node> iterator, com.liferay.object.service.ObjectEntryLocalService objectEntryLocalService, com.liferay.petra.function.UnsafeConsumer<com.liferay.object.model.ObjectEntry, Exception> unsafeConsumer) throws Exception- Throws:
Exception
-
getEdgeObjectRelationship
public static com.liferay.object.model.ObjectRelationship getEdgeObjectRelationship(com.liferay.object.model.ObjectDefinition objectDefinition, com.liferay.object.service.ObjectRelationshipLocalService objectRelationshipLocalService, com.liferay.object.tree.Tree tree) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unbind
public static void unbind(Long objectDefinitionId, com.liferay.object.service.ObjectRelationshipLocalService objectRelationshipLocalService) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-