Back to project page Tasque-for-Android.
The source code is released under:
MIT License
If you think the Android project Tasque-for-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.bustiblelemons.tasque.utilities; /*from ww w. j ava 2 s .c om*/ import it.bova.rtmapi.Permission; public class PermissionParser { public static Permission parse(String permission) { if (permission.equalsIgnoreCase(Permission.DELETE.toString())) { return Permission.DELETE; } else if (permission.equalsIgnoreCase(Permission.WRITE.toString())) { return Permission.WRITE; } else if (permission.equalsIgnoreCase(Permission.READ.toString())) { return Permission.READ; } else { return Permission.NONE; } } }