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.WGAPIException
java.io.UnsupportedEncodingException
public TitlePathManager.PathTitle parseURLPathTitle(java.lang.String title) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public TitlePathManager.PathTitle parseSharePathTitle(java.lang.String title) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public void close()
close
in interface ManagedDBAttribute
public void databaseUpdate(de.innovationgate.webgate.api.WGDatabaseEvent event)
databaseUpdate
in interface de.innovationgate.webgate.api.WGDatabaseEventListener
public java.lang.String normalizeURLTitle(java.lang.String title)
public java.lang.String normalizeShareTitle(java.lang.String title) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public boolean isTemporary()
isTemporary
in interface de.innovationgate.webgate.api.WGDatabaseEventListener
public TitlePathManager.TitlePath parseTitlePathURL(java.util.List path) throws java.io.UnsupportedEncodingException, de.innovationgate.webgate.api.WGAPIException
java.io.UnsupportedEncodingException
de.innovationgate.webgate.api.WGAPIException
public 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.WGAPIException
java.io.UnsupportedEncodingException
public TitlePathManager.PathTitle createPathTitle(de.innovationgate.webgate.api.WGContent content) throws de.innovationgate.webgate.api.WGAPIException
de.innovationgate.webgate.api.WGAPIException
public 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.WGAPIException
java.io.UnsupportedEncodingException
TitlePathManager.RemainingPathElementException
public boolean isGenerateTitlePathURLs()
public void databaseConnected(de.innovationgate.webgate.api.WGDatabaseEvent event)
databaseConnected
in interface de.innovationgate.webgate.api.WGDatabaseConnectListener
public void databaseConnectionError(de.innovationgate.webgate.api.WGDatabaseEvent event)
databaseConnectionError
in interface de.innovationgate.webgate.api.WGDatabaseConnectListener
public 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.WGAPIException
public boolean isTitlePathAllowed(de.innovationgate.webgate.api.WGContent content) throws de.innovationgate.webgate.api.WGAPIException
de.innovationgate.webgate.api.WGAPIException
public boolean isIncludeKeys()