de.espirit.firstspirit.access

Interface ReferenceEntry

Parameters:
type - PAGE_STORE_REFERENCE, etc.
Returns:
true if this element is of the given type, otherwise returns false.
Since:
3.1.324
  • getReferencedObject

    @Nullable
    Object getReferencedObject()
    Returns:
    The referenced node, may be null if the node is not or no longer visible in the current session or has been deleted or the reference is broken.
    Since:
    3.1.324
  • getReferencedElement

    @Nullable
    IDProvider getReferencedElement()
    Returns:
    The referenced node, may be null if the node is not or no longer visible in the current session, or has been deleted, or the reference is broken, or referenced object is not an IDProvider.
    Since:
    4.0
  • getReferenceString

    @Nullable
    String getReferenceString()
    Returns:
    the reference name, e.g. "media:logo" or null if the referenced object cannot be referenced by name
    Since:
    3.1.324
  • getDisplayText

    String getDisplayText()
    Return a type dependent display text.
    Since:
    4.2
  • isBroken

    boolean isBroken()
    A reference may be broken, e.g. if a medium was referenced from a picture input component and the medium was deleted afterwards.
    Since:
    3.1.172
  • isRemote

    boolean isRemote()
    Returns:
    true if this reference is a remote reference.
    Since:
    3.1.324
  • getUsages

    ReferenceEntry[] getUsages()
    Returns usages of this reference. E.g. in case of a broken reference this method returns references to elements where this broken reference is still in use (and still broken).
    Returns:
    usages of this reference.
    Since:
    4.0
  • getStoreType

    @Nullable
    Store.Type getStoreType()
    Returns store-type of the referenced element or null, e.g. for external references.
    Returns:
    store-type of the referenced element or null, e.g. for external references.
    Since:
    4.2.200
  • refresh

    void refresh()
    Refreshes this reference entry, e.g. by removing cached objects, recalculating broken status or refreshing referenced elements.
    Since:
    4.2.406

Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500