Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v1.5][T11-B2] PrisonBook #78

Open
wants to merge 392 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
392 commits
Select commit Hold shift + click to select a range
9afa182
Add tests to test showcell and addcell (incomplete)
sarahgoh97 Mar 28, 2018
c29e014
Fixed coding standard errors
sarahgoh97 Mar 28, 2018
2fa38ea
Update to meet coding standards
sarahgoh97 Mar 28, 2018
9d95f29
Merge pull request #12 from CS2103JAN2018-T11-B2/master
philos22 Mar 28, 2018
98cfc71
Update documentation
sarahgoh97 Mar 28, 2018
3d1cb0b
Merge pull request #42 from sarahgoh97/cells
sarahgoh97 Mar 28, 2018
5e9ac91
added calendar command which lists all upcoming events - no tests yet
philos22 Mar 28, 2018
2cffb64
trying release
sarahgoh97 Mar 28, 2018
bba8a33
Merge pull request #5 from CS2103JAN2018-T11-B2/master
zacci Mar 28, 2018
8d063fa
style 1
philos22 Mar 28, 2018
c99afc7
style check fix
philos22 Mar 28, 2018
e3e14f1
veyor style fix
philos22 Mar 28, 2018
708f1db
Merge pull request #55 from philos22/master
philos22 Mar 28, 2018
a8e2c19
Merge pull request #11 from CS2103JAN2018-T11-B2/master
sarahgoh97 Mar 28, 2018
f18c20b
for release
sarahgoh97 Mar 28, 2018
343e076
Merge pull request #63 from sarahgoh97/master
sarahgoh97 Mar 28, 2018
08c0090
updated dev guide for calendar commands
philos22 Mar 29, 2018
f8ad4d9
updated dev guide for calendar commands - minor style changes
philos22 Mar 29, 2018
3b8a2ad
update calendar view command - dev guide user guide
philos22 Mar 29, 2018
141d2f7
update userguide minor details
philos22 Mar 29, 2018
bc6c4b0
Added Logout Command
zacci Mar 29, 2018
2ceed8c
Merge pull request #64 from zacci/master
zacci Mar 29, 2018
8acec84
[v1.3] Updated User Guide with Login and Logout Command
zacci Mar 29, 2018
c8065cd
Merge pull request #65 from zacci/master
zacci Mar 29, 2018
2a1d7eb
Updated Zacci Portfolio
zacci Mar 29, 2018
13f507c
Merge pull request #12 from CS2103JAN2018-T11-B2/master
sarahgoh97 Mar 29, 2018
64cb296
Merge pull request #66 from zacci/master
zacci Mar 29, 2018
21f692f
updated user portfolio and dev guide
philos22 Mar 29, 2018
fa198db
minor format details in portfolio
philos22 Mar 29, 2018
c6e860a
minor change in portfolio
philos22 Mar 29, 2018
dd79a22
Merge pull request #67 from philos22/master
philos22 Mar 29, 2018
a57f8f1
Merge pull request #13 from CS2103JAN2018-T11-B2/master
philos22 Apr 1, 2018
6269b5a
Merge pull request #13 from CS2103JAN2018-T11-B2/master
sarahgoh97 Apr 2, 2018
edf587c
Person removed from cell when deleted from list
sarahgoh97 Apr 2, 2018
2d096f1
Fixed addCell for undoing
sarahgoh97 Apr 2, 2018
ad764da
all tests passed
sarahgoh97 Apr 2, 2018
3b843ac
Merge pull request #6 from CS2103JAN2018-T11-B2/master
zacci Apr 2, 2018
aa12886
DeleteCellCommand with NotImprisonedException and PersonNotFoundExcep…
sarahgoh97 Apr 2, 2018
36b54f5
[v1.4] Implemented Sessions
zacci Apr 3, 2018
0ab0a88
Add Map to UI
sarahgoh97 Apr 3, 2018
ef444dd
Fix coding standards violations
sarahgoh97 Apr 4, 2018
ffaee13
Collate code
sarahgoh97 Apr 4, 2018
d0b828d
Changing GUI
sarahgoh97 Apr 4, 2018
ba74e9d
Update documentation
sarahgoh97 Apr 4, 2018
9d3208c
Include images
sarahgoh97 Apr 4, 2018
38b36f6
[v1.4] Implemented Minimum Security Logic
zacci Apr 4, 2018
bd34c90
Merge pull request #71 from sarahgoh97/tryDeleteAgain
zacci Apr 4, 2018
2303157
Merge branch 'master' into master
zacci Apr 4, 2018
3be5e78
Merge pull request #7 from CS2103JAN2018-T11-B2/master
zacci Apr 4, 2018
d77fa80
[v1.4] Fixed missing import for CheckStatusCommand
zacci Apr 4, 2018
e99c8fd
[v1.4] Fixing Travis and AppVeyor Errors
zacci Apr 4, 2018
984297c
[v1.4] Fixing Travis and AppVeyor Errors
zacci Apr 4, 2018
f0e6262
[v1.4] Fix Travis and AppVeyor Issues
zacci Apr 4, 2018
c626106
[v1.4] Fix Travis and AppVeyor Issues
zacci Apr 4, 2018
6409ee4
Calendar Add Event Functionality, Collated Author Docs
philos22 Apr 4, 2018
6030b17
Merge branch 'master' into master
philos22 Apr 4, 2018
f993dc7
Merge pull request #14 from CS2103JAN2018-T11-B2/master
philos22 Apr 4, 2018
45f126e
fix excluded import in addrBookParser
philos22 Apr 4, 2018
fbeb164
updated User Guide
philos22 Apr 4, 2018
4dc46f4
style fix 1
philos22 Apr 4, 2018
59e84e0
style fix 2
philos22 Apr 4, 2018
91a7a27
Documentation, addCalendarCommand
philos22 Apr 4, 2018
110336e
Merge branch 'master' into master
zacci Apr 4, 2018
f13d100
Merge pull request #73 from zacci/master
zacci Apr 4, 2018
7d43f89
[v1.4] Implemented Storage Capabilities for User Data & Added AddUser…
zacci Apr 4, 2018
ddead9e
Merge pull request #8 from CS2103JAN2018-T11-B2/master
zacci Apr 4, 2018
d682a78
Fix Merging Errors
zacci Apr 4, 2018
e3ea062
Merge branch 'master' of https://github.com/zacci/main
zacci Apr 4, 2018
1b812ed
[v1.4] Add Documentation and Fix Travis/AppVeyor Errors
zacci Apr 4, 2018
c664f3a
[v1.4] Fix CheckStyle Issues
zacci Apr 4, 2018
b24382e
[v1.4] Fix Checkstyle Errors
zacci Apr 4, 2018
64e93ac
style changes for v1.4
philos22 Apr 5, 2018
e02f12f
Merge pull request #76 from zacci/master
zacci Apr 5, 2018
a7ca816
update Version number in MainApp, fix calAdd error msg
philos22 Apr 5, 2018
1cdd6a5
Merge pull request #16 from CS2103JAN2018-T11-B2/master
philos22 Apr 5, 2018
a3726cd
Merge branch 'master' of https://github.com/philos22/main
philos22 Apr 5, 2018
616918a
Merge pull request #14 from CS2103JAN2018-T11-B2/master
sarahgoh97 Apr 5, 2018
22ed1a2
Collated files, authored for isaac
philos22 Apr 5, 2018
2c7f15b
Merge pull request #77 from philos22/master
philos22 Apr 5, 2018
0b7e41f
[v1.4] Update test code claiming
zacci Apr 5, 2018
e594d04
Merge pull request #78 from zacci/master
zacci Apr 5, 2018
dc844fa
Merge pull request #17 from CS2103JAN2018-T11-B2/master
philos22 Apr 5, 2018
dd06882
isaac collate
philos22 Apr 5, 2018
ea6240b
Merge pull request #79 from philos22/master
philos22 Apr 5, 2018
f49403a
Merge pull request #15 from CS2103JAN2018-T11-B2/master
sarahgoh97 Apr 6, 2018
5854788
[v1.4] Added Exceptions and Updated Userguide
zacci Apr 6, 2018
235ab21
Merge pull request #9 from CS2103JAN2018-T11-B2/master
zacci Apr 6, 2018
09830ed
Fix Checkstyle Errors
zacci Apr 6, 2018
6c58b69
Merge pull request #80 from zacci/master
zacci Apr 6, 2018
d322d11
Updated Userguide for Calendar Commands
zacci Apr 6, 2018
74e3264
Merge pull request #81 from zacci/master
zacci Apr 6, 2018
b7f2ded
change excetion message from prisoner in cell
sarahgoh97 Apr 6, 2018
1fa127e
Merge pull request #16 from CS2103JAN2018-T11-B2/master
sarahgoh97 Apr 9, 2018
df071d7
Merge branch 'master' of https://github.com/sarahgoh97/main into addc…
sarahgoh97 Apr 9, 2018
1154530
Fix delete undo bug (when deleting imprisoned prisoner)
sarahgoh97 Apr 9, 2018
68ecc49
Update GUI to not show anything when first opening app
sarahgoh97 Apr 10, 2018
e265e74
Updated tests and collating comments
sarahgoh97 Apr 10, 2018
0d6e2dd
Remove SelectCommand and changed affected tests
sarahgoh97 Apr 10, 2018
d0a2bc8
Updated user guide
sarahgoh97 Apr 10, 2018
d3a1318
Fix undo bugs for deleteCell
sarahgoh97 Apr 10, 2018
da253fd
Collate comments added
sarahgoh97 Apr 10, 2018
5bb8397
Update UG for cell limits
sarahgoh97 Apr 10, 2018
e9007b1
Implement ListCell function for CLI
sarahgoh97 Apr 10, 2018
8289522
Fixed UserGuide for cal command
sarahgoh97 Apr 11, 2018
f721e77
Merge pull request #10 from CS2103JAN2018-T11-B2/master
zacci Apr 11, 2018
fe85204
Removed Clear Command and Handled Login/Logout exceptions
zacci Apr 11, 2018
69baa6b
fix bug for DC command
sarahgoh97 Apr 11, 2018
773f915
Delete DeveloperGuide.adoc.orig
philos22 Apr 11, 2018
8ff1879
[v1.5] Added Delete User Functionality
zacci Apr 11, 2018
c0caba0
Merge pull request #114 from sarahgoh97/addcellfixes
zacci Apr 11, 2018
d1f8aaa
Merge pull request #11 from CS2103JAN2018-T11-B2/master
zacci Apr 11, 2018
ba4972d
Added Implementation to ModelStub
zacci Apr 11, 2018
63e3a23
Merge branch 'master' of https://github.com/zacci/main
zacci Apr 11, 2018
862e6c0
Fixed Test Issues
zacci Apr 11, 2018
0372b7d
Calendar DeleteEvent command implemented, documentation updated
philos22 Apr 11, 2018
7a959d4
Merge branch 'master' into master
philos22 Apr 11, 2018
0ae694c
Merge pull request #18 from CS2103JAN2018-T11-B2/master
philos22 Apr 11, 2018
e5131d5
Fix Checkstyle Errors
zacci Apr 11, 2018
ac651c9
user guide update for calDel
philos22 Apr 11, 2018
254ebef
calDelete documentation
philos22 Apr 11, 2018
9de2b6d
style fix 1
philos22 Apr 11, 2018
35cd8a1
style fix 2
philos22 Apr 11, 2018
4a3a552
Updated UserGuide and Changed Role on UI
zacci Apr 11, 2018
a2dcc68
style fix 3
philos22 Apr 11, 2018
cc6e7eb
Merge pull request #118 from philos22/master
philos22 Apr 11, 2018
09825c0
portfolio fix
philos22 Apr 11, 2018
d2fac0e
Merge pull request #120 from philos22/master
philos22 Apr 11, 2018
21d332d
portfolio fix2
philos22 Apr 11, 2018
7619f42
portfolio fix2
philos22 Apr 11, 2018
dfc99e6
portfolio fix3
philos22 Apr 11, 2018
60d8d1b
Merge pull request #121 from philos22/master
philos22 Apr 11, 2018
09bbe67
portfolio fix 4
philos22 Apr 11, 2018
d6545bb
Merge pull request #122 from philos22/master
philos22 Apr 11, 2018
6256802
Merge pull request #17 from CS2103JAN2018-T11-B2/master
sarahgoh97 Apr 11, 2018
08e7a94
Update user guide
sarahgoh97 Apr 11, 2018
2f8a62b
Fixed Setup for AddCellCommandTest and EditCommandTest and pass tests
sarahgoh97 Apr 11, 2018
119eb4f
Update documentation
sarahgoh97 Apr 11, 2018
f63b0f0
Merge branch 'addcellfixes' to master
sarahgoh97 Apr 11, 2018
8379219
Merge pull request #123 from sarahgoh97/master
sarahgoh97 Apr 11, 2018
ac2a912
Set maximum of 15 digits for Phone
sarahgoh97 Apr 11, 2018
b8926ec
Prevent users from changing roles and cell addresses of persons in pr…
sarahgoh97 Apr 11, 2018
6de5259
Merge pull request #12 from CS2103JAN2018-T11-B2/master
zacci Apr 11, 2018
ffd23d8
Fix Checkstyle Errors
zacci Apr 11, 2018
439149c
portfolio added
philos22 Apr 11, 2018
56e4c37
Merge pull request #19 from CS2103JAN2018-T11-B2/master
philos22 Apr 11, 2018
b397072
Merge pull request #124 from philos22/master
philos22 Apr 11, 2018
146fd1b
Fix Checkstyle Errors
zacci Apr 11, 2018
0072452
Merge pull request #119 from zacci/master
zacci Apr 11, 2018
8926d74
Cannot edit roles and editting addresses only change old address of i…
sarahgoh97 Apr 11, 2018
2718b9c
Merge pull request #18 from CS2103JAN2018-T11-B2/master
sarahgoh97 Apr 11, 2018
3717bc7
Update developerguide
sarahgoh97 Apr 11, 2018
4eb0138
Merge and update UserGuide
sarahgoh97 Apr 11, 2018
06f8207
Merge pull request #125 from sarahgoh97/master
sarahgoh97 Apr 11, 2018
dfeb051
Show list when logged in and hide map and list when logged out
sarahgoh97 Apr 11, 2018
606d3bd
Merge pull request #127 from sarahgoh97/master
sarahgoh97 Apr 11, 2018
29fec28
Collated
sarahgoh97 Apr 12, 2018
fe03f87
Merge pull request #20 from CS2103JAN2018-T11-B2/master
philos22 Apr 12, 2018
17ad347
updated collated code
philos22 Apr 12, 2018
a7e51b9
Added sample prisoner and guards details in Sample Data Util
zacci Apr 12, 2018
b2428f7
Updated UserGuide
zacci Apr 12, 2018
d55cb2d
Added minsecuritylevel to Deleteusercommand
zacci Apr 12, 2018
75ad24f
Merge branch 'master' into master
zacci Apr 12, 2018
e916fba
Updated user guide
zacci Apr 12, 2018
eab26b2
Merge pull request #13 from CS2103JAN2018-T11-B2/master
zacci Apr 12, 2018
e2b7211
fix deletecommand arraylist bug
philos22 Apr 12, 2018
3e36a29
Fix CheckStyle Errors
zacci Apr 12, 2018
b88f96f
Merge branch 'master' of https://github.com/zacci/main
zacci Apr 12, 2018
9a8ef7a
Fixing Errors
zacci Apr 12, 2018
fffc0a5
Merge pull request #129 from zacci/master
zacci Apr 12, 2018
399699f
update scope of example command
philos22 Apr 12, 2018
3760e18
Merge pull request #130 from philos22/master
zacci Apr 12, 2018
62b61c0
Merge pull request #14 from CS2103JAN2018-T11-B2/master
zacci Apr 12, 2018
0307782
Merge pull request #21 from CS2103JAN2018-T11-B2/master
philos22 Apr 12, 2018
9081774
fix timezone bug and displayed event details
philos22 Apr 12, 2018
3deac39
style fix
philos22 Apr 12, 2018
cf96172
[v1.5] Fix Timezone Bug and Displayed Event Details
philos22 Apr 12, 2018
796be0e
Merge branch 'master' into master
sarahgoh97 Apr 13, 2018
9344f06
Merge pull request #19 from CS2103JAN2018-T11-B2/master
sarahgoh97 Apr 13, 2018
5ccb191
Finished addCellCommandTests
sarahgoh97 Apr 13, 2018
9ea4140
add UndoRedo test for addcell
sarahgoh97 Apr 13, 2018
703214d
Finished tests for DeleteCellCommand
sarahgoh97 Apr 13, 2018
05bc685
Refactored and pass all tests
sarahgoh97 Apr 13, 2018
4e176f6
Add ListCellTest and ensure passing of all tests
sarahgoh97 Apr 13, 2018
a5b620f
Tests for cells added
sarahgoh97 Apr 13, 2018
cad12ee
Update Documentation
sarahgoh97 Apr 13, 2018
aa7affb
Fix EditCommand bug
sarahgoh97 Apr 13, 2018
67534d6
Add imprisoned prisoners to sampleFile
sarahgoh97 Apr 13, 2018
01e795a
Collated some code
sarahgoh97 Apr 13, 2018
80350b6
Fix another EditCommand bug
sarahgoh97 Apr 13, 2018
cda0e08
Refactored some code
sarahgoh97 Apr 13, 2018
b1aeb46
Update documentation
sarahgoh97 Apr 14, 2018
f3c86a3
Merge pull request #133 from sarahgoh97/cellTests
sarahgoh97 Apr 14, 2018
67e7e6e
Update portfolio
sarahgoh97 Apr 14, 2018
a4ddfab
Updated Portfolio
sarahgoh97 Apr 14, 2018
c175d9f
Fix typing errors and documentation
sarahgoh97 Apr 14, 2018
2dc2c5e
Fix typing errors and documentation
sarahgoh97 Apr 14, 2018
376db96
Added portfolio and editted userguide
sarahgoh97 Apr 14, 2018
df2fa7c
Added portfolio and updated UserGuide
sarahgoh97 Apr 14, 2018
0f7b5d5
Write more comments
sarahgoh97 Apr 14, 2018
e861b44
Update DG
sarahgoh97 Apr 14, 2018
e8e54f6
Update DeveloperGuide and Version on MainApp
sarahgoh97 Apr 14, 2018
3c525ca
Edit Command summary
sarahgoh97 Apr 14, 2018
8830618
Merge pull request #22 from CS2103JAN2018-T11-B2/master
philos22 Apr 15, 2018
b283ca4
Merge pull request #15 from CS2103JAN2018-T11-B2/master
zacci Apr 15, 2018
6157861
Added AddUserCommand Tests + UserTest Utils
zacci Apr 15, 2018
4531761
Added Login Command Tests and Logout Command Tests
zacci Apr 15, 2018
28b4bd3
Added DeleteUserCommand Tests
zacci Apr 15, 2018
d479ae6
Fix Exception Checkstyle Issues
zacci Apr 15, 2018
8514580
Fix Checkstyle Issues
zacci Apr 15, 2018
b90ffc1
Checkstyle Errors
zacci Apr 15, 2018
ea5909b
Merge pull request #138 from zacci/master
zacci Apr 15, 2018
391e151
Added manual testing guide
zacci Apr 15, 2018
006fa5d
Update StatusBarFooter when logged out
sarahgoh97 Apr 15, 2018
369d0d6
Updated Dev Guide
zacci Apr 15, 2018
b05b71e
Corrected Typo
zacci Apr 15, 2018
d01822a
Updated Zacci Portfolio
zacci Apr 15, 2018
53a5fa6
Merge pull request #139 from zacci/master
zacci Apr 15, 2018
c13e882
Tagged some code for collation
zacci Apr 15, 2018
2a43520
Merge pull request #23 from CS2103JAN2018-T11-B2/master
philos22 Apr 15, 2018
48733cb
Merge pull request #140 from zacci/master
zacci Apr 15, 2018
014b2e9
Updated Zacci Portfolio
zacci Apr 15, 2018
d095166
Update StatusBar and UserGuide
sarahgoh97 Apr 15, 2018
d67046c
Updated zacci portfolio
zacci Apr 15, 2018
bf20fa0
Merge pull request #142 from zacci/master
zacci Apr 15, 2018
9c4b054
Merge pull request #143 from zacci/master
zacci Apr 15, 2018
e61bd45
docs, calAddCommandParser changes, find by tags parser changes
philos22 Apr 15, 2018
239a3b6
dev guide manual testing
philos22 Apr 15, 2018
18c02cd
dev guide image load
philos22 Apr 15, 2018
c8772a7
bug fixes
philos22 Apr 15, 2018
26817a5
Merge pull request #144 from philos22/master
philos22 Apr 15, 2018
650c8f2
fix calD bug and message
philos22 Apr 15, 2018
6b2e2f6
collate
philos22 Apr 15, 2018
0c83e08
portfolio
philos22 Apr 15, 2018
ab1e30e
port
philos22 Apr 15, 2018
3f1b6dc
styles 1
philos22 Apr 15, 2018
1f7ab62
styles2
philos22 Apr 15, 2018
fec35af
styles3
philos22 Apr 15, 2018
ed07030
style 4 - collate
philos22 Apr 15, 2018
c79f4ce
style 5
philos22 Apr 15, 2018
d1b6e8e
[v1.5] Documentation and Bug fixes
sarahgoh97 Apr 15, 2018
8f33ca1
style
philos22 Apr 15, 2018
78104d6
Merge pull request #147 from philos22/master
philos22 Apr 15, 2018
bb1b46d
portfolio minimize
philos22 Apr 15, 2018
c5d17fa
Merge pull request #148 from philos22/master
philos22 Apr 15, 2018
db415b8
img
philos22 Apr 15, 2018
4100da2
img
philos22 Apr 15, 2018
e0382f9
Merge pull request #149 from philos22/master
philos22 Apr 15, 2018
40fa13f
mini
philos22 Apr 15, 2018
cd4d544
mini
philos22 Apr 15, 2018
d673dd2
Merge pull request #150 from philos22/master
philos22 Apr 15, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Collate-TUI.jar
Binary file not shown.
25 changes: 10 additions & 15 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
= Address Book (Level 4)
= PrisonBook
ifdef::env-github,env-browser[:relfileprefix: docs/]

https://travis-ci.org/se-edu/addressbook-level4[image:https://travis-ci.org/se-edu/addressbook-level4.svg?branch=master[Build Status]]
https://ci.appveyor.com/project/damithc/addressbook-level4[image:https://ci.appveyor.com/api/projects/status/3boko2x2vr5cc3w2?svg=true[Build status]]
https://coveralls.io/github/se-edu/addressbook-level4?branch=master[image:https://coveralls.io/repos/github/se-edu/addressbook-level4/badge.svg?branch=master[Coverage Status]]
https://www.codacy.com/app/damith/addressbook-level4?utm_source=github.com&utm_medium=referral&utm_content=se-edu/addressbook-level4&utm_campaign=Badge_Grade[image:https://api.codacy.com/project/badge/Grade/fc0b7775cf7f4fdeaf08776f3d8e364a[Codacy Badge]]
https://gitter.im/se-edu/Lobby[image:https://badges.gitter.im/se-edu/Lobby.svg[Gitter chat]]
https://travis-ci.org/CS2103Jan2018-T11-B2[image:https://travis-ci.org/se-edu/addressbook-level4.svg?branch=master[Build Status]]
https://ci.appveyor.com/project/sarahgoh97/main[image:https://ci.appveyor.com/api/projects/status/3boko2x2vr5cc3w2?svg=true[Build status]]

ifdef::env-github[]
image::docs/images/Ui.png[width="600"]
Expand All @@ -15,24 +12,22 @@ ifndef::env-github[]
image::images/Ui.png[width="600"]
endif::[]

* This is a desktop Address Book application. It has a GUI but most of the user interactions happen using a CLI (Command Line Interface).
* It is a Java sample application intended for students learning Software Engineering while using Java as the main programming language.
* It is *written in OOP fashion*. It provides a *reasonably well-written* code example that is *significantly bigger* (around 6 KLoC)than what students usually write in beginner-level SE modules.
* What's different from https://github.com/se-edu/addressbook-level3[level 3]:
** A more sophisticated GUI that includes a list panel and an in-built Browser.
** More test cases, including automated GUI testing.
** Support for _Build Automation_ using Gradle and for _Continuous Integration_ using Travis CI.
* This is a desktop Prison Book application. It has a GUI but most of the user interactions happen using a CLI (Command Line Interface).

== Target Users

* Private prison owners or wardens have to keep track of what is happening in their own prisons.
* Guards who want to check schedules of prisoners or when they are on duty

== Site Map

* <<UserGuide#, User Guide>>
* <<DeveloperGuide#, Developer Guide>>
* <<LearningOutcomes#, Learning Outcomes>>
* <<AboutUs#, About Us>>
* <<ContactUs#, Contact Us>>

== Acknowledgements

* The original source code of this application is from the AddressBook-Level4 project created by SE-EDU initiative.
* Some parts of this sample application were inspired by the excellent http://code.makery.ch/library/javafx-8-tutorial/[Java FX tutorial] by
_Marco Jakob_.
* Libraries used: https://github.com/TomasMikula/EasyBind[EasyBind], https://github.com/TestFX/TestFX[TextFX], https://bitbucket.org/controlsfx/controlsfx/[ControlsFX], https://github.com/FasterXML/jackson[Jackson], https://github.com/google/guava[Guava], https://github.com/junit-team/junit4[JUnit4]
Expand Down
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ dependencies {
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.7.0'
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.7.4'
compile group: 'com.google.guava', name: 'guava', version: '19.0'
compile 'com.google.api-client:google-api-client:1.23.0'
compile 'com.google.oauth-client:google-oauth-client-jetty:1.23.0'
compile 'com.google.apis:google-api-services-calendar:v3-rev301-1.23.0'

testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.testfx', name: 'testfx-core', version: testFxVersion
Expand All @@ -63,7 +66,7 @@ shadowJar {
}

task wrapper(type: Wrapper) {
gradleVersion = '2.12'
gradleVersion = '4.6'
}

task coverage(type: JacocoReport) {
Expand Down Expand Up @@ -205,3 +208,5 @@ deployOfflineDocs.dependsOn asciidoctor
processResources.dependsOn deployOfflineDocs

defaultTasks 'clean', 'headless', 'allTests', 'coverage', 'asciidoctor'


1 change: 1 addition & 0 deletions client_secret.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"installed":{"client_id":"824981534536-7k6u7vm63qpv15valckvlg7n4d4hkecq.apps.googleusercontent.com","project_id":"fiery-topic-199411","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"vIpAveyVpUqN90Ckf892Xdi6","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}
127 changes: 127 additions & 0 deletions collated/functional/philos22-unused.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# philos22-unused
###### \java\seedu\address\model\person\Prisoner.java
``` java
package seedu.address.model.person;

import static seedu.address.commons.util.CollectionUtil.requireAllNonNull;

import java.util.Objects;
import java.util.Set;

import seedu.address.model.tag.Tag;


/**
* Prisoner class is child class of Person: but each instance has a release date
*/
public class Prisoner extends Person {

private final ReleaseDate releaseDate;

public Prisoner(Name name, Phone phone, Email email, Address address, Role role, Set<Tag> tags,
ReleaseDate releaseDate) {
super(name, phone, email, address, role, tags);
requireAllNonNull(name, phone, email, address, tags, releaseDate);
this.releaseDate = releaseDate;
}

public ReleaseDate getRelease_date() {
return releaseDate;
}

@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}

if (!(other instanceof Prisoner)) {
return false;
}

Prisoner otherPerson = (Prisoner) other;
return otherPerson.getName().equals(this.getName())
&& otherPerson.getPhone().equals(this.getPhone())
&& otherPerson.getEmail().equals(this.getEmail())
&& otherPerson.getAddress().equals(this.getAddress())
&& otherPerson.getRelease_date().equals(this.getRelease_date());
}

@Override
public int hashCode() {
// use this method for custom fields hashing instead of implementing your own
return Objects.hash(this.getName(), this.getPhone(), this.getEmail(), this.getAddress(), this.getTags(),
this.getRelease_date());
}

@Override
public String toString() {
final StringBuilder builder = new StringBuilder();
builder.append(getName())
.append(" Phone: ")
.append(getPhone())
.append(" Email: ")
.append(getEmail())
.append(" Address: ")
.append(getAddress())
.append(" Tags: ");
getTags().forEach(builder::append);
builder.append(" Release Date: ").append(getRelease_date());
return builder.toString();
}
}
```
###### \java\seedu\address\model\person\ReleaseDate.java
``` java
package seedu.address.model.person;

import static java.util.Objects.requireNonNull;
import static seedu.address.commons.util.AppUtil.checkArgument;

/**
* Represents the release date of the prisoner in date time format
*/
public class ReleaseDate {

public static final String MESSAGE_RELEASE_DATE_CONSTRAINTS = "The date format: yyyy-MM-dd";
// credit of the regex goes to - Ofir Luzon - on Stack Overflow
public static final String RELEASE_DATE_VALIDATION_REGEX = "^(?:(?:31(-)(?:0?[13578]|1[02]))\\1|"
+
"(?:(?:29|30)(-)(?:0?[1,3-9]|1[0-2])\\2))(?:(?:1[6-9]|[2-9]\\d)?\\d{2})$|^(?:29(-)0?2\\3"
+
"(?:(?:(?:1[6-9]|[2-9]\\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))"
+
"$|^(?:0?[1-9]|1\\d|2[0-8])(-)(?:(?:0?[1-9])|(?:1[0-2]))\\4(?:(?:1[6-9]|[2-9]\\d)?\\d{2})$";
public final String value;


// Constructs valid release date with valid parameter
public ReleaseDate(String releaseDate) {
requireNonNull(releaseDate);
checkArgument(isValidReleaseDate(releaseDate), MESSAGE_RELEASE_DATE_CONSTRAINTS);
this.value = releaseDate;
}

// Returns true if release date is valid
public static boolean isValidReleaseDate(String test) {
return test.matches(RELEASE_DATE_VALIDATION_REGEX);
}

@Override
public String toString() {
return value;
}

@Override
public boolean equals(Object other) {
return other == this // short circuit if same object
|| (other instanceof ReleaseDate // instanceof handles nulls
&& this.value.equals(((ReleaseDate) other).value)); // state check
}

@Override
public int hashCode() {
return value.hashCode();
}
}
```
Loading