Uploaded image for project: 'Scribble'
  1. SCRIB-14

Add Convenience method for admin login

    Details

    • Type: Story
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 0.2.0, 0.2.0-alpha1, 0.2.0-alpha3
    • Labels:
      None

      Description

      As a test developer I want to have a convenient way of getting a JCR session with admin permissions so that I don't have to hard-code the admin credentials.

      For a content repository to login with admin privileges, you have to call

      ContentRepository repository ...
      Session session = repository.login("admin","admin");
      

      a more convenient way would be to

      Session session  = repository.loginAsAdmin();
      

        Attachments

          Activity

            People

            • Assignee:
              gmuecke Gerald Mücke
              Reporter:
              gmuecke Gerald Mücke
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: