This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to Write a Wrapper to Support Individual Traits and Identifiers

 
Natalie Kopple
Ranch Hand
Posts: 325
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, there is a rather large scale undertaking at my work place. There are several applications under the project.

The Managers/Architects of the project want a "wrapper" to be coded to support users' traits and identifiers. Therefore, when a user's; say, name, SSN, etc. are needed, the information can be retrieved from this wrapper.

What are the tasks involved in writing such a wrapper? Are there code examples of writing such a wrapper?

Thanks very much for help.
 
Paul Clapham
Sheriff
Pie
Posts: 20196
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first task, as always, is "Design". This is where you ask questions like "Do all users have the same traits?" and "Are there groups of users whose members all have the same traits?" and "Can people create arbitrary traits?" and "Can a trait be applied to one user and no others?" and "What is going to be done with these traits?"

But you said you had architects. It would have been their responsibility to ask such questions and to produce a design which is considerably larger than your two-sentence description of the requirement. Have they done that yet? It's too early to be asking about programming if you don't have some kind of a design available.
 
Winston Gutkowski
Bartender
Pie
Posts: 9490
50
Eclipse IDE Hibernate Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Natalie Kopple wrote:What are the tasks involved in writing such a wrapper? Are there code examples of writing such a wrapper?

Well a standard wrapper is exactly that: a class that "wraps" another, viz:Normally, forwarders have identical signatures to the methods they call, but you only have to define whatever ones are required for the wrapper. In this case, that probably means methods that have something to do with 'traits'.

However, since presumably they're already available through the User class itself, I don't really see the point.
Maybe you could explain.

Winston
 
Natalie Kopple
Ranch Hand
Posts: 325
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some one on the team is currently writing the User Story/ Use Case/ Technical Story. Nevertheless, I already known that I am going to be the one code this wrapper class.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic