public class ObjectLink extends Object implements Serializable
Title: Represents a link between two objects.
Description: A link between two objects represents a semantic link that could create any association of sense, ownership, categorization, reference, and so on between two objects. This is a very general link definition that allows us to create dynamic links that can then be used to do data integrity checks, link data analysis, etc..
Copyright: Copyright (c) 2002
Company:
| Constructor and Description |
|---|
ObjectLink(int ID,
ObjectKey leftObjectKey,
ObjectKey rightObjectKey,
String type,
Map<String,String> commonMetadata) |
public static ObjectLink createLink(ObjectKey leftObjectKey, ObjectKey rightObjectKey, String type, int status, Date creationDate, String creationUserKey, Date lastModificationDate, String lastModificationUserKey, Map<String,String> leftObjectMetadata, Map<String,String> rightObjectMetadata, Map<String,String> commonMetadata) throws JahiaException
JahiaExceptionpublic static ObjectLink createLink(ObjectKey leftObjectKey, ObjectKey rightObjectKey, String type, Map<String,String> commonMetadata) throws JahiaException
JahiaExceptionpublic static ObjectLink getLink(int linkID) throws JahiaException
JahiaExceptionpublic static List<ObjectLink> findByLeftAndRightObjectKeys(ObjectKey leftObjectKey, ObjectKey rightObjectKey) throws JahiaException
JahiaExceptionpublic static List<ObjectLink> findByLeftObjectKey(ObjectKey leftObjectKey) throws JahiaException
JahiaExceptionpublic static List<ObjectLink> findByRightObjectKey(ObjectKey rightObjectKey) throws JahiaException
JahiaExceptionpublic static List<ObjectLink> findByTypeAndLeftAndRightObjectKeys(String type, ObjectKey leftObjectKey, ObjectKey rightObjectKey) throws JahiaException
JahiaExceptionpublic static List<ObjectLink> findByTypeAndLeftAndLikeRightObjectKeys(String type, ObjectKey leftObjectKey, String rightObjectKey) throws JahiaException
JahiaExceptionpublic static List<ObjectLink> findByTypeAndLeftObjectKey(String type, ObjectKey leftObjectKey) throws JahiaException
JahiaExceptionpublic static List<ObjectLink> findByTypeAndRightObjectKey(String type, ObjectKey rightObjectKey) throws JahiaException
JahiaExceptionpublic static List<ObjectLink> findByTypeAndRightAndLikeLeftObjectKey(String type, ObjectKey rightObjectKey, String leftObjectKey) throws JahiaException
JahiaExceptionpublic void save()
throws JahiaException
JahiaExceptionpublic void remove()
throws JahiaException
JahiaExceptionpublic void setID(int ID)
public int getID()
public ObjectKey getLeftObjectKey()
public void setLeftObjectKey(ObjectKey leftObjectKey)
public ObjectKey getRightObjectKey()
public void setRightObjectKey(ObjectKey rightObjectKey)
public String getType()
public void setType(String type)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.