Presentation on theme: "The World according to the App layer. What the App layer does * Facilitate the flow of information between view and data representations (which have different."— Presentation transcript:
What the App layer does * Facilitate the flow of information between view and data representations (which have different requirements). * Presenting information as to the configuration of the system to the UI and service layers, and receive information from them. * Allowing a point of extension and integration in terms of extra data feeds and storage mechanisms, extendible through a plugin-like mechanism.
CSPi vs CSP The app layer is split into CSP = CollectionSpace Plugins CSPi = CollectionSpace Plugin implementations The use of implementations allow the App layer to easily grow and accommodate multiple data sources and structures
CSPi Schema Parses cspace-config.xml and makes it available to all areas of the App layer
A more complex example Important to note that that filePath sent from the webUI is not necessarily the URL that the service layer needs and is more like a flag which helps the app layer decide what to do with it once it hits CSPi Services as sometimes we need to make multiple calls to the Service Layers RestFul services to get all the information needed
Data Flow Berkele y Service s Toronto UI Magic CSPi- Services CSPi- WebUI RESTful XML /cspace-services/xxx/x JSON /chain/xxx/xxx App Layer CSPi-Schema cspace-config.xml
CSPi-Schema This is responsible for maintaining the "core" configuration. Many plugins will just be able to use the configuration managed by this plugin, and not have their own extensions at all. Spec.java is the main class and is initialised only once at the startup and will parse the config against a set of rules. Rules can be added in any class, any where in the system – which means that you can override specific rules for different implementations if needed.
CSPi-WebUI Main WebUI.java maps urls to classes Record/authority/relate/userroles/userdetails All Fundamentally the same Have 4 classes CreateUpdate Delete Read Search Nuispec Magic that makes the uispecs for the UI layer from the config.
CSPi-Services XXXStorage AutocreateJSON UpdateJSON DeleteJSON GetPathsJSON Everything else is mostly to do with caching, mini records and differences between the structure of XML that the service layer sends us for different data type MiniRecords are summary records created (hopefully) only from the subset of data pulled when retrieving lists of data from the service layer. This should be enough data to populate RH columns and Search results. The app layer internally talks to itself with JSON(hence why all the functions have JSON in the name)
Your consent to our cookies if you continue to use this website.