Reserve Resource Use Case J2EE

In the Reserve Resource use case, the project manager must reserve a resource for use on a project. See Figure E.6. The reservation is comprised of a length of time and a number of hours per week. After the resource is reserved, the resource manager must approve him. Once the resource manager approves the resource, the resource is officially assigned to the project.

Reserve Resource use case

Reserve Resource use case

Pattern Identification

Figure contains the pattern framework for the Reserve Resource use case. It shows the patterns used in presentation, business, and integration. We use the following presentation patterns:

  • Intercepting Filter— A filter checks user privileges for reserving a resource.
  • Front Controller— A controller acts as the initial point of contact for reserving a resource. The controller delegates resource reservation-related processing to its helpers, which in turn delegate much of this processing to the business tier.
  • View Helper— The view delegates to its helpers in order to generate dynamic portions of the display.
  • Composite View— The view includes a header and a footer to create the Reserve Resource page. This is a very simple example of a composite view.

We use the following business patterns:

  • Business Delegate— A business delegate interacts with the business tier for reserving a resource.
  • Service Locator— A business delegate uses a service locator to look up the resource components.
  • Session Facade— The business delegate interacts with a session bean, which interacts with the project entity when reserving a resource.
  • Value Object— A commitment value object encapsulates the commitment data, which is passed from the presentation tier to the business tier.
  • Composite Entity— A project entity acts as a coarse-grained object to the dependent commitment objects.
    We use the following integration patterns:
  • Data Access Object— A data access object abstracts and encapsulates access to the resource and commitment tables.

Reserve Resource pattern framework

Reserve Resource pattern framework
Pattern Realization
Figure shows the realized patterns for the Reserve Resource use case.
The following list matches the name of an implementation class with the pattern from which it is realized

  • Presentation—The Reserve Resource form is shown in Figure.
  • Business
  • Integration

Reserve Resource realized patterns

Reserve Resource realized patterns

Reserve Resources Form

Reserve Resources Form

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

J2EE Topics