public class TitlePathManager extends java.lang.Object implements ManagedDBAttribute, de.innovationgate.webgate.api.WGDatabaseEventListener, de.innovationgate.webgate.api.WGDatabaseConnectListener
| Modifier and Type | Class and Description |
|---|---|
class |
TitlePathManager.PathTitle |
class |
TitlePathManager.RemainingPathElementException |
class |
TitlePathManager.SharePathTitle |
class |
TitlePathManager.TitlePath |
class |
TitlePathManager.TitlePathRoot |
class |
TitlePathManager.URLPathTitle |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXTDATA_TITLEPATH_CONFLICT |
static java.lang.String |
MODE_SHARE |
static java.lang.String |
MODE_URL |
static java.lang.String |
SHARE_NAME_SPECIAL_CHARS |
| Constructor and Description |
|---|
TitlePathManager(de.innovationgate.webgate.api.WGDatabase db,
WGACore core,
boolean generateTitlePathURLs) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
buildTitlePath(de.innovationgate.webgate.api.WGContent baseContent,
java.lang.String mediaKey,
de.innovationgate.webgate.api.WGLanguageChooser chooser) |
void |
close() |
TitlePathManager.PathTitle |
createPathTitle(de.innovationgate.webgate.api.WGContent content) |
void |
databaseConnected(de.innovationgate.webgate.api.WGDatabaseEvent event) |
void |
databaseConnectionError(de.innovationgate.webgate.api.WGDatabaseEvent event) |
void |
databaseUpdate(de.innovationgate.webgate.api.WGDatabaseEvent event) |
static de.innovationgate.webgate.api.WGContent |
findContent(TitlePathManager.PathTitle title,
de.innovationgate.webgate.api.WGDocument parent,
de.innovationgate.webgate.api.WGLanguageChooser chooser) |
de.innovationgate.webgate.api.WGContent |
findContentByTitlePath(TitlePathManager.TitlePath titlePathURL,
de.innovationgate.webgate.api.WGDatabase database,
de.innovationgate.webgate.api.WGLanguageChooser chooser,
java.lang.String mode) |
boolean |
isGenerateTitlePathURLs() |
boolean |
isIncludeKeys() |
boolean |
isTemporary() |
boolean |
isTitlePathAllowed(de.innovationgate.webgate.api.WGContent content) |
java.lang.String |
normalizeShareTitle(java.lang.String title) |
java.lang.String |
normalizeURLTitle(java.lang.String title) |
TitlePathManager.PathTitle |
parseSharePathTitle(java.lang.String title) |
TitlePathManager.TitlePath |
parseTitlePathURL(java.util.List path) |
TitlePathManager.PathTitle |
parseURLPathTitle(java.lang.String title) |
public static java.lang.String SHARE_NAME_SPECIAL_CHARS
public static java.lang.String MODE_URL
public static java.lang.String MODE_SHARE
public static java.lang.String EXTDATA_TITLEPATH_CONFLICT
public TitlePathManager(de.innovationgate.webgate.api.WGDatabase db,
WGACore core,
boolean generateTitlePathURLs)
throws de.innovationgate.webgate.api.WGAPIException,
java.io.UnsupportedEncodingException
de.innovationgate.webgate.api.WGAPIExceptionjava.io.UnsupportedEncodingExceptionpublic TitlePathManager.PathTitle parseURLPathTitle(java.lang.String title) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic TitlePathManager.PathTitle parseSharePathTitle(java.lang.String title) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic void close()
close in interface ManagedDBAttributepublic void databaseUpdate(de.innovationgate.webgate.api.WGDatabaseEvent event)
databaseUpdate in interface de.innovationgate.webgate.api.WGDatabaseEventListenerpublic java.lang.String normalizeURLTitle(java.lang.String title)
public java.lang.String normalizeShareTitle(java.lang.String title)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic boolean isTemporary()
isTemporary in interface de.innovationgate.webgate.api.WGDatabaseEventListenerpublic TitlePathManager.TitlePath parseTitlePathURL(java.util.List path) throws java.io.UnsupportedEncodingException, de.innovationgate.webgate.api.WGAPIException
java.io.UnsupportedEncodingExceptionde.innovationgate.webgate.api.WGAPIExceptionpublic static de.innovationgate.webgate.api.WGContent findContent(TitlePathManager.PathTitle title, de.innovationgate.webgate.api.WGDocument parent, de.innovationgate.webgate.api.WGLanguageChooser chooser) throws de.innovationgate.webgate.api.WGAPIException, java.io.UnsupportedEncodingException
de.innovationgate.webgate.api.WGAPIExceptionjava.io.UnsupportedEncodingExceptionpublic TitlePathManager.PathTitle createPathTitle(de.innovationgate.webgate.api.WGContent content) throws de.innovationgate.webgate.api.WGAPIException
de.innovationgate.webgate.api.WGAPIExceptionpublic de.innovationgate.webgate.api.WGContent findContentByTitlePath(TitlePathManager.TitlePath titlePathURL, de.innovationgate.webgate.api.WGDatabase database, de.innovationgate.webgate.api.WGLanguageChooser chooser, java.lang.String mode) throws de.innovationgate.webgate.api.WGAPIException, java.io.UnsupportedEncodingException, TitlePathManager.RemainingPathElementException
de.innovationgate.webgate.api.WGAPIExceptionjava.io.UnsupportedEncodingExceptionTitlePathManager.RemainingPathElementExceptionpublic boolean isGenerateTitlePathURLs()
public void databaseConnected(de.innovationgate.webgate.api.WGDatabaseEvent event)
databaseConnected in interface de.innovationgate.webgate.api.WGDatabaseConnectListenerpublic void databaseConnectionError(de.innovationgate.webgate.api.WGDatabaseEvent event)
databaseConnectionError in interface de.innovationgate.webgate.api.WGDatabaseConnectListenerpublic java.util.List<java.lang.String> buildTitlePath(de.innovationgate.webgate.api.WGContent baseContent,
java.lang.String mediaKey,
de.innovationgate.webgate.api.WGLanguageChooser chooser)
throws de.innovationgate.webgate.api.WGAPIException
de.innovationgate.webgate.api.WGAPIExceptionpublic boolean isTitlePathAllowed(de.innovationgate.webgate.api.WGContent content)
throws de.innovationgate.webgate.api.WGAPIException
de.innovationgate.webgate.api.WGAPIExceptionpublic boolean isIncludeKeys()