|
|||||||||||
| 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.ContentTranslator
A web site URL translator.
| Field Summary | |
static int |
ALIAS_TYPE
The alias translator type. |
static int |
ERROR_TYPE
The error translator type. |
static int |
REDIRECT_TYPE
The redirect translator type. |
static int |
SECTION_TYPE
The section translator type. |
| 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 | |
|
ContentTranslator(ContentManager manager,
Content parent)
Creates a new translator with default values. |
protected |
ContentTranslator(ContentManager manager,
ContentData data,
DataSource src)
Creates a new translator. |
| Method Summary | |
protected void |
doValidate()
Validates the object data before writing to the database. |
Content |
getAlias(User user)
Returns the translator alias content. |
int |
getAliasId()
Returns the translator alias content identifier. |
java.lang.String |
getRedirectUrl()
Returns the translator redirect URL. |
ContentSection |
getSection(User user)
Returns the translator section. |
int |
getSectionId()
Returns the translator section content identifier. |
int |
getType()
Returns the translator type. |
void |
setAlias(Content alias)
Sets the translator alias content. |
void |
setAliasId(int alias)
Sets the translation alias content identifier. |
void |
setRedirectUrl(java.lang.String url)
Sets the translation alias redirect URL. |
void |
setSection(ContentSection section)
Sets the translator section. |
void |
setSectionId(int section)
Sets the translation section content identifier. |
void |
setType(int type)
Sets the translator type. |
| 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, toString |
| 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 |
| Field Detail |
public static final int ERROR_TYPE
public static final int ALIAS_TYPE
getAlias(org.liquidsite.core.content.User),
setAlias(org.liquidsite.core.content.Content),
getAliasId(),
setAliasId(int),
Constant Field Valuespublic static final int REDIRECT_TYPE
getRedirectUrl(),
setRedirectUrl(java.lang.String),
Constant Field Valuespublic static final int SECTION_TYPE
getSection(org.liquidsite.core.content.User),
setSection(org.liquidsite.core.content.ContentSection),
getSectionId(),
setSectionId(int),
Constant Field Values| Constructor Detail |
public ContentTranslator(ContentManager manager,
Content parent)
throws ContentException
manager - the content manager to useparent - the parent content object
ContentException - if the database couldn't be accessed
properly
protected ContentTranslator(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 |
public int getType()
public void setType(int type)
type - the new translator type
public Content getAlias(User user)
throws ContentException,
ContentSecurityException
user - the user performing the operation
ContentException - if the database couldn't be accessed
properly
ContentSecurityException - if the user didn't have read
access to the contentpublic void setAlias(Content alias)
alias - the new alias content, or null for nonepublic int getAliasId()
public void setAliasId(int alias)
alias - the new alias content identifierpublic java.lang.String getRedirectUrl()
public void setRedirectUrl(java.lang.String url)
url - the new redirect URL
public ContentSection getSection(User user)
throws ContentException,
ContentSecurityException
user - the user performing the operation
ContentException - if the database couldn't be accessed
properly
ContentSecurityException - if the user didn't have read
access to the sectionpublic void setSection(ContentSection section)
section - the new section, or null for nonepublic int getSectionId()
public void setSectionId(int section)
section - the new section identifier
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 | ||||||||||