Class LinkManager

java.lang.Object
de.hybris.platform.jalo.Manager
de.hybris.platform.jalo.link.LinkManager
All Implemented Interfaces:
ItemLifecycleListener, Serializable

public class LinkManager extends Manager
The manager of the link package which offers methods to create and search Link items.
See Also:
  • Field Details

    • BEAN_NAME

      public static final String BEAN_NAME
      See Also:
  • Constructor Details

    • LinkManager

      public LinkManager()
  • Method Details

    • skipChangingExistingLinks

      protected boolean skipChangingExistingLinks(SessionContext ctx)
    • getRemoteManagerClass

      public Class getRemoteManagerClass()
      Overrides:
      getRemoteManagerClass in class Manager
    • getInstance

      public static LinkManager getInstance()
      Returns:
      instance of this manager
    • checkBeforeItemRemoval

      protected void checkBeforeItemRemoval(SessionContext ctx, Item item) throws ConsistencyCheckException
      Superclass method overridden to avoid call to EJB layer
      Overrides:
      checkBeforeItemRemoval in class Manager
      Parameters:
      ctx - the current session context
      item - the item which should be removed
      Throws:
      ConsistencyCheckException - thrown to abort removal due to consistency errors
      Since:
      2.10
    • enableRelationRestrictions

      protected boolean enableRelationRestrictions()
    • getLinkedItems

      public List getLinkedItems(Item item, boolean itemIsSource, String qualifier, Language lang)
      Returns a List of all Items, which are linked to the specified Item with a Link which matches the specified qualifier and Language. If search restrictions are considered depends on the configuration of the property 'relation.restrictions.enabled' in the project|local.properties of the hybris Platform core. The default value is true.
      Parameters:
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      lang - the Language of the Link
      Returns:
      a List of all Items in the specified range, which are linked to the specified Item with a Link which matches the specified qualifier and Language
    • getLinkedItems

      public List getLinkedItems(Item item, boolean itemIsSource, String qualifier, Language lang, int start, int count)
      Returns a List of all Items in the specified range, which are linked to the specified Item with a Link which matches the specified qualifier and Language. If search restrictions are considered depends on the configuration of the property 'relation.restrictions.enabled' in the project|local.properties of the hybris Platform core. The default value is true.
      Parameters:
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      lang - the Language of the Link
      start - start index of the range
      count - number of Items in the range
      Returns:
      a List of all Items in the specified range, which are linked to the specified Item with a Link which matches the specified qualifier and Language
    • getLinkedItemsCount

      public long getLinkedItemsCount(Item item, boolean itemIsSource, String qualifier, Language lang)
      Returns a List of all Items, which are linked to the specified Item with a Link which matches the specified qualifier and Language. If search restrictions are considered depends on the configuration of the property 'relation.restrictions.enabled' in the project|local.properties of the hybris Platform core. The default value is true.
      Parameters:
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      lang - the Language of the Link
      Returns:
      a List of all Items in the specified range, which are linked to the specified Item with a Link which matches the specified qualifier and Language
    • getLinkedItems

      public List getLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language lang)
      Returns a List of all Items, which are linked to the specified Item with a Link which matches the specified qualifier and Language. If search restrictions are considered depends on the configuration of the property 'relation.restrictions.enabled' in the project|local.properties of the hybris Platform core. The default value is true.
      Parameters:
      ctx - the SessionContext, which will be used
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      lang - the Language of the Link
      Returns:
      a List of all Items in the specified range, which are linked to the specified Item with a Link which matches the specified qualifier and Language
    • getLinkedItems

      public List getLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language lang, int start, int count)
      Returns a List of all Items in the specified range, which are linked to the specified Item with a Link which matches the specified qualifier and Language. If search restrictions are considered depends on the configuration of the property 'relation.restrictions.enabled' in the project|local.properties of the hybris Platform core. The default value is true.
      Parameters:
      ctx - the SessionContext, which will be used
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      lang - the Language of the Link
      start - start index of the range
      count - number of Items in the range
      Returns:
      a List of all Items in the specified range, which are linked to the specified Item with a Link which matches the specified qualifier and Language
    • getLinkedItems

      public List getLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language lang, int start, int count, boolean sortSrc2Tgt, boolean sortTgt2Src)
    • getLinkedItemsCount

      public long getLinkedItemsCount(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language lang)
      Returns a List of all Items, which are linked to the specified Item with a Link which matches the specified qualifier and Language. If search restrictions are considered depends on the configuration of the property 'relation.restrictions.enabled' in the project|local.properties of the hybris Platform core. The default value is true.
      Parameters:
      ctx - the SessionContext, which will be used
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      lang - the Language of the Link
      Returns:
      a List of all Items in the specified range, which are linked to the specified Item with a Link which matches the specified qualifier and Language
    • getLinkedItems

      public List getLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language lang, boolean enableRestrictions)
      Returns a List of all Items, which are linked to the specified Item with a Link which matches the specified qualifier and Language.
      Parameters:
      ctx - the SessionContext, which will be used
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      lang - the Language of the Link
      enableRestrictions - if true the all defined rescrictions will be considered
      Returns:
      a List of all Items in the specified range, which are linked to the specified Item with a Link which matches the specified qualifier and Language
    • getLinkedItems

      public List getLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language lang, boolean enableRestrictions, int start, int count)
      Returns a List of all Items in the specified range, which are linked to the specified Item with a Link which matches the specified qualifier and Language.
      Parameters:
      ctx - the SessionContext, which will be used
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      lang - the Language of the Link
      enableRestrictions - if true all defined rescrictions will be considered
      start - start index of the range
      count - number of Items in the range
      Returns:
      a List of all Items in the specified range, which are linked to the specified Item with a Link which matches the specified qualifier and Language
    • getLinkedItems

      public List getLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language lang, boolean enableRestrictions, int start, int count, boolean sortSrc2Tgt, boolean sortTgt2Src)
    • getLinkedItems

      public <T> SearchResult<T> getLinkedItems(PK itemPk, boolean itemIsSource, String qualifier, PK langPk, boolean enableRestrictions, int start, int count, boolean sortSrc2Tgt, boolean sortTgt2Src)
    • getLinkedItems

      public <T> SearchResult<T> getLinkedItems(SessionContext ctx, PK itemPk, boolean itemIsSource, String qualifier, PK langPk, boolean enableRestrictions, int start, int count, boolean sortSrc2Tgt, boolean sortTgt2Src)
    • getLinkedItems

      public List getLinkedItems(SessionContext ctx, PK itemPk, boolean itemIsSource, PK langPk, String relationTypeCode, String relatedItemCode, int start, int count, boolean sortSrc2Tgt, boolean sortTgt2Src)
    • getAllLinkedItems

      public Collection getAllLinkedItems(SessionContext ctx, Collection items, boolean itemsAreSource, String qualifier, Language lang)
      Returns all linked items belonging to any of the given source or target items. Please note that the result set is not ordered but duplicates are eliminated.
      Since:
      2.20
    • getLinkedItemsCount

      public long getLinkedItemsCount(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language lang, boolean enableRestrictions)
      Returns the number of Items, which are linked to the specified Item by a Link, which matches the specified qualifier, Language.
      Parameters:
      ctx - the SessionContext, which will be used
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      lang - the Language of the Link
      enableRestrictions - if true all defined rescrictions will be considered
      Returns:
      the number of Items, which are linked to the specified Item by a Link, which matches the specified qualifier, Language
    • getLinkedItemsCount

      public long getLinkedItemsCount(SessionContext ctx, PK itemPk, boolean itemIsSource, String relationTypeCode, String relatedItemCode, PK langPk)
    • getAllLinkedItems

      public Map getAllLinkedItems(Item item, boolean itemIsSource, String qualifier)
      Returns a Map of all Items which are linked to the specified Item by localized Links with matching qualifier. The map contains { Language -> [ Item+ ] } mappings.

      If search restrictions are considered depends on the configuration of the property 'relation.restrictions.enabled' in the project|local.properties of the hybris Platform core. The default value is true.

      Parameters:
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      Returns:
      a Map of all Items which are linked to the specified Item by localized Links with matching qualifier
    • getAllLinkedItems

      public Map getAllLinkedItems(Item item, boolean itemIsSource, String qualifier, boolean enableRestrictions)
      Returns a Map of all Items which are linked to the specified Item by localized Links with matching qualifier. The map contains { Language -> [ Item+ ] } mappings.

      If search restrictions are considered depends on the configuration of the property 'relation.restrictions.enabled' in the project|local.properties of the hybris Platform core. The default value is true.

      Parameters:
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      enableRestrictions - if true all defined rescrictions will be considered
      Returns:
      a Map of all Items which are linked to the specified Item by localized Links with matching qualifier
    • setLinkedItems

      public void setLinkedItems(Item item, boolean itemIsSource, String qualifier, Language lang, List itemsToLink)
    • setLinkedItems

      public void setLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, Collection<? extends Item> items)
    • setLinkedItems

      public void setLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, Collection<? extends Item> items, boolean markModified)
    • setLinkedItems

      public void setLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, List<? extends Item> items)
      Creates new Links between the specified Item and the specified List of Items using the provided values for qualifier and Language and deletes all old Links, which match the specified qualifier, Item and Language. Depending on the value of itemIsSource the specified Item will be either the source or the target Item of the new Links.

      Parameters:
      ctx - the SessionContext, which will be used
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      language - if null, unlocalized links will be created, otherwise localized links for the specified Language will be created
      items - the List of all Items, which should be linked to the specified Item
    • setLinkedItems

      public void setLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, Collection<? extends Item> items, boolean sortSrc2Tgt, boolean sortTgt2Src, boolean markModified)
    • setLinkedItems

      public void setLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, List<? extends Item> items, boolean sortSrc2Tgt, boolean sortTgt2Src)
    • setLinkedItems

      public void setLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, List<? extends Item> items, boolean sortSrc2Tgt, boolean sortTgt2Src, boolean markModified)
    • setAllLinkedItems

      public void setAllLinkedItems(SessionContext ctx, Collection<Item> itemColl, boolean itemsAreSource, String qualifier, Language language, List<Item> items, boolean ordered)
      Mass-setter for linking a collection of items to a specified list of target items. Please note that for localized relations this will affect links for the specified language only!
      Since:
      2.20
    • setAllLinkedItems

      public void setAllLinkedItems(SessionContext ctx, Collection<Item> itemColl, boolean itemsAreSource, String qualifier, Language language, List<Item> items, boolean ordered, boolean markModified)
      Mass-setter for linking a collection of items to a specified list of target items. Please note that for localized relations this will affect links for the specified language only!
      Since:
      5.00
    • setAllLinkedItems

      public void setAllLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Map<Language,List<Item>> items)
      Creates new localized Links between the specified Item and the specified Map of Language-Items mappings using the provided qualifier and deletes all old Links, which match the specified qualifier, Item and Language. The Map must contains { Language -> [ Item+ ] } mappings.

      Depending on the value of itemIsSource the specified Item will be either the source or the target Item of the new Links.

      Parameters:
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      items - the Map of all Items, which should be linked to the specified Item
    • setAllLinkedItems

      public void setAllLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Map<Language,List<Item>> items, boolean markMpdified)
      Markmodified variant.
    • setAllLinkedItems

      public void setAllLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Map<Language,List<Item>> items, boolean sortSrc2Tgt, boolean sortTgt2Src)
    • setAllLinkedItems

      public void setAllLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Map<Language,List<Item>> items, boolean sortSrc2Tgt, boolean sortTgt2Src, boolean preserveHiddenLanguages, boolean markModified)
    • addLinkedItems

      public void addLinkedItems(Item item, boolean itemIsSource, String qualifier, Language language, List items)
      Creates new Links between the specified Item and the specified List of Items using the provided values for qualifier and Language. Depending on the value of itemIsSource the specified Item will be either the source or the target Item of the new Links.

      Parameters:
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      language - if null, unlocalized links will be created, otherwise localized links for the specified Language will be created
      items - the List of all Items, which should be linked to the specified Item
    • addLinkedItems

      public void addLinkedItems(Item item, boolean itemIsSource, String qualifier, Language language, List items, int position)
      Creates new Links between the specified Item and the specified List of Items using the provided values for qualifier and Language. Depending on the value of itemIsSource the specified Item will be either the source or the target Item of the new Links.

      Parameters:
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      language - if null, unlocalized links will be created, otherwise localized links for the specified Language will be created
      items - the List of all Items, which should be linked to the specified Item
      position - the automatically increased sequence number of the new Links will start with this number
    • addLinkedItems

      public void addLinkedItems(Item item, boolean itemIsSource, String qualifier, Language language, List items, int position, boolean shift)
      Creates new Links between the specified Item and the specified List of Items using the provided values for qualifier and Language. Depending on the value of itemIsSource the specified Item will be either the source or the target Item of the new Links.

      Parameters:
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      language - if null, unlocalized links will be created, otherwise localized links for the specified Language will be created
      items - the List of all Items, which should be linked to the specified Item
      position - the automatically increased sequence number of the new Links will start with this number
      shift - if set to true, the sequence numbers all existing Links with higher sequence number and matching qualifier, source/target Item and Language will be raised by the number of Items in items
    • addLinkedItems

      public void addLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, List items)
      Creates new Links between the specified Item and the specified List of Items using the provided values for qualifier and Language. Depending on the value of itemIsSource the specified Item will be either the source or the target Item of the new Links.

      Parameters:
      ctx - the SessionContext, which will be used
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      language - if null, unlocalized links will be created, otherwise localized links for the specified Language will be created
      items - the List of all Items, which should be linked to the specified Item
    • addLinkedItems

      public void addLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, List items, boolean markModified)
    • addLinkedItems

      public void addLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, List items, int position)
      Creates new Links between the specified Item and the specified List of Items using the provided values for qualifier and Language. Depending on the value of itemIsSource the specified Item will be either the source or the target Item of the new Links.

      Parameters:
      ctx - the SessionContext, which will be used
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      language - if null, unlocalized links will be created, otherwise localized links for the specified Language will be created
      items - the List of all Items, which should be linked to the specified Item
      position - the automatically increased sequence number of the new Links will start with this number
    • addLinkedItems

      public void addLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, List items, int position, boolean shift)
      Creates new Links between the specified Item and the specified List of Items using the provided values for qualifier and Language. Depending on the value of itemIsSource the specified Item will be either the source or the target Item of the new Links.

      Parameters:
      ctx - the SessionContext, which will be used
      item - Item on one end of the Link
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Link
      language - if null, unlocalized links will be created, otherwise localized links for the specified Language will be created
      items - the List of all Items, which should be linked to the specified Item
      position - the automatically increased sequence number of the new Links will start with this number
      shift - if set to true, the sequence numbers all existing Links with higher sequence number and matching qualifier, source/target Item and Language will be raised by the number of Items in items
    • addLinkedItems

      public void addLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, List items, int position, boolean shift, boolean markModified)
    • addLinkedItems

      public void addLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, List items, int position, boolean shift, boolean sortSrc2Tgt, boolean sortTgt2Src)
    • addLinkedItems

      public void addLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, List items, int position, boolean shift, boolean sortSrc2Tgt, boolean sortTgt2Src, boolean markModified)
    • removeLinkedItems

      public void removeLinkedItems(Item item, boolean itemIsSource, String qualifier, Language lang, List itemsToUnlink)
    • removeAllLinksFor

      public void removeAllLinksFor(SessionContext ctx, Item item)
    • hasDisabledRelations

      protected boolean hasDisabledRelations(Item item)
    • isRelationDisabled

      protected boolean isRelationDisabled(Item item, RelationType rel)
    • removeLinkedItems

      public void removeLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, List<Item> items)
      Removes all specified Items, which are linked to the specified Item by links with matching qualifier and Language.
      Parameters:
      ctx - the SessionContext, which will be used
      item - Item on one end of the Links
      itemIsSource - is the specified Item the source (true) or the target Item ( false) of the Link
      qualifier - the qualifier of the Links
      language - the Language of the Links, null for unlocalized Links
      items - List of all Items which should be removed
    • removeLinkedItems

      public void removeLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, List<Item> items, boolean sortSrc2Tgt, boolean sortTgt2Src)
    • removeLinkedItems

      public void removeLinkedItems(SessionContext ctx, Item item, boolean itemIsSource, String qualifier, Language language, List<Item> items, boolean sortSrc2Tgt, boolean sortTgt2Src, boolean markModified)
    • getLinks

      public Collection<Link> getLinks(String qualifier, Language language, Item source, Item target)
      Returns a Collection of all Links with matching qualifier, Language, source and target Item.
      The usage of wildcards always searches on all link tables because no concrete Link type can be parsed from qualifier. So using wildcards is potential slower than giving the concrete qualifier without usage of wildcards.
      Parameters:
      qualifier - the qualifier, may contain SQL wildcards, e.g. "%"
      language - the Language, or Link.ANYLANGUAGE
      source - the source Item, or Link.ANYITEM
      target - the target Item, or Link.ANYITEM
      Returns:
      a Collection of all Links with matching qualifier, Language, source and target Item
    • createLink

      @Deprecated(since="ages", forRemoval=false) public Link createLink(String qualifier, Language language, Item source, Item target, int sequenceNumber) throws ConsistencyCheckException
      Deprecated.
      since ages
      Throws:
      ConsistencyCheckException
    • createLink

      public Link createLink(String qualifier, Language language, Item source, Item target, int sequenceNumber, int reverseSequenceNumber) throws ConsistencyCheckException
      Creates a new localized Link
      Parameters:
      qualifier - the qualifier of the link (any String, for example a predefined constant like Media.PICTURE
      language - the language that defines the link's locale
      source - the source Item
      target - the target Item
      sequenceNumber - the sequence number of the new Link
      Returns:
      a new Link
      Throws:
      ConsistencyCheckException
    • createLink

      public Link createLink(String qualifier, Language language, PK sourcePK, PK targetPK, int sequenceNumber, int reverseSequenceNumber) throws ConsistencyCheckException
      Creates a new link using item PKs instead of real items as source and target. Please be aware that type safety cannot be guaranteed here so make sure the PKs really belong to the intended item type!
      Parameters:
      qualifier - the link qualifier
      language - optional: the language to qualify as localized link
      sourcePK - the pk of the source item
      targetPK - the pk of the target item
      sequenceNumber - the link position in source-target direction
      reverseSequenceNumber - the link position in target-source direction
      Returns:
      the new link
      Throws:
      ConsistencyCheckException
      Since:
      3.1-u8
    • createLinkNoWrap

      public void createLinkNoWrap(String qualifier, Language language, Item source, Item target, int sequenceNumber, int reverseSequenceNumber) throws ConsistencyCheckException
      Creates a new link just like createLink(String, Language, Item, Item, int, int) but without loading and wrapping the new link item.
      Throws:
      ConsistencyCheckException
      Since:
      3.1-u7
    • createLinkNoWrap

      public void createLinkNoWrap(String qualifier, Language language, PK sourcePK, PK targetPK, int sequenceNumber, int reverseSequenceNumber) throws ConsistencyCheckException
      Creates a new link just like createLink(String, Language, PK, PK, int, int) but without loading and wrapping the new link item.
      Throws:
      ConsistencyCheckException
      Since:
      3.1-u8
    • getLinks

      public Collection<Link> getLinks(String qualifier, Item source, Item target)
      Returns a Collection of all Links with matching qualifier, and source and target Item .
      The usage of wildcards always searches on all link tables because no concrete Link type can be parsed from qualifier. So using wildcards is potential slower than giving the concrete qualifier without usage of wildcards.
      Parameters:
      qualifier - the qualifier, may contain SQL wildcards, e.g. "%"
      source - the source Item, or Link.ANYITEM
      target - the target Item, or Link.ANYITEM
      Returns:
      a Collection of all Links with matching qualifier, Language, source and target Item
    • createLink

      @Deprecated(since="ages", forRemoval=false) public Link createLink(String qualifier, Item source, Item target, int sequenceNumber) throws ConsistencyCheckException
      Deprecated.
      since ages
      Throws:
      ConsistencyCheckException
    • createLink

      public Link createLink(String qualifier, Item source, Item target, int sequenceNumber, int reverseSequenceNumber) throws ConsistencyCheckException
      Creates a new localized Link
      Parameters:
      qualifier - the qualifier of the link (any String, for example a predefined constant like Media.PICTURE
      source - the source Item
      target - the target Item
      sequenceNumber - the sequence number of the new Link
      Returns:
      a new Link
      Throws:
      ConsistencyCheckException
    • writeReplace

      public Object writeReplace() throws ObjectStreamException
      Specified by:
      writeReplace in class Manager
      Throws:
      ObjectStreamException