public class HubProjectImpl extends java.lang.Object implements HubProject
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENTITY_CONFIG_DIR |
protected org.slf4j.Logger |
logger |
HUB_CONFIG_DIR, USER_CONFIG_DIR| Constructor and Description |
|---|
HubProjectImpl(java.lang.String projectDirStr) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.file.Path |
getEntityConfigDir()
Gets the path for the user server's directory
|
java.nio.file.Path |
getEntityDatabaseDir()
Gets the path for the entity database directory
|
java.nio.file.Path |
getHubConfigDir()
Gets the path for the hub's entities directory
|
java.nio.file.Path |
getHubDatabaseDir()
Gets the path for the hub's config directory
|
java.nio.file.Path |
getHubEntitiesDir()
Gets the path for the hub plugins directory
|
java.nio.file.Path |
getHubPluginsDir()
Gets the path for the entity database directory
|
java.nio.file.Path |
getHubSecurityDir()
Gets the path for the hub servers directory
|
java.nio.file.Path |
getHubServersDir()
Gets the path for the hub's database directory
|
java.nio.file.Path |
getUserConfigDir()
Gets the path for the entity database directory
|
java.nio.file.Path |
getUserDatabaseDir()
Gets the path for the user security directory
|
java.nio.file.Path |
getUserSchemasDir()
Gets the path for the user schemas directory
|
java.nio.file.Path |
getUserSecurityDir()
Gets the path for the user config directory
|
java.nio.file.Path |
getUserServersDir()
Gets the path for the entity database directory
|
void |
init(java.util.Map<java.lang.String,java.lang.String> customTokens)
Initializes a directory as a hub project directory.
|
boolean |
isInitialized()
Checks if the project has been initialized or not
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic static final java.lang.String ENTITY_CONFIG_DIR
protected final org.slf4j.Logger logger
public java.nio.file.Path getHubPluginsDir()
HubProjectgetHubPluginsDir in interface HubProjectpublic java.nio.file.Path getHubEntitiesDir()
HubProjectgetHubEntitiesDir in interface HubProjectpublic java.nio.file.Path getHubConfigDir()
HubProjectgetHubConfigDir in interface HubProjectpublic java.nio.file.Path getHubDatabaseDir()
HubProjectgetHubDatabaseDir in interface HubProjectpublic java.nio.file.Path getHubServersDir()
HubProjectgetHubServersDir in interface HubProjectpublic java.nio.file.Path getHubSecurityDir()
HubProjectgetHubSecurityDir in interface HubProjectpublic java.nio.file.Path getUserConfigDir()
HubProjectgetUserConfigDir in interface HubProjectpublic java.nio.file.Path getUserSecurityDir()
HubProjectgetUserSecurityDir in interface HubProjectpublic java.nio.file.Path getUserDatabaseDir()
HubProjectgetUserDatabaseDir in interface HubProjectpublic java.nio.file.Path getUserSchemasDir()
HubProjectgetUserSchemasDir in interface HubProjectpublic java.nio.file.Path getUserServersDir()
HubProjectgetUserServersDir in interface HubProjectpublic java.nio.file.Path getEntityConfigDir()
HubProjectgetEntityConfigDir in interface HubProjectpublic java.nio.file.Path getEntityDatabaseDir()
HubProjectgetEntityDatabaseDir in interface HubProjectpublic boolean isInitialized()
HubProjectisInitialized in interface HubProjectpublic void init(java.util.Map<java.lang.String,java.lang.String> customTokens)
HubProjectinit in interface HubProjectcustomTokens - - some custom tokens to start with