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, wait
create
public static final java.lang.String ENTITY_CONFIG_DIR
protected final org.slf4j.Logger logger
public java.nio.file.Path getHubPluginsDir()
HubProject
getHubPluginsDir
in interface HubProject
public java.nio.file.Path getHubEntitiesDir()
HubProject
getHubEntitiesDir
in interface HubProject
public java.nio.file.Path getHubConfigDir()
HubProject
getHubConfigDir
in interface HubProject
public java.nio.file.Path getHubDatabaseDir()
HubProject
getHubDatabaseDir
in interface HubProject
public java.nio.file.Path getHubServersDir()
HubProject
getHubServersDir
in interface HubProject
public java.nio.file.Path getHubSecurityDir()
HubProject
getHubSecurityDir
in interface HubProject
public java.nio.file.Path getUserConfigDir()
HubProject
getUserConfigDir
in interface HubProject
public java.nio.file.Path getUserSecurityDir()
HubProject
getUserSecurityDir
in interface HubProject
public java.nio.file.Path getUserDatabaseDir()
HubProject
getUserDatabaseDir
in interface HubProject
public java.nio.file.Path getUserSchemasDir()
HubProject
getUserSchemasDir
in interface HubProject
public java.nio.file.Path getUserServersDir()
HubProject
getUserServersDir
in interface HubProject
public java.nio.file.Path getEntityConfigDir()
HubProject
getEntityConfigDir
in interface HubProject
public java.nio.file.Path getEntityDatabaseDir()
HubProject
getEntityDatabaseDir
in interface HubProject
public boolean isInitialized()
HubProject
isInitialized
in interface HubProject
public void init(java.util.Map<java.lang.String,java.lang.String> customTokens)
HubProject
init
in interface HubProject
customTokens
- - some custom tokens to start with