Package org.onehippo.cms7.services.hst
Class Channel
java.lang.Object
org.onehippo.cms7.services.hst.Channel
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
getId()
getName()
Returns the Immutable collection of properties for thisChannel
.getType()
getUrl()
int
hashCode()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setBranchId
(String branchId) void
setBranchOf
(String branchOf) void
setChangedBySet
(Set<String> changedBySet) sets all users that have a lock on the channel or some part of the channelvoid
setChannelInfoClassName
(String channelInfoClassName) void
setChannelInfoMixinNames
(List<String> channelInfoMixinNames) void
setChannelNodeLockedBy
(String channelNodeLockedBy) void
setChannelPath
(String channelPath) void
setChannelSettingsEditable
(boolean channelSettingsEditable) void
setCmsPreviewPrefix
(String cmsPreviewPrefix) void
setComposerModeEnabled
(boolean composerModeEnabled) void
setConfigurationLocked
(boolean configurationLocked) void
setContentRoot
(String contentRoot) void
setContextPath
(String contextPath) void
setDefaultDevice
(String defaultDevice) void
setDeletable
(boolean deletable) void
setDevices
(List<String> devices) void
setExternalPreviewEnabled
(boolean externalPreviewEnabled) void
setExternalPreviewToken
(String externalPreviewToken) void
setHasCustomProperties
(boolean hasCustomProperties) void
setHostGroup
(String hostGroup) void
setHostname
(String hostname) void
setHstConfigPath
(String hstConfigPath) void
setHstMountPoint
(String hstMountPoint) void
Set the unique ID of this channelvoid
setLastModified
(Calendar lastModified) void
setLastModifiedBy
(String lastModifiedBy) void
void
setLockedOn
(Calendar lockedOn) void
setMountId
(String mountId) void
setMountPath
(String mountPath) void
Sets the human-readable name of this channel.void
setPreview
(boolean preview) void
setPreviewHstConfigExists
(boolean previewHstConfigExists) void
setProperties
(Map<String, Object> properties) void
setSiteMapId
(String sitemapId) void
void
void
void
setWorkspaceExists
(boolean workspaceExists) toString()
-
Field Details
-
DEFAULT_DEVICE
- See Also:
-
-
Constructor Details
-
Channel
public Channel()Channel
default constructor it is required for REST de/serialization -
Channel
Constructor of a Channel. Should normally only be invoked by the Channel manager implementation to guarantee uniqueness of the id.- Parameters:
id
- the unique ID of this channel
-
Channel
-
-
Method Details
-
getId
- Returns:
- the unique ID of this channel
-
setId
Set the unique ID of this channel- Throws:
IllegalStateException
-
isChannelSettingsEditable
public boolean isChannelSettingsEditable() -
setChannelSettingsEditable
public void setChannelSettingsEditable(boolean channelSettingsEditable) -
isConfigurationLocked
public boolean isConfigurationLocked() -
setConfigurationLocked
public void setConfigurationLocked(boolean configurationLocked) -
getContentRoot
-
setContentRoot
-
getHstMountPoint
-
setHstMountPoint
-
getHstConfigPath
-
setHstConfigPath
-
getName
- Returns:
- the human-readable name of this channel, or null if this channel does not have a name.
-
setName
Sets the human-readable name of this channel.- Parameters:
name
- the new name of this channel
-
getUrl
- Returns:
- the fully qualified URL of this channel.
-
setUrl
- Parameters:
url
- the fully qualified URL of this channel.
-
getSpaUrl
-
setSpaUrl
-
setType
-
getType
-
isComposerModeEnabled
public boolean isComposerModeEnabled() -
setComposerModeEnabled
public void setComposerModeEnabled(boolean composerModeEnabled) -
setHostname
-
getHostname
-
getHostGroup
-
setHostGroup
-
setMountPath
-
getMountPath
-
setChannelPath
-
getChannelPath
-
setProperties
-
getProperties
Returns the Immutable collection of properties for thisChannel
. -
getChannelInfoClassName
-
setChannelInfoClassName
-
getChannelInfoMixinNames
-
setChannelInfoMixinNames
-
setMountId
-
getMountId
-
setSiteMapId
-
getSiteMapId
-
getLocale
-
setLocale
-
getCmsPreviewPrefix
-
setCmsPreviewPrefix
-
getContextPath
-
setContextPath
-
isPreviewHstConfigExists
public boolean isPreviewHstConfigExists() -
setPreviewHstConfigExists
public void setPreviewHstConfigExists(boolean previewHstConfigExists) -
isWorkspaceExists
public boolean isWorkspaceExists() -
setWorkspaceExists
public void setWorkspaceExists(boolean workspaceExists) -
getHasCustomProperties
public boolean getHasCustomProperties() -
setHasCustomProperties
public void setHasCustomProperties(boolean hasCustomProperties) -
isDeletable
public boolean isDeletable() -
setDeletable
public void setDeletable(boolean deletable) -
getChangedBySet
- Returns:
- all *non-system* users that have a lock on the channel or some part of the channel. If no users have a lock, and empty set is returned
-
setChangedBySet
sets all users that have a lock on the channel or some part of the channel -
getDefaultDevice
-
getDevices
-
setDefaultDevice
-
setDevices
-
getViewportMap
-
setPreview
public void setPreview(boolean preview) -
isPreview
public boolean isPreview() -
getChannelNodeLockedBy
-
setChannelNodeLockedBy
-
getLastModifiedBy
-
setLastModifiedBy
-
getLockedOn
-
setLockedOn
-
getLastModified
-
setLastModified
-
getBranchId
- Returns:
- The id of this branch if this
Channel
is a branch andnull
otherwise
-
setBranchId
-
getBranchOf
-
setBranchOf
-
hashCode
public int hashCode() -
isExternalPreviewEnabled
public boolean isExternalPreviewEnabled() -
setExternalPreviewEnabled
public void setExternalPreviewEnabled(boolean externalPreviewEnabled) -
getExternalPreviewToken
-
setExternalPreviewToken
-
equals
-
toString
-