org.hippoecm.hst.configuration.hosting
Interface MutableMount

All Superinterfaces:
Mount
All Known Subinterfaces:
ContextualizableMount
All Known Implementing Classes:
MountService

public interface MutableMount
extends Mount

Mount extension that decouples channel info retrieval from the mount service construction. It is only safe to use the methods that are exposed while the mount service is built; i.e. with the HstManagerImpl monitor held.


Field Summary
 
Fields inherited from interface org.hippoecm.hst.configuration.hosting.Mount
LIVE_NAME, PREVIEW_NAME, PROPERTY_NAME_MOUNT_PREFIX
 
Method Summary
 void addMount(MutableMount mount)
           
 String getCmsLocation()
           
 String getLockedBy()
          Return null when the mount is not locked.
 Calendar getLockedOn()
          Get the date on which the mount was locked.
 void setChannelInfo(ChannelInfo info)
          Set the channel info for the mount.
 void setLockedBy(String userId)
          Set the mount's lock owner userId.
 void setLockedOn(Calendar lockedOn)
          Set the date on which the mount was locked.
 
Methods inherited from interface org.hippoecm.hst.configuration.hosting.Mount
getAlias, getCanonicalContentPath, getChannelInfo, getChannelPath, getChildMount, getChildMounts, getContentPath, getDefaultSiteMapItemHandlerIds, getEmbeddedMountPath, getFormLoginPage, getHomePage, getHstSite, getHstSiteMapMatcher, getIdentifier, getLocale, getMountPath, getMountPoint, getMountProperties, getName, getNamedPipeline, getPageNotFound, getParent, getPort, getProperty, getRoles, getScheme, getType, getTypes, getUsers, getVirtualHost, isAuthenticated, isContextPathInUrl, isMapped, isOfType, isPortInUrl, isPreview, isSessionStateful, isSite, isSubjectBasedSession, isVersionInPreviewHeader, onlyForContextPath
 

Method Detail

setChannelInfo

void setChannelInfo(ChannelInfo info)
Set the channel info for the mount. The info must be constant, i.e. it must always return the same values.

Parameters:
info -

addMount

void addMount(MutableMount mount)
              throws IllegalArgumentException,
                     ServiceException
Parameters:
mount - the MutableMount to add
Throws:
IllegalArgumentException - if the mount could not be added
ServiceException - if the mount could not be added

getCmsLocation

String getCmsLocation()
Returns:
the cms location (fully qualified URL) or null if not configured

getLockedBy

String getLockedBy()
Return null when the mount is not locked.

Returns:
userId of the lock owner or null if not locked

setLockedBy

void setLockedBy(String userId)
Set the mount's lock owner userId.


getLockedOn

Calendar getLockedOn()
Get the date on which the mount was locked. If the mount is not locked, this date can by any date and null.

Returns:
the date on which the mount was locked

setLockedOn

void setLockedOn(Calendar lockedOn)
Set the date on which the mount was locked.

Parameters:
lockedOn -


Copyright © 2008-2012 Hippo. All Rights Reserved.