The following describes is a minimal set of commands and examples of use that will be run in order to test your application and the expected output.
The dollar sign denotes a UNIX prompt.
The > denotes the application prompt. User entered commands are denoted in bold.
Everything between # and the end of line is a comment.
For purposes of exemplification It is assumed that the application is written in Java and that the name of the executable is ims (Inventory Management System).
$ java ims
>
> user-show
User "Administrator", role "admin" # In the beginning there is only one user, the
Administrator
> inventory-show "News"
You may not perform this operation. # Administrator can only create users and grant them roles
> user-add "John Doe" "owner"
User "John Doe" added, role "owner"
> user-add "Alice" "VP Sales"
User "Alice" added, role "vpsales"
> user-add "Matt D" "sales"
User "Matt D" added, role "sales"
> user-add "Bob" "adoperations" "accounting" # Users can be granted multiple roles
User "Bob" added, roles "adoperations", "accounting"
> user-add "Mario Z" "sales"
User "Mario Z" added, role "sales"
> user-show "John Doe"
"John Doe", role "owner"
> user-show
User "John Doe", role "owner"
User "Alice", role "VP Sales"
User "Matt D", role "sales"
User "Bob", roles "adoperations", "accounting"
User "Mario Z", role "sales"
User "Administrator", role "admin"
> user-set "Alice" # all subsequent commands will be executed as
Alice until a new "user-set" command changes the user.
User "Alice", role "VP Sales"
> inventory-add "News" "International" "2011-07-14" 300000
You may not perform this operation.
> user-set "Bob"
User "Bob", roles "adoperations", "accounting"
> placement-show
Nothing to show, there are no placements in the system.
> placement-add "728x90" "footer"
Placement "footer" (728x90) added.
> placement-add "300x250" "top-box"
Placement "to-box" (300x250) added.
> placement-add "300x250" "second-box"
Placement "second-box" (300x250) added.
> placement-show
"footer" (728x90)
"top-box" (300x250)
"second-box" (300x250)
> inventory-add "News" "International" "2011-07-14" 300000
Added 300,000 to "News" "International" on "2011-07-14".
Total page views projected: 300,000.
Total impressions projected: 900,000.
Total impressions booked: 0.
> inventory-add "News" "International" "2011-07-14" 150000
Added 150,000 to "News" "International" on "2011-07-14".
Total page views projected: 450,000.
Total impressions projected: 1,350,000.
Total impressions booked: 0.
> inventory-add "News" "International" "2011-07-14" -200000
Added -200,000 to "News" "International" on "2011-07-14".
Total page views projected: 250,000.
Total impressions projected: 750,000.
Total impressions booked: 0.
> inventory-add "News" "International" "2011-07-15" 175000
Added 175,000 to "News" "International" on "2011-07-15".
Total page views projected: 175,000.
Total impressions projected: 525,000.
Total impressions booked: 0.
> inventory-add "Sports" "Baseball" "2011-07-15" 620000
Added 620,000 to "Sports" "Baseball" on "2011-07-15".
Total page views projected: 620,000.
Total impressions projected: 1,860,000.
Total impressions booked: 0.
> inventory-add "Sports" "Baseball" "2011-07-16" 840000
Added 840,000 to "Sports" "Baseball" on "2011-07-16".
Total page views projected: 840,000.
Total impressions projected: 2,520,000.
Total impressions booked: 0.
> inventory-add "Sports" "Soccer" "2011-07-15" 180000
Added 180,000 to "Sports" "Soccer" on "2011-07-15".
Total page views projected: 180,000.
Total impressions projected: 540,000.
Total impressions booked: 0.
> inventory-show "Sports" "Soccer" "2011-07-16"
"Sports", "Soccer", "2011-07-16".
Total page views projected: 0.
Total impressions projected: 0.
Total impressions booked: 0.
"footer" (728x90): Projected: 0. Booked: 0. Available: 0
"top-box" (300x250): Projected: 0. Booked: 0. Available: 0
"second-box" (300x250): Projected: 0. Booked: 0. Available: 0
> inventory-show "Sports"
"Sports", "Baseball", "2011-07-15".
Total page views projected: 620,000.
Total impressions projected: 1,860,0000.
Total impressions booked: 0.
"footer" (728x90): Projected: 620,0000. Booked: 0. Available: 620,000
"top-box" (300x250): Projected: 620,000. Booked: 0. Available: 620,000
"second-box" (300x250): Projected: 620,000. Booked: 0. Available: 620,000
"Sports", "Baseball", "2011-07-16".
Total page views projected: 840,000.
Total impressions projected: 2,520,000.
Total impressions booked: 0.
"footer" (728x90): Projected: 840,000. Booked: 0. Available: 840,000
"top-box" (300x250): Projected: 840,000. Booked: 0. Available: 840,000
"second-box" (300x250): Projected: 840,000. Booked: 0. Available: 840,000
"Sports", "Soccer", "2011-07-15". Total projected: 180000. Total booked: 0
Total page views projected: 180,000.
Total impressions projected: 540,000.
Total impressions booked: 0.
"footer" (728x90): Projected: 180,000. Booked: 0. Available: 180,000
"top-box" (300x250): Projected: 180,000. Booked: 0. Available: 180,000
"second-box" (300x250): Projected: 180,000. Booked: 0. Available: 180,000
> booking-add "News" "International" "2011-07-20" "footer" 300000 3.45 "ACME Networking"
You may not perform this operation.
> user-set "Matt D"
User "Matt D", role "sales"
> booking-add "News" "International" "2011-07-20" "footer" 300000 3.45 "ACME Networking"
Inventory not available.
> booking-add "News" "International" "2011-07-14" "footer" 140000 3.45 "ACME Networking"
Booked 140,000 of "footer" (728x90) on "News" "International" "2011-07-14" for "ACME Networking". CPM: $3.45. Total revenue: $483.00.
> inventory-show "News"
"News", "International", "2011-07-14":
Total page views projected: 250,000.
Total impressions projected: 750,000.
Total impressions booked: 140,000.
"footer" (728x90): Projected: 250,000. Booked: 140,000. Available: 110,000
"top-box" (300x250): Projected: 250,000. Booked: 0. Available: 250,000
"second-box" (300x250): Projected: 250,000. Booked: 0. Available: 250,000
"News", "International", "2011-07-15".
Total page views projected: 175,000.
Total impressions projected: 525,000.
Total impressions booked: 0.
"footer" (728x90): Projected: 175,000. Booked: 0. Available: 175,000
"top-box" (300x250): Projected: 175,000. Booked: 0. Available: 175,000
"second-box" (300x250): Projected: 175,000. Booked: 0. Available: 175,000
> booking-add "News" "International" "2011-07-14" "top-box" 250000 5.00 "TheSleepless"
Booked 250000 of "top-box" (300x250) on "News" "International" "2011-07-14" for "TheSleepless". CPM: $5.00. Total revenue: $1,250.00.
> inventory-show "News"
"News", "International", "2011-07-14":
Total page views projected: 250,000.
Total impressions projected: 750,000.
Total impressions booked: 390,000.
"footer" (728x90): Projected: 250,000. Booked: 140,000. Available: 110,000
"top-box" (300x250): Projected: 250,000. Booked: 250,0000. Available: 0
"second-box" (300x250): Projected: 250,000. Booked: 0. Available: 250,000
"News", "International", "2011-07-15".
Total page views projected: 175,000.
Total impressions projected: 525,000.
Total impressions booked: 0.
"footer" (728x90): Projected: 175,000. Booked: 0. Available: 175,000
"top-box" (300x250): Projected: 175,000. Booked: 0. Available: 175,000
"second-box" (300x250): Projected: 175,000. Booked: 0. Available: 175,000
> booking-show "News"
"News", "International", "2011-07-14". Total impressions projected: 750,000. Total impressions booked: 390,000.
"footer" (728x90) Booked: 140,000 CPM: $3.45. Client: "ACME Networking". Status: booked
"top-box" (300x250) Booked: 250,000 CPM: $5.00. Client: "TheSleepless". Status: booked
> user-set "Mario Z"
User "Mario Z", role "sales"
> booking-show "News"
You have no bookings in "News"
> booking-add "News" "International" "2011-07-14" "footer" 100000 4.10 "One Pizza"
Booked 100,000 of "footer" (728x90) on "News" "International" "2011-07-14" for "One Pizza". CPM: $4.10. Total revenue: $410.00.
> booking-show "News"
"News", "International", "2011-07-14". Total impressions projected: 750,000. Total impressions booked: 490,000. Status: booked.
"footer" (728x90) Booked: 100,000 CPM: $4.10. Client: "One Pizza"
> inventory-show "News" "International" "2011-07-14"
"News", "International", "2011-07-14":
Total page views projected: 250,000.
Total impressions projected: 750,000.
Total impressions booked: 490,000.
"footer" (728x90): Projected: 250,000. Booked: 240,000. Available: 10,000
"top-box" (300x250): Projected: 250,000. Booked: 250,0000. Available: 0
"second-box" (300x250): Projected: 250,000. Booked: 0. Available: 250,000
> user-set "Alice"
User "Alice", role "VP Sales"
> booking-show "News"
"News", "International", "2011-07-14". Total impressions projected: 750,000. Total impressions booked: 490,000.
"Matt D"
"footer" (728x90) Booked: 140,000. CPM: $3.45. Client: "ACME Networking". Status: booked
"top-box" (300x250) Booked: 250000. CPM: $5.00. Client: "TheSleepless". Status: booked
"Mario Z"
"footer" (728x90) Booked: 100,000. CPM: $4.10. Client: "One Pizza". Status: booked
> quit
Current state saved in file ims-20110417-1231.
Good bye!
$
$ java ims ims-20110417-1231
>
> user-show
User "Alice", role "VP Sales"
> booking-show "2011-07-14"
"News", "International", "2011-07-14". Total impressions projected: 750,000. Total impressions booked: 490,000.
"Matt D"
"footer" (728x90) Booked: 140,000. CPM: $3.45. Client: "ACME Networking". Status: booked
"top-box" (300x250) Booked: 250000. CPM: $5.00. Client: "TheSleepless". Status: booked
"Mario Z"
"footer" (728x90) Booked: 100,000. CPM: $4.10. Client: "One Pizza". Status: booked
> booking-commit "News" "International" "2011-07-14" "footer" 250000 5.00 "TheSleepless"
You may not perform this operation.
> user-set "Bob"
User "Bob", roles "adoperations", "accounting"
> booking-show "2011-07-14"
"News", "International", "2011-07-14". Total impressions projected: 750,000. Total impressions booked: 490,000.
"Matt D"
"footer" (728x90) Booked: 140,000. CPM: $3.45. Client: "ACME Networking". Status: booked
"top-box" (300x250) Booked: 250000. CPM: $5.00. Client: "TheSleepless". Status: booked
"Mario Z"
"footer" (728x90) Booked: 100,000. CPM: $4.10. Client: "One Pizza". Status: booked
> booking-commit "News" "International" "2011-07-14" "footer" 250000 5.00 "TheSleepless"
Committed
> booking-show "2011-07-14"
"News", "International", "2011-07-14". Total impressions projected: 750,000. Total impressions booked: 490,000.
"Matt D"
"footer" (728x90) Booked: 140,000. CPM: $3.45. Client: "ACME Networking". Status: booked
"top-box" (300x250) Booked: 250000. CPM: $5.00. Client: "TheSleepless". Status: committed
"Mario Z"
"footer" (728x90) Booked: 100,000. CPM: $4.10. Client: "One Pizza". Status: booked
> inventory-show "News" "International" "2011-07-14"
"News", "International", "2011-07-14":
Total page views projected: 250,000.
Total impressions projected: 750,000.
Total impressions booked: 490,000.
"footer" (728x90): Projected: 250,000. Booked: 240,000. Available: 10,000
"top-box" (300x250): Projected: 250,000. Booked: 250,0000. Available: 0
"second-box" (300x250): Projected: 250,000. Booked: 0. Available: 250,000
> inventory-add "News" "International" "2011-07-14" -50000
You'll have to have some bookings canceled before you can reduce projected page views for this section, sub-section, and date.
> quit
Current state saved in file ims-20110417-1249.
Good bye!
$
$ java ims
>
> user-show
User "Administrator", role "admin" # In the beginning there is only one user, the
Administrator
> user-add "Bob" "adoperation" "accounting" # Users can be granted multiple roles
User "Bob" added, roles "adoperations", "accounting"
> user-show
User "Bob", roles "adoperations", "accounting"
> user-set "Bob"
User "Bob", roles "adoperations", "accounting"
> inventory-load "ims-inventory-forecast-20110407.xml"
File processed.
> inventory-show
"News", "International", "2011-07-14":
Total page views projected: 250,000.
Total impressions projected: 750,000.
Total impressions booked: 0.
"footer" (728x90): Projected: 250,000. Booked: 0. Available: 250,000
"top-box" (300x250): Projected: 250,000. Booked: 0. Available: 250,000
"second-box" (300x250): Projected: 250,000. Booked: 0. Available: 250,000
"News", "International", "2011-07-15".
Total page views projected: 175,000.
Total impressions projected: 525,000.
Total impressions booked: 0.
"footer" (728x90): Projected: 175,000. Booked: 0. Available: 175,000
"top-box" (300x250): Projected: 175,000. Booked: 0. Available: 175,000
"second-box" (300x250): Projected: 175,000. Booked: 0. Available: 175,000
"Sports", "Baseball", "2011-07-15".
Total page views projected: 620,000.
Total impressions projected: 1,860,0000.
Total impressions booked: 0.
"footer" (728x90): Projected: 620,0000. Booked: 0. Available: 620,000
"top-box" (300x250): Projected: 620,000. Booked: 0. Available: 620,000
"second-box" (300x250): Projected: 620,000. Booked: 0. Available: 620,000
"Sports", "Baseball", "2011-07-16".
Total page views projected: 840,000.
Total impressions projected: 2,520,000.
Total impressions booked: 0.
"footer" (728x90): Projected: 840,000. Booked: 0. Available: 840,000
"top-box" (300x250): Projected: 840,000. Booked: 0. Available: 840,000
"second-box" (300x250): Projected: 840,000. Booked: 0. Available: 840,000
"Sports", "Soccer", "2011-07-15". Total projected: 180000. Total booked: 0
Total page views projected: 180,000.
Total impressions projected: 540,000.
Total impressions booked: 0.
"footer" (728x90): Projected: 180,000. Booked: 0. Available: 180,000
"top-box" (300x250): Projected: 180,000. Booked: 0. Available: 180,000
"second-box" (300x250): Projected: 180,000. Booked: 0. Available: 180,000
> quit
Current state saved in file ims-20110417-1259.
Good bye!
$
$Id: acceptance.html,v 1.4 2011/04/07 21:45:42 virgil Exp $