Class UserUtilities

java.lang.Object
com.appiancorp.suiteapi.forums.UserUtilities

@Deprecated public class UserUtilities extends Object
Deprecated.
The Discussion Forums functionality will be removed in a future release. Use the News feed and related smart services to build applications with similar functionality.
Contains utility methods related to users as relevant to discussions.
  • Field Details

  • Constructor Details

    • UserUtilities

      public UserUtilities()
      Deprecated.
  • Method Details

    • populateUserName

      public static void populateUserName(DiscussionThread dt, UserService us)
      Deprecated.
      Populate the creator based on the creatorId. If creatorId is null, will use creator. Sets creator to UNAVAILABLE if creatorId is not found or both creatorId and creator are null.
      Parameters:
      dt -
      us - The service that translates a user id to a user name.
    • populateUserName

      public static void populateUserName(ThreadSummary ts, UserService us)
      Deprecated.
      Populate the creator based on the creatorId. If creatorId is null, will use creator. Sets creator to UNAVAILABLE if creatorId is not found or both creatorId and creator are null.
      Parameters:
      ts -
      us - The service that translates a user id to a user name.
    • populateUserName

      public static void populateUserName(Message m, UserService us)
      Deprecated.
      Populate the author based on the authorId. If authorId is null, will use author. Sets author to UNAVAILABLE if authorId is not found or both authorId and author are null.
      Parameters:
      m -
      us - The service that translates a user id to a user name.
    • populateUserName

      public static void populateUserName(ThreadedMessage tm, UserService us)
      Deprecated.
      Populate the author based on the authorId. If authorId is null, will use author. Sets author to UNAVAILABLE if authorId is not found or both authorId and author are null.
      Parameters:
      tm -
      us - The service that translates a user id to a user name.
    • populateUserNames

      public static void populateUserNames(DiscussionThread[] dts, UserService us)
      Deprecated.
      Populate the authors based on the authorIds and authors. Sets author to UNAVAILABLE if authorId is not found or both authorId and author are null.
      Parameters:
      dts -
      us - The service that translates a user id to a user name.
      Throws:
      InvalidUserException
    • populateUserNames

      public static void populateUserNames(ThreadSummary[] tss, UserService us)
      Deprecated.
      Populate the authors based on the authorIds and authors. Sets author to UNAVAILABLE if authorId is not found or both authorId and author are null.
      Parameters:
      tss -
      us - The service that translates a user id to a user name.
      Throws:
      InvalidUserException
    • populateUserNames

      public static void populateUserNames(Message[] ms, UserService us)
      Deprecated.
      Populate the creators based on the creatorIds and creators. Sets creator to UNAVAILABLE if creatorId is not found or both creatorId and creator are null.
      Parameters:
      ms -
      us - The service that translates a user id to a user name.
      Throws:
      InvalidUserException
    • populateUserNames

      public static void populateUserNames(ThreadedMessage[] tms, UserService us)
      Deprecated.
      Populate the creators based on the creatorIds and craetors. Sets creator to UNAVAILABLE if creatorId is not found or both creatorId and creator are null.
      Parameters:
      tms -
      us - The service that translates a user id to a user name.
      Throws:
      InvalidUserException