Class Blueprint
- java.lang.Object
-
- org.hippoecm.hst.configuration.channel.Blueprint
-
public class Blueprint extends Object
A Blueprint is provided by the developers to create and manage channels by theChannelManager
, and is defined by the node typehst:blueprint
. Please see thehst.cnd
for the node type definition
-
-
Constructor Summary
Constructors Constructor Description Blueprint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Blueprint
copy(Blueprint source)
String
getContentRoot()
Get theBlueprint
content root must start with a/
and be a valid JCR pathString
getDescription()
boolean
getHasContentPrototype()
Does theBlueprint
have a content prototype.String
getId()
GetBlueprint
idString
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 nameString
getPath()
Get the normalized absolute pathChannel
getPrototypeChannel()
Get 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
setId(String id)
SetBlueprint
idvoid
setName(String name)
Set theBlueprint
namevoid
setPath(String path)
Set the normalized absolute pathvoid
setPrototypeChannel(Channel prototypeChannel)
Set the prototypeChannel
String
toString()
-
-
-
Method Detail
-
getName
public String 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
public void setName(String name)
Set theBlueprint
name- Parameters:
name
- - TheBlueprint
name to set
-
setDescription
public void setDescription(String description)
Set theBlueprint
description- Parameters:
description
- TheBlueprint
description to set
-
getContentRoot
public String 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
public void setContentRoot(String contentRoot)
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
public Channel 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
public void setPrototypeChannel(Channel prototypeChannel)
Set the prototypeChannel
- Parameters:
prototypeChannel
- - The prototypeChannel
to set
-
getPath
public String getPath()
Get the normalized absolute path- Returns:
- The normalized absolute path
-
setPath
public void setPath(String path)
Set the normalized absolute path- Parameters:
path
- - The normalized absolute path to set
-
-