Search code examples
codenameoneparse4cn1

Adding ACL support to parse4cn1


I'm working on an app written in Codename One together with the parse4cn1 library, the combination of which is a real pleasure to use. However, I need support for a few things in parse4cn1 that are not implemented, most importantly ACL and was wondering if Chidiebere has any hints on how to do this (e.g. how did you implement parse4cn1 yourself - from scratch or copying the open source Parse SDK for Android)? If I manage to do something of a decent quality I will try to share back. Thanks in advance


Solution

  • I never got around implementing ACLs (it's still on the TODO list). parse4cn1's interface closes resembles the Parse Android SDK interface and I'll like it to stay that way for convenience. In this case, the interface of interest would be the ParseACL which is documented here.

    The actual implementation will need to be done via REST API calls.

    Things to bear in mind:

    1. We use the Android SDK API simply for defining methods and signatures for the corresponding class in ParseACL but do not use the SDKs for anything can be be done via REST.
    2. By design, any calls requiring the master key will not be supported in parse4cn1 due to security considerations. If really needed, the functionality should be exposed via server-side cloud code.
    3. Pull requests without unit tests for the added functionality or breaking existing tests will be rejected.
    4. See also the Contributions section of the parse4cn1 github repo.

    Good luck with your implementation and I hope to see a PR from you soon ;)