|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.base.util.StartupContent
public class StartupContent
Responsible for verifying and loading the Forums startup content into the database. The startup content is located in the jive_forums_data.sql script. The script must be located in the classpath in order to be file system independent. Queries selected tables to verify startup content exists. If the content for a particular table does not exist, that content is loaded. The Connection is not closed so the data can be loaded from the DbConnectionManager in a lazy fashion, without interrupting the general flow. Supports Extra Startup Content defined in the jive_extra_startup_content.xml. This content is loaded from the classpath and provides a mechanism to add extra Jive Properties on top of the defaults.
Nested Class Summary | |
---|---|
static class |
StartupContent.ExtraStartupJiveProperty
Represents an entry in the jive_extra_startup_content.xml. |
Method Summary | |
---|---|
static java.util.Map |
getExtraStartupContent()
Retrieves all extra startup content properties as a Map. |
static boolean |
isExtraStartupPropertyReadOnly(java.lang.String propertyName)
Checks if an extra startup property is read only. |
static void |
loadContent(java.sql.Connection conn)
Loads the required Jive Forums content from the jive_forums_data.sql file, found in the classpath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void loadContent(java.sql.Connection conn) throws java.sql.SQLException
conn
- the connection.
java.sql.SQLException
- if an error occurs executing a statement.public static java.util.Map getExtraStartupContent()
public static boolean isExtraStartupPropertyReadOnly(java.lang.String propertyName)
propertyName
- the property to check
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |