public interface ReferenceEntry extends Serializable
Modifier and Type | Field and Description |
---|---|
static int |
CONTENT_REFERENCE
Reference from/to an
Entity . |
static int |
CONTENT_STORE_REFERENCE
Reference from/to a content-store element.
|
static int |
EXTERNAL_REFERENCE
External reference.
|
static int |
GLOBAL_STORE_REFERENCE
Reference from/to a global-store element.
|
static int |
MEDIA_STORE_REFERENCE
Reference from/to a media-store element.
|
static int |
PAGE_STORE_REFERENCE
Reference from/to a page-store element.
|
static int |
RELATED_PROJECT_REFERENCE
Reference from/to related project (this type is always combined with another type).
|
static int |
RENDER_TEMPLATE_REFERENCE
template:"name", e.g. in $CMS_RENDER(template:"",
|
static int |
SCRIPT_REFERENCE
script:"name", e.g. in $CMS_RENDER(script:"",
|
static int |
SITE_STORE_FOLDER_REFERENCE
pagefolder:"name", e.g. in $CMS_RENDER(pagefolder:"name",
|
static int |
SITE_STORE_REFERENCE
Reference from/to a site-store element.
|
static int |
STORE_ELEMENT_REFERENCE
Reference from/to a store element.
|
static int |
TEMPLATE_STORE_REFERENCE
Reference from/to a template-store element.
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayText()
Return a type dependent display text.
|
long |
getId() |
long |
getProjectId() |
IDProvider |
getReferencedElement() |
Object |
getReferencedObject() |
String |
getReferenceString() |
boolean |
getRelease() |
String |
getRemote()
Returns symbolic name of remote configuration.
|
Store.Type |
getStoreType()
Returns
store-type of the referenced element or null , e.g. for external references. |
int |
getType()
Get the type of this reference.
|
ReferenceEntry[] |
getUsages()
Returns usages of this reference.
|
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.
|
boolean |
isRemote() |
boolean |
isType(int type)
Returns
true if this element is of the given type . |
void |
refresh()
Refreshes this reference entry, e.g. by removing cached objects, recalculating broken status or
refreshing referenced elements.
|
static final int PAGE_STORE_REFERENCE
static final int SITE_STORE_REFERENCE
static final int MEDIA_STORE_REFERENCE
static final int TEMPLATE_STORE_REFERENCE
static final int GLOBAL_STORE_REFERENCE
static final int CONTENT_STORE_REFERENCE
static final int CONTENT_REFERENCE
Entity
.static final int RELATED_PROJECT_REFERENCE
static final int RENDER_TEMPLATE_REFERENCE
static final int SCRIPT_REFERENCE
static final int SITE_STORE_FOLDER_REFERENCE
static final int EXTERNAL_REFERENCE
static final int STORE_ELEMENT_REFERENCE
boolean isType(int type)
true
if this element is of the given type
. If type
contains the
related project flag
this reference has to be external to return true
.
getType(MEDIA_STORE_ELEMENT|CONTENT_STORE_REFERENCE)
returns true
iff this reference is
a reference to a media- or a content-store element (media or content).getType(MEDIA_STORE_ELEMENT|RELATED_PROJECT_REFERENCE)
returns true
iff this reference is
an external reference to a media-store element (external and media).type
- PAGE_STORE_REFERENCE
, etc.true
if this element is of the given type
, otherwise returns false
.int getType()
long getId()
long getProjectId()
boolean getRelease()
true if the node is from the release store
@Nullable Object getReferencedObject()
null
if the node is not or no longer visible in the
current session or has been deleted or the reference is broken
.@Nullable IDProvider getReferencedElement()
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
.@Nullable String getReferenceString()
null
if the referenced object cannot be referenced
by nameString getDisplayText()
boolean isBroken()
boolean isRemote()
true
if this reference is a remote reference.@Nullable String getRemote()
UserService.getRemoteUserService(String)
,
RemoteProjectConfiguration
ReferenceEntry[] getUsages()
broken
reference this method
returns references to elements where this broken reference is still in use (and still broken).@Nullable Store.Type getStoreType()
store-type
of the referenced element or null
, e.g. for external references.null
, e.g. for external references.void refresh()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500