Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-784

Introduce Null object for anonymous user

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.16
    • Fix Version/s: 0.18
    • Labels:
      None
    • Environment:

      default

      Description

      UserService#getCurrentUser returns null if user is anonymous (not logged in). We need this service to return <? extends JCUser> with default field values, like page size and language.

      There should also be isAnonimous() method in JCUser and new class to replace various null-checks across the code

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  ilzul Ilya Zhulanov
                  Reporter:
                  jk1 Evgeniy Naumenko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 5h
                    5h
                    Remaining:
                    Remaining Estimate - 0h
                    0h
                    Logged:
                    Time Spent - 4h 35m Time Not Required
                    4h 35m

                      Structure Helper Panel