[DevicePolicyManager] Add new DevicePolicyManager API (#632)
authory01k <44759543+y01k@users.noreply.github.com>
Wed, 30 Jan 2019 04:29:06 +0000 (13:29 +0900)
committeryl33 <31228316+yl33@users.noreply.github.com>
Wed, 30 Jan 2019 04:29:06 +0000 (13:29 +0900)
commit3c5807df2bd8766e004af9b8062f089712b41994
treea692b0422a5dc4ad966f626c53e04a99bf78af71
parent802e1d5c1c907cdaacc79676993eda033db45a9e
[DevicePolicyManager] Add new DevicePolicyManager API (#632)

* Initial Commit

- Interop
- DevicePolicyManager class

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Add policies

- Email Policy
- Password Policy
- Telephony Policy
- Wifi Policy

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Fix library name

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Modify solution file

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Add policy change callback api

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Implement policy change apis

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Fix field names

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Add documentation comments

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Add Logs

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Apply coding style

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* PasswordPolicy: Modify return type of GetQuality

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Add a period to the comments.

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Add Namespace documentation

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Modify retrun statements

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Modify exception handling

- Change enum name : DpmError -> ErrorCode
- Change method name : GetException -> CreateException
- remove OutOfMemoryException
- remove throw exception in Dispose()
- Modify exception handling in DevicePolicyManager()

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Modify Policy classes

- Add an abstraction class
+ DevicePolicy.cs
- Add inheritance to each policy class
- Modify GetPolicy function in DevicePolicyManager : class -> DevicePolicy

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Add Dispose Pattern to Policy classes

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Fix an invalid value name

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Modify methods into properties.

- Add PolicyState class
- Modify method -> property : EmailPolicy, PasswordPolicy, WifiPolicy

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* TelephonyPolicy: Modify function name and return type

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Add space.

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* WifiPolicy : Add IDisposable

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Remove unnecessary default constructor

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Events : Fix passing sender "null" to "this"

pass null as the sender when raising nonstatic event.

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* DevicePolicyManager : Modify GetPolicy method

Remove checking null and Add try-catch statement.

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* PasswordQuality : Apply capitalization conventions

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* PolicyState : Apply capitalization conventions

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* PolicyChangedEventArgs: Change "State" type

string -> PolicyState

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* PasswordPolicy: Replace default value of properties

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* DevicePolicy: Add protected keyword

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Policy Classes: Add new properties.

Add missing properties.

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* UsbPolicy: Fix property name

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Remove PolicyState type

Replace PolicyState type to bool type.

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Policy classes: Add policy name value.

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* MediaPolicy: Fix typos

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* PasswordPolicy: Change name of a property

ExpiresDay -> DaysToExpiration

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Policy Class: Add remarks

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Policy Classes: Change const to static

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
* Policy Names: Add the readonly

Signed-off-by: yeji kim <yeji01.kim@samsung.com>
19 files changed:
src/Tizen.Security.DevicePolicyManager/Interop/Interop.DevicePolicyManager.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Interop/Interop.Libraries.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager.csproj [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager.sln [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/BluetoothPolicy.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/BrowserPolicy.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/DevicePolicy.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/DevicePolicyManager.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/EmailPolicy.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/LocationPolicy.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/MediaPolicy.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/PasswordPolicy.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/PasswordQuality.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/PolicyChangedEventArgs.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/StoragePolicy.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/TelephonyPolicy.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/UsbPolicy.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager/WifiPolicy.cs [new file with mode: 0644]
src/Tizen.Security.DevicePolicyManager/doc/api/Tizen.Security.DevicePolicyManager.md [new file with mode: 0644]