|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.content.PersistentObject
org.liquidsite.core.content.Content
org.liquidsite.core.content.ContentSite
A web site.
| Field Summary |
| Fields inherited from class org.liquidsite.core.content.Content |
DOCUMENT_CATEGORY, FILE_CATEGORY, FOLDER_CATEGORY, FORUM_CATEGORY, NAME_CHARS, PAGE_CATEGORY, POST_CATEGORY, SECTION_CATEGORY, SITE_CATEGORY, TEMPLATE_CATEGORY, TOPIC_CATEGORY, TRANSLATOR_CATEGORY |
| Fields inherited from class org.liquidsite.core.content.PersistentObject |
BINDERS, LOWER_CASE, NUMBERS, UPPER_CASE |
| Constructor Summary | |
protected |
ContentSite(ContentManager manager,
ContentData data,
DataSource src)
Creates a new site. |
|
ContentSite(ContentManager manager,
Domain domain)
Creates a new site with default values. |
| Method Summary | |
protected void |
doValidate()
Validates the object data before writing to the database. |
protected static ContentSite[] |
findByDomain(ContentManager manager,
Domain domain)
Returns an array of content site in the specified domain. |
java.lang.String |
getDirectory()
Returns the base directory. |
java.lang.String |
getHost()
Returns the host name or IP address. |
int |
getPort()
Returns the port number. |
java.lang.String |
getProtocol()
Returns the site protocol |
boolean |
isAdmin()
Checks if the admin flag is set. |
int |
match(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String path)
Matches a set of request parameters to this site. |
void |
setAdmin(boolean admin)
Sets the admin flag. |
void |
setDirectory(java.lang.String directory)
Sets the base directory. |
void |
setHost(java.lang.String host)
Sets the host name or IP address. |
void |
setPort(int port)
Sets the port number. |
void |
setProtocol(java.lang.String protocol)
Sets the site protocol. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class org.liquidsite.core.content.Content |
deleteRevision, doDelete, doInsert, doUpdate, equals, equals, getAllRevisions, getAttribute, getAttributeNames, getAuthor, getAuthorName, getCategory, getComment, getDomain, getDomainName, getId, getLock, getMaxRevisionNumber, getModifiedDate, getName, getOfflineDate, getOnlineDate, getParent, getParentId, getPermissions, getRevision, getRevisionNumber, isLatestRevision, isOnline, isPublishedRevision, setAttribute, setAuthorName, setComment, setId, setModifiedDate, setName, setOfflineDate, setOnlineDate, setParent, setParentId, setRevisionNumber |
| Methods inherited from class org.liquidsite.core.content.PersistentObject |
decodeMap, delete, delete, encodeMap, getContentManager, hasAdminAccess, hasPublishAccess, hasReadAccess, hasWriteAccess, isPersistent, restore, restore, save, save, validateChars, validateSize |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ContentSite(ContentManager manager,
Domain domain)
manager - the content manager to usedomain - the site domain
protected ContentSite(ContentManager manager,
ContentData data,
DataSource src)
throws ContentException
manager - the content manager to usedata - the content data objectsrc - the data source to use
ContentException - if the database couldn't be accessed
properly| Method Detail |
protected static ContentSite[] findByDomain(ContentManager manager,
Domain domain)
throws ContentException
manager - the content manager to usedomain - the domain
ContentException - if the database couldn't be accessed
properlypublic java.lang.String toString()
toString in class Contentpublic java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
protocol - the new site protocolpublic java.lang.String getHost()
public void setHost(java.lang.String host)
host - the new host name, or "*" for anypublic int getPort()
public void setPort(int port)
port - the new port number, or zero (0) for anypublic java.lang.String getDirectory()
public void setDirectory(java.lang.String directory)
directory - the new base directorypublic boolean isAdmin()
public void setAdmin(boolean admin)
admin - the new admin flag
public int match(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String path)
protocol - the request protocolhost - the request host name (server name)port - the request (server) portpath - the request path
protected void doValidate()
throws ContentException
doValidate in class ContentContentException - if the object data wasn't valid
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||