![]() ![]() This is akin to opening a connection to a database (which is in fact one of the things that happens.)Ī context object is involved in most method calls and object constructors, so that the method or object has access to information about the current operation. Any code that wishes to use the any API in the business logic layer must first create itself a Context object. The Context class is central to the DSpace operation. ![]() Here are a some of the most commonly used constants you might come across: The value of resource_type_id is taken from the Constants class, for example Constants.ITEM. For example, authorization policies can relate to objects of different types, so the resourcepolicy table has columns resource_id, which is the internal ID of the object, and resource_type_id, which indicates whether the object is an item, collection, bitstream etc. This class contains constants that are used to represent types of object and actions in the database. If the property has no value, nothing is written. /bin/dspace dsprop property.name This writes the value of property.name from dspace.cfg to the standard output, so that shell scripts can access the DSpace configuration.The ConfigurationManager class can also be invoked as a command line tool: ![]() When editing configuration files for applications that DSpace uses, such as Apache Tomcat, you may want to edit the copy in and then run ant update or ant overwrite_configs rather than editing the 'live' version directly! This will ensure you have a backup copy of your modified configuration files, so that they are not accidentally overwritten in the future. The system is configured by editing the relevant files in /config, as described in the configuration section. The configuration manager is responsible for reading the main dspace.cfg properties file, managing the 'template' configuration files for other applications such as Apache, and for obtaining the text for e-mail messages. The package provides some basic classes that are used throughout the DSpace code. ![]()
0 Comments
Leave a Reply. |