Class URLUtils

java.lang.Object
org.exoplatform.social.webui.URLUtils

public class URLUtils extends Object
Processes url and returns the some type of result base on url.
  • Constructor Details

    • URLUtils

      public URLUtils()
  • Method Details

    • getStreamOwnerId

      public static String getStreamOwnerId()
      Returns:
      the user carried by the current page URL — the profile owner on a profile or activity-stream page — or null when the URL carries none. Unlike getCurrentUser(), no accessibility filtering is applied: this answers "is this page about a user, and which one", while what the viewer may see of that user belongs to the service consuming the answer. getCurrentUser() returns null for an external viewer on a profile it may not access, which conflates "not a user-scoped page" with "not accessible" — a widget switching modes on that null would silently fall back to its non-profile behaviour on a profile page.
    • getCurrentUser

      public static String getCurrentUser()
      Returns:
      current user name base on analysis of current url