public class RepositoryApiConfiguration
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RepositoryApiConfiguration.RepoType |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_FILESYSTEM_LOC |
Constructor and Description |
---|
RepositoryApiConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileSystemFolder()
Returns the folder path of the repository.
|
java.lang.String |
getMongoDatabaseName()
Returns the database name used for the repository.
|
java.lang.String |
getMongoGridFSCollectionName()
Returns the name of the gridfs collection used for the repository.
|
java.lang.String |
getMongoUrlConnection()
Returns the connection to mongo database.
|
RepositoryApiConfiguration.RepoType |
getRepositoryType()
Returns the repository type.
|
java.lang.String |
getWebappPublicUrl()
Returns the repository public URL.
|
void |
setFileSystemFolder(java.lang.String fileSystemFolder)
Sets the folder path of the repository.
|
void |
setMongoDatabaseName(java.lang.String mongoDatabaseName)
Sets the database name used for the repository.
|
void |
setMongoGridFSCollectionName(java.lang.String mongoGridFSCollectionName)
Sets the name of the gridfs collection used for the repository.
|
void |
setMongoUrlConnection(java.lang.String mongoUrlConnection)
Sets the connection to mongo database in the format specified in
http://docs.mongodb.org/manual/reference/connection-string/.
|
void |
setRepositoryType(RepositoryApiConfiguration.RepoType repositoryType)
Sets the type of the repository.
|
void |
setWebappPublicUrl(java.lang.String webappPublicUrl)
Sets the public URL for the webapp of the repository.
|
public static final java.lang.String DEFAULT_FILESYSTEM_LOC
public java.lang.String getWebappPublicUrl()
setWebappPublicUrl(String)
.public void setWebappPublicUrl(java.lang.String webappPublicUrl)
webappPublicUrl
- URL for the web applicationpublic RepositoryApiConfiguration.RepoType getRepositoryType()
RepositoryApiConfiguration.RepoType.FILESYSTEM
and can be
changed with a properties file or with the method
RepositoryApiConfiguration#setRepositoryType(String)
.public void setRepositoryType(RepositoryApiConfiguration.RepoType repositoryType)
RepositoryApiConfiguration.RepoType.FILESYSTEM
or
RepositoryApiConfiguration.RepoType.MONGODB
.repositoryType
- type of the repositorypublic java.lang.String getFileSystemFolder()
setFileSystemFolder(String)
. This property is only used when
the repository type is "filesystem".public void setFileSystemFolder(java.lang.String fileSystemFolder)
fileSystemFolder
- folder, in the filesystem, that the repository will use to save the filespublic java.lang.String getMongoDatabaseName()
setMongoDatabaseName(String)
. This property is only used
when the repository type is "mongodb".public void setMongoDatabaseName(java.lang.String mongoDatabaseName)
mongoDatabaseName
- The database namepublic java.lang.String getMongoGridFSCollectionName()
setMongoGridFSCollectionName(String)
. This property is only
used when the repository type is "mongodb".public void setMongoGridFSCollectionName(java.lang.String mongoGridFSCollectionName)
mongoGridFSCollectionName
- the name of the gridfs collectionpublic java.lang.String getMongoUrlConnection()
setMongoUrlConnection(String)
. This property is only used
when the repository type is "mongodb".public void setMongoUrlConnection(java.lang.String mongoUrlConnection)
mongoUrlConnection
- connection URL for the mong database