forked from nus-cs2103-AY1718S1/addressbook-level4-old
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from jeffreygohkw/week10
[V1.3][Week 10][W09-B2][Logic] Change Privacy Command
- Loading branch information
Showing
16 changed files
with
709 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,8 +193,8 @@ Changes the tag called `friends` to one called `enemies` instead. All existing c | |
|
||
=== Changing the Privacy of a person's details : `changeprivacy` `cp` (Since V1.3) | ||
|
||
You can use the `changeprivacy` command to set the privacy settings for each field of an existing `Person` in the address book, which allows you to choose specifically, what information will be displayed. + | ||
Format: `changeprivacy INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [b/BIRTHDAY] [t/TAG]` | ||
You can use the `changeprivacy` command to set the privacy settings for each field of an existing `Person` in the address book, which allows you to choose specifically what information will be displayed. + | ||
Format: `changeprivacy INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS]` | ||
Shorthand commands: `cp` | ||
|
||
**** | ||
|
@@ -203,15 +203,16 @@ Shorthand commands: `cp` | |
* You can only provide `true` or `false` as inputs after each prefix. | ||
* If you choose to input `false`, you will set the privacy of that field for that person to be public. The data in that field will be visible in the UI. | ||
* If you choose to input `true`, you will set the privacy of that field for that person to be private. The data in that field cannot be modified and will not be visible in the UI. | ||
* Fields that do not originally contain any data will still remain empty after changing their privacy | ||
* Fields that do not originally contain any data will still remain empty after changing their privacy. | ||
* If you do not add a prefix for the field in the command, that field will default to be public. | ||
**** | ||
|
||
Examples: | ||
|
||
* `changeprivacy 1 p/false e/true` + | ||
Sets the phone number of the 1st person to be public and their email address to be private. The 1st person's phone number will be displayed, if available, while their email address will be hidden in the UI. | ||
* `cp 2 a/false n/true t/false` + | ||
Sets the address and tags of the 2nd person to be public and their name to be private. The 2nd person's address and tags will be displayed, if available, while their name will be hidden in the UI. | ||
* `cp 2 a/false n/true e/false` + | ||
Sets the address and email of the 2nd person to be public and their name to be private. The 2nd person's address and email will be displayed, if available, while their name will be hidden in the UI. | ||
|
||
=== Locating persons by name : `find` | ||
|
||
|
@@ -633,10 +634,14 @@ The program will learn your typing habits and give autocomplete suggestions that | |
|
||
* *Add* : `add or a n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS b/BIRTHDAY f/FACULTY c/[GOOGLE CALENDAR URL] [t/TAG]...` + | ||
e.g. `add n/James Ho p/22224444 e/[email protected] a/123, Clementi Rd, 1234665, b/29-02-1996 f/SOC c/www.enteryourcalendarurlhere.com t/friend t/colleague` | ||
* *Add with private fields* : `add or a pn/NAME pp/PHONE_NUMBER pe/EMAIL pa/ADDRESS b/BIRTHDAY f/FACULTY c/[GOOGLE CALENDAR URL] [t/TAG]...` + | ||
e.g. `add pn/James Ho pp/22224444 pe/[email protected] pa/123, Clementi Rd, 1234665` | ||
* *Add task* : `add task n/NAME d/DESCRIPTION [t/DEADLINE] [p/PRIORITY]` + | ||
e.g. `add task n/Update Documentation d/Update documentations for V1.1 for CS2103T t/30/10/17 p/high` | ||
* *Add tag* : `addtag INDEX t/[TAG]` + | ||
e.g. `addtag 1 2 t/friends` | ||
* *Change a person's details' privacy* : `changeprivacy or cp INDEX [n/TRUE or FALSE] [p/TRUE or FALSE] [e/TRUE or FALSE] [a/TRUE or FALSE]` + | ||
e.g. `changeprivacy 2 n/true p/false e/true a/false` | ||
* *Clear person* : `clear` | ||
* *Clear tasks* : `cleartask` | ||
* *Delete person* : `delete INDEX` + | ||
|
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.