com.dotmarketing.factories
Class HostFactory
java.lang.Object
com.dotmarketing.factories.HostFactory
public class HostFactory
- extends java.lang.Object
- Author:
- David
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HostFactory
public HostFactory()
getHost
public static Host getHost(long hostId)
getHost
public static Host getHost(java.lang.String hostId)
getParentHost
public static Host getParentHost(WebAsset asset)
getParentHost
public static Host getParentHost(Folder folder)
getHostByHostName
public static Host getHostByHostName(java.lang.String hostname)
- Parameters:
serverName -
- Returns:
getDefaultHost
public static Host getDefaultHost()
- Returns:
getAllHosts
public static java.util.List<Host> getAllHosts()
getAllHostsByUser
public static java.util.List<Host> getAllHostsByUser(User user)
createDefaultHost
public static Host createDefaultHost()
- Returns:
findHostByAliases
public static Host findHostByAliases(java.lang.String serverName)
- Parameters:
serverName -
- Returns:
getCurrentHost
public static Host getCurrentHost(RenderRequest req)
getCurrentHost
public static Host getCurrentHost(ServletRequest req,
boolean isEditMode)
setHostInRequest
public static void setHostInRequest(ServletRequest req,
Host host)
hostContains
public static boolean hostContains(java.lang.String name,
Host destination)
Copyright © 2006 Dotmarketing, Inc. All Rights Reserved.