Interface Reference
public interface Reference
A reference is either an internal reference (e.g. "media:logo"), a
remote reference (e.g. "media:logo, remote:MainProject") or an
external reference (e.g. "http://www.google.com").
A reference is
A reference is
broken if the reference name couldn't be
found.- Since:
- 3.1.158
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringType string identifying a reference to aEntityAn unmodifiable empty reference list.static final StringType string identifying a reference to aLinkTemplatestatic final StringType string identifying a reference to aLinkTemplatestatic final StringType string identifying a reference to aLinkTemplatestatic final StringType string identifying a reference to aPageTemplatestatic final StringType string identifying a reference to aQuerystatic final StringType string identifying a reference to aLinkTemplatestatic final StringType string identifying a reference to aFormatTemplatestatic final StringType string identifying a reference to aSectionTemplatestatic final StringType string identifying a reference to aTableTemplate -
Method Summary
Modifier and TypeMethodDescriptionReturns the language of the reference.Returns the referenced object.Returns the store type.getReferenceEntry(UserService userService, boolean release) Returns reference entry.Returns the reference string.Returns the symbolic name of theremote project configuration.Returns the type of the reference.booleanisBroken()Internal references may be broken, e.g.booleanisRemote()Returns id this reference is a remote reference.voidsetReferencedObject(Object value) Sets the (local) referenced object.
-
Field Details
-
EMPTY_REFERENCE_LIST
An unmodifiable empty reference list.- Since:
- 4.2.24
-
SECTION_TEMPLATE_REFERENCE
Type string identifying a reference to aSectionTemplate- Since:
- 3.1.158
- See Also:
-
PAGE_TEMPLATE_REFERENCE
Type string identifying a reference to aPageTemplate- Since:
- 3.1.158
- See Also:
-
LINK_TEMPLATE_REFERENCE
Type string identifying a reference to aLinkTemplate- Since:
- 3.1.158
- See Also:
-
RENDER_TEMPLATE_REFERENCE
Type string identifying a reference to aFormatTemplate- Since:
- 3.1.158
- See Also:
-
TABLE_TEMPLATE_REFERENCE
Type string identifying a reference to aTableTemplate- Since:
- 4.2.24
- See Also:
-
INTERNAL_LINK
Type string identifying a reference to aLinkTemplate- Since:
- 4.2.24
- See Also:
-
EXTERNAL_LINK
Type string identifying a reference to aLinkTemplate- Since:
- 4.2.24
- See Also:
-
CONTENT_LINK
Type string identifying a reference to aEntity- Since:
- 4.2.24
- See Also:
-
RELATED_PROJECT_LINK
Type string identifying a reference to aLinkTemplate- Since:
- 4.2.24
- See Also:
-
QUERY_REFERENCE
Type string identifying a reference to aQuery- Since:
- 4.2.410
- See Also:
-
-
Method Details
-
getTypeName
String getTypeName()Returns the type of the reference.- Returns:
- One of the following values:
- Since:
- 3.1.158
-
getLanguage
Language getLanguage()Returns the language of the reference.- Returns:
- the language of the reference.
- Since:
- 3.1.158
-
getReferencedObject
Object getReferencedObject()Returns the referenced object.- Returns:
- The url for external references, the referenced
StoreElementfor internal references, ornullforbroken references. - Since:
- 3.1.158
-
getRemoteName
String getRemoteName()Returns the symbolic name of theremote project configuration.- Returns:
- symbolic name of the remote project or
nullfor a non-remote reference. - Since:
- 3.1.324
- See Also:
-
setReferencedObject
Sets the (local) referenced object.- Parameters:
value- new referenced object.- Since:
- 3.1.158
-
isBroken
boolean isBroken()Internal references may be broken, e.g. "media:logo" when no media object with the name "logo" exists. UsegetReferenceString()to get more information for the desired target.
The target of external references is not checked, e.g if an invalid url is specified for an external reference,isBroken()returnsfalse.- Returns:
trueif this is an internal reference and the target does not exist- Since:
- 3.1.172
-
isRemote
boolean isRemote()Returns id this reference is a remote reference.- Returns:
trueif this reference is a remote reference.- Since:
- 3.1.324
-
getReferenceString
String getReferenceString()Returns the reference string.- Returns:
- The reference string, e.g. "media:logo" for an internal reference or "http://www.google.com" for external reference
- Since:
- 3.1.172
-
getReferencedStoreType
Store.Type getReferencedStoreType()Returns the store type.- Returns:
- The store type for internal references and
nullfor external references. - Since:
- 4.0.17
-
getReferenceEntry
Returns reference entry.- Returns:
- the reference entry.
- Since:
- 4.2.24
-