|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.user.crowd.EmbeddedCrowdBootstrap
public final class EmbeddedCrowdBootstrap
Provides convenient methods to create the crowd application and internal directory optionally if one isn't found. Optionally the new internal directory may be disabled on creation.
Field Summary | |
---|---|
static String |
APPLICATION_NAME
|
static String |
INTERNAL_DIRECTORY_NAME
|
Constructor Summary | |
---|---|
EmbeddedCrowdBootstrap()
|
Method Summary | |
---|---|
void |
bootstrap()
Ensure that EC is in a valid initial state. |
boolean |
ensureApplicationExists()
If not application entry is found, create one. |
void |
ensureInternalDirectoryExists()
If no internal directory is found, create one and enable it. |
void |
ensureInternalDirectoryExists(DirectoryState state)
If no internal directory is found, create one and set the enabled flag. |
void |
setApplicationDao(com.atlassian.crowd.dao.application.ApplicationDAO applicationDao)
|
void |
setCrowdDirectoryService(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INTERNAL_DIRECTORY_NAME
public static final String APPLICATION_NAME
Constructor Detail |
---|
public EmbeddedCrowdBootstrap()
Method Detail |
---|
public void bootstrap()
public boolean ensureApplicationExists()
public void ensureInternalDirectoryExists()
public void ensureInternalDirectoryExists(DirectoryState state)
state
- the state of the internal directory if createdpublic void setCrowdDirectoryService(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService)
public void setApplicationDao(com.atlassian.crowd.dao.application.ApplicationDAO applicationDao)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |