Package org.fcrepo.config
Class FedoraPropsConfig
- java.lang.Object
-
- org.fcrepo.config.FedoraPropsConfig
-
@Configuration public class FedoraPropsConfig extends Object
General Fedora properties- Since:
- 6.0.0
- Author:
- pwinckles
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_FCREPO_CONFIG_FILE_PROP_SOURCE
static String
DEFAULT_FCREPO_HOME_VALUE
static String
FCREPO_ACTIVEMQ_CONFIGURATION
static String
FCREPO_CONFIG_FILE_PROP_SOURCE
static String
FCREPO_DYNAMIC_JMS_PORT
static String
FCREPO_DYNAMIC_STOMP_PORT
static String
FCREPO_EXTERNAL_CONTENT_ALLOWED
static String
FCREPO_HOME_PROPERTY
static String
FCREPO_JMS_ENABLED
static String
FCREPO_JMS_HOST
static String
FCREPO_NAMESPACE_REGISTRY
protected Path
fedoraHome
-
Constructor Summary
Constructors Constructor Description FedoraPropsConfig()
-
Method Summary
-
-
-
Field Detail
-
FCREPO_JMS_HOST
public static final String FCREPO_JMS_HOST
- See Also:
- Constant Field Values
-
FCREPO_DYNAMIC_JMS_PORT
public static final String FCREPO_DYNAMIC_JMS_PORT
- See Also:
- Constant Field Values
-
FCREPO_DYNAMIC_STOMP_PORT
public static final String FCREPO_DYNAMIC_STOMP_PORT
- See Also:
- Constant Field Values
-
FCREPO_ACTIVEMQ_CONFIGURATION
public static final String FCREPO_ACTIVEMQ_CONFIGURATION
- See Also:
- Constant Field Values
-
FCREPO_NAMESPACE_REGISTRY
public static final String FCREPO_NAMESPACE_REGISTRY
- See Also:
- Constant Field Values
-
FCREPO_EXTERNAL_CONTENT_ALLOWED
public static final String FCREPO_EXTERNAL_CONTENT_ALLOWED
- See Also:
- Constant Field Values
-
FCREPO_JMS_ENABLED
public static final String FCREPO_JMS_ENABLED
- See Also:
- Constant Field Values
-
fedoraHome
@Value("${fcrepo.home:fcrepo-home}") protected Path fedoraHome
-
FCREPO_HOME_PROPERTY
public static final String FCREPO_HOME_PROPERTY
- See Also:
- Constant Field Values
-
DEFAULT_FCREPO_HOME_VALUE
public static final String DEFAULT_FCREPO_HOME_VALUE
- See Also:
- Constant Field Values
-
DEFAULT_FCREPO_CONFIG_FILE_PROP_SOURCE
public static final String DEFAULT_FCREPO_CONFIG_FILE_PROP_SOURCE
- See Also:
- Constant Field Values
-
FCREPO_CONFIG_FILE_PROP_SOURCE
public static final String FCREPO_CONFIG_FILE_PROP_SOURCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FedoraPropsConfig
public FedoraPropsConfig()
-
-
Method Detail
-
getFedoraHome
public Path getFedoraHome()
- Returns:
- Path to Fedora home directory
-
setFedoraHome
public void setFedoraHome(Path fedoraHome)
Sets the path to the Fedora home directory -- should only be used for testing purposes.- Parameters:
fedoraHome
- Path to Fedora home directory
-
getFedoraData
public Path getFedoraData()
- Returns:
- Path to Fedora home data directory
-
getFedoraLogs
public Path getFedoraLogs()
- Returns:
- Path to Fedora home logs directory
-
setFedoraData
public void setFedoraData(Path fedoraData)
Sets the path to the Fedora home data directory -- should only be used for testing purposes.- Parameters:
fedoraData
- Path to Fedora home data directory
-
getJmsHost
public String getJmsHost()
- Returns:
- The JMS host
-
getJmsPort
public String getJmsPort()
- Returns:
- The JMS/Open Wire port
-
getStompPort
public String getStompPort()
- Returns:
- The STOMP protocol port
-
getActiveMqDirectory
public String getActiveMqDirectory()
- Returns:
- The ActiveMQ data directory
-
getActiveMQConfiguration
public org.springframework.core.io.Resource getActiveMQConfiguration()
- Returns:
- The path to the ActiveMQ xml spring configuration.
-
getExternalContentAllowed
public String getExternalContentAllowed()
- Returns:
- The path to the allowed external content pattern definitions.
-
getNamespaceRegistry
public String getNamespaceRegistry()
- Returns:
- The path to the namespace registry file.
-
getSessionTimeout
public Duration getSessionTimeout()
- Returns:
- The timeout in milliseconds of the persistence session
-
setSessionTimeout
public void setSessionTimeout(Duration sessionTimeout)
- Parameters:
sessionTimeout
- the session timeout duration
-
getVelocityLog
public Path getVelocityLog()
- Returns:
- The path to the velocity log.
-
isRebuildFixityCheck
public boolean isRebuildFixityCheck()
- Returns:
- true if the rebuild validation should also check file fixity
-
isRebuildOnStart
public boolean isRebuildOnStart()
- Returns:
- true if the internal indices should be rebuilt when Fedora starts up.
-
setRebuildOnStart
public void setRebuildOnStart(boolean rebuildOnStart)
- Parameters:
rebuildOnStart
- A boolean flag indicating whether or not to rebuild on start
-
getJmsBaseUrl
public String getJmsBaseUrl()
- Returns:
- the JMS base url, if specified
-
getServerManagedPropsMode
public ServerManagedPropsMode getServerManagedPropsMode()
- Returns:
- the server managed properties mode, default strict
-
setServerManagedPropsMode
public void setServerManagedPropsMode(ServerManagedPropsMode serverManagedPropsMode)
- Parameters:
serverManagedPropsMode
- the server managed props mode
-
getJmsDestinationType
public JmsDestination getJmsDestinationType()
- Returns:
- the jms destination type
-
getJmsDestinationName
public String getJmsDestinationName()
- Returns:
- the jms destination name
-
getEventBusThreads
public int getEventBusThreads()
- Returns:
- the number of threads to allocate in the event bus thread pool if this number is less than 1, 1 is returned
-
getContainmentCacheSize
public long getContainmentCacheSize()
- Returns:
- The number of entries in the containment cache.
-
getContainmentCacheTimeout
public long getContainmentCacheTimeout()
- Returns:
- The number of minutes before items in the containment cache expire.
-
getWebacCacheSize
public long getWebacCacheSize()
- Returns:
- The number of entries in the WebAC effective ACL cache.
-
getWebacCacheTimeout
public long getWebacCacheTimeout()
- Returns:
- The number of minutes before items in the WebAC ACL cache expire.
-
createDirectories
protected Path createDirectories(Path path) throws IOException
- Throws:
IOException
-
-