Class Blueprint
java.lang.Object
org.hippoecm.hst.configuration.channel.Blueprint
A Blueprint is provided by the developers to create and manage channels by the
ChannelManager
,
and is defined by the node type hst:blueprint
. Please see the hst.cnd
for the node type definition-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Blueprint
Get theBlueprint
content root must start with a/
and be a valid JCR pathboolean
Does theBlueprint
have a content prototype.getId()
GetBlueprint
idgetName()
Get the name of theBlueprint
as provided in the propertyhst:name
, if the property doesn't exist, theid
(node name) is returned as the namegetPath()
Get the normalized absolute pathGet prototypeChannel
which is nevernull
.void
setContentRoot
(String contentRoot) SetBlueprint
content rootvoid
setDescription
(String description) Set theBlueprint
descriptionvoid
setHasContentPrototype
(boolean hasContentPrototype) Set whether aBlueprint
has content prototype or notvoid
SetBlueprint
idvoid
Set theBlueprint
namevoid
Set the normalized absolute pathvoid
setPrototypeChannel
(Channel prototypeChannel) Set the prototypeChannel
toString()
-
Constructor Details
-
Blueprint
public Blueprint()
-
-
Method Details
-
copy
-
getId
GetBlueprint
id- Returns:
- The
Blueprint
id
-
setId
SetBlueprint
id- Parameters:
id
- - TheBlueprint
id
-
getName
Get the name of theBlueprint
as provided in the propertyhst:name
, if the property doesn't exist, theid
(node name) is returned as the name- Returns:
- The name of the
Blueprint
-
setName
Set theBlueprint
name- Parameters:
name
- - TheBlueprint
name to set
-
getDescription
- Returns:
- The
Blueprint
description
-
setDescription
Set theBlueprint
description- Parameters:
description
- TheBlueprint
description to set
-
getContentRoot
Get theBlueprint
content root must start with a/
and be a valid JCR path- Returns:
- Absolute path of the
hst:contentRoot
of theBlueprint
if available,null
otherwise
-
setContentRoot
SetBlueprint
content root- Parameters:
contentRoot
- - TheBlueprint
content root to set
-
getHasContentPrototype
public boolean getHasContentPrototype()Does theBlueprint
have a content prototype. If so, it will be used to create a content structure- Returns:
true
if a prototype exists,false
otherwise
-
setHasContentPrototype
public void setHasContentPrototype(boolean hasContentPrototype) Set whether aBlueprint
has content prototype or not- Parameters:
hasContentPrototype
- - TheBlueprint
getHasContentPrototype
flag value to set
-
getPrototypeChannel
Get prototypeChannel
which is nevernull
. The returnedChannel
does also never return null forChannel.getContextPath()
- Returns:
- The prototype
Channel
which is nevernull
. The returnedChannel
does also never return null forChannel.getContextPath()
-
setPrototypeChannel
Set the prototypeChannel
- Parameters:
prototypeChannel
- - The prototypeChannel
to set
-
getPath
Get the normalized absolute path- Returns:
- The normalized absolute path
-
setPath
Set the normalized absolute path- Parameters:
path
- - The normalized absolute path to set
-
toString
-