public interface BranchHandle
Modifier and Type | Method and Description |
---|---|
String |
getBranchId()
Returns the branch id for which this handle should return variants.
|
javax.jcr.Node |
getDraft()
Returns the draft variant for the branch returned by
getBranchId()
or null if there is no draft node for the branch |
javax.jcr.Node |
getPublished()
Returns the published variant for the branch returned by
getBranchId()
or null if there is no published node for the branch |
javax.jcr.Node |
getPublishedMaster()
Tries to return the published master node for this
BranchHandle or null if there is no
master published. |
javax.jcr.Node |
getUnpublished()
Returns the unpublished variant for the branch returned by
getBranchId()
or null if there is no unpublished node for the branch |
boolean |
isLiveAvailable()
|
boolean |
isMaster()
Returns true if this branch handle's branchId is master
|
boolean |
isModified()
Returns
true if
the lastModifiedDate of getPublished() is not equal that of getUnpublished()
getPublished() availability is not live or null and getUnpublished() is not null
and false otherwise. |
boolean |
isPreviewAvailable() |
String getBranchId()
null
except possibly
for getPublishedMaster()
javax.jcr.Node getPublished()
Returns the published variant for the branch returned by getBranchId()
or null
if there is no published node for the branch
The returned node can be either a variant below the handle but can also be a versioned history node
corresponding to the branch for getBranchId()
javax.jcr.Node getUnpublished()
Returns the unpublished variant for the branch returned by getBranchId()
or null
if there is no unpublished node for the branch
The returned node can be either a variant below the handle but can also be a versioned history node
corresponding to the branch for getBranchId()
javax.jcr.Node getDraft()
Returns the draft variant for the branch returned by getBranchId()
or null
if there is no draft node for the branch
The returned node can be either a variant below the handle but can also be a versioned history node
corresponding to the branch for getBranchId()
javax.jcr.Node getPublishedMaster()
Tries to return the published master node for this BranchHandle
or null
if there is no
master published. The returned node can be a node from version history
BranchHandle
or null
if there is no such nodeboolean isModified()
true
if
getPublished()
is not equal that of getUnpublished()
getPublished()
availability is not live or null and getUnpublished()
is not nullfalse
otherwise.boolean isMaster()
boolean isLiveAvailable()
boolean isPreviewAvailable()
true
if there is a variant for getBranchId()
that exists and has availability previewCopyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.