public class Channel extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DEVICE |
Constructor and Description |
---|
Channel()
Channel default constructor it is required for REST de/serialization |
Channel(String id)
Constructor of a Channel.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Set<String> |
getChangedBySet() |
String |
getChannelInfoClassName() |
String |
getCmsPreviewPrefix() |
String |
getContentRoot() |
String |
getContextPath() |
String |
getDefaultDevice() |
List<String> |
getDevices() |
String |
getHostname() |
String |
getHstConfigPath() |
String |
getHstMountPoint() |
String |
getHstPreviewMountPoint() |
String |
getId() |
String |
getLocale() |
String |
getLockedBy()
Deprecated.
use
getChangedBySet() instead |
Long |
getLockedOn()
In coarse grained locking mode: retrieve the timestamp when the lock was set.
|
String |
getMountId() |
String |
getMountPath() |
String |
getName() |
Map<String,Object> |
getProperties() |
String |
getType() |
String |
getUrl() |
int |
hashCode() |
boolean |
isComposerModeEnabled() |
boolean |
isFineGrainedLocking()
Deprecated.
from 7.8.x in the 7.9, this method will be removed
|
boolean |
isPreviewHstConfigExists() |
void |
setChangedBySet(Set<String> changedBySet)
sets all users that have a lock on the channel or some part of the channel
|
void |
setChannelInfoClassName(String channelInfoClassName) |
void |
setCmsPreviewPrefix(String cmsPreviewPrefix) |
void |
setComposerModeEnabled(boolean composerModeEnabled) |
void |
setContentRoot(String contentRoot) |
void |
setContextPath(String contextPath) |
void |
setDefaultDevice(String defaultDevice) |
void |
setDevices(List<String> devices) |
void |
setFineGrainedLocking(boolean fineGrainedLocking)
Deprecated.
from 7.8.x in the 7.9, this method will be removed
|
void |
setHostname(String hostname) |
void |
setHstConfigPath(String hstConfigPath) |
void |
setHstMountPoint(String hstMountPoint) |
void |
setHstPreviewMountPoint(String hstPreviewMountPoint) |
void |
setId(String id)
Set the unique ID of this channel
|
void |
setLocale(String locale) |
void |
setLockedBy(String lockedBy)
Deprecated.
use
setChangedBySet(java.util.Set) instead |
void |
setLockedOn(Long lockedOn)
Set to null if the channel is not locked.
|
void |
setMountId(String mountId) |
void |
setMountPath(String mountPath) |
void |
setName(String name)
Sets the human-readable name of this channel.
|
void |
setPreviewHstConfigExists(boolean previewHstConfigExists) |
void |
setType(String type) |
void |
setUrl(String url) |
String |
toString() |
public static final String DEFAULT_DEVICE
public Channel()
Channel
default constructor it is required for REST de/serializationpublic Channel(String id)
id
- the unique ID of this channelpublic String getId()
public void setId(String id) throws IllegalStateException
IllegalStateException
public String getContentRoot()
public void setContentRoot(String contentRoot)
public String getHstMountPoint()
public void setHstMountPoint(String hstMountPoint)
public void setHstPreviewMountPoint(String hstPreviewMountPoint)
public String getHstPreviewMountPoint()
public String getHstConfigPath()
public void setHstConfigPath(String hstConfigPath)
public String getName()
public void setName(String name)
name
- the new name of this channelpublic String getUrl()
public void setUrl(String url)
url
- the fully qualified URL of this channel.public void setType(String type)
public String getType()
public boolean isComposerModeEnabled()
public void setComposerModeEnabled(boolean composerModeEnabled)
public void setHostname(String hostname)
public String getHostname()
public void setMountPath(String mountPath)
public String getMountPath()
public String getChannelInfoClassName()
public void setChannelInfoClassName(String channelInfoClassName)
public void setMountId(String mountId)
public String getMountId()
public String getLocale()
public void setLocale(String locale)
public String getCmsPreviewPrefix()
public void setCmsPreviewPrefix(String cmsPreviewPrefix)
public String getContextPath()
public void setContextPath(String contextPath)
@Deprecated public boolean isFineGrainedLocking()
@Deprecated public void setFineGrainedLocking(boolean fineGrainedLocking)
public boolean isPreviewHstConfigExists()
public void setPreviewHstConfigExists(boolean previewHstConfigExists)
@Deprecated public String getLockedBy()
getChangedBySet()
insteadnull
if the channel is not locked.
In finagrained locking mode : retrieves just one of the users that have a lock on a container or null
when locked by no-one.@Deprecated public void setLockedBy(String lockedBy)
setChangedBySet(java.util.Set)
insteadpublic Set<String> getChangedBySet()
public void setChangedBySet(Set<String> changedBySet)
public Long getLockedOn()
null
public void setLockedOn(Long lockedOn)
lockedOn
- timestamp in milliseconds of when channel lock was acquiredpublic String getDefaultDevice()
public void setDefaultDevice(String defaultDevice)
Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.