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 StringDEFAULT_FCREPO_CONFIG_FILE_PROP_SOURCEstatic StringDEFAULT_FCREPO_HOME_VALUEstatic StringFCREPO_ACTIVEMQ_CONFIGURATIONstatic StringFCREPO_CONFIG_FILE_PROP_SOURCEstatic StringFCREPO_DYNAMIC_JMS_PORTstatic StringFCREPO_DYNAMIC_STOMP_PORTstatic StringFCREPO_EXTERNAL_CONTENT_ALLOWEDstatic StringFCREPO_HOME_PROPERTYstatic StringFCREPO_JMS_ENABLEDstatic StringFCREPO_JMS_HOSTstatic StringFCREPO_NAMESPACE_REGISTRYprotected PathfedoraHome
-
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
-
-