Class PortalUtils


  • public class PortalUtils
    extends Object
    • Field Detail

      • objectMapper

        public static com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Constructor Detail

      • PortalUtils

        public PortalUtils()
    • Method Detail

      • isEmptyOrNullString

        public static boolean isEmptyOrNullString​(String input)
      • isEmptyList

        public static boolean isEmptyList​(List input)
      • convertToMLPuser

        public static User convertToMLPuser​(org.acumos.cds.domain.MLPUser mlpUser)
      • convertToRtuUser

        public static RtuUser convertToRtuUser​(org.acumos.cds.domain.MLPUser mlpUser,
                                               boolean isAssociatedWithRtu)
      • convertToMLSolution

        public static MLSolution convertToMLSolution​(org.acumos.cds.domain.MLPSolution mlpSolution)
      • convertToMLPeer

        public static MLPeer convertToMLPeer​(org.acumos.cds.domain.MLPPeer peer)
      • convertToMLPSolution

        public static org.acumos.cds.domain.MLPSolution convertToMLPSolution​(MLSolution mlSolution)
      • convertToMLRole

        public static MLRole convertToMLRole​(org.acumos.cds.domain.MLPRole mlpRole)
      • convertToMLPRole

        public static org.acumos.cds.domain.MLPRole convertToMLPRole​(MLRole mlRole)
      • convertToMLRoleFunction

        public static MLRoleFunction convertToMLRoleFunction​(org.acumos.cds.domain.MLPRoleFunction mlpRoleFunction)
      • convertToMLPUserForUpdate

        public static org.acumos.cds.domain.MLPUser convertToMLPUserForUpdate​(User user)
      • convertToOathUser

        public static OauthUser convertToOathUser​(org.acumos.cds.domain.MLPUserLoginProvider mlpUserLoginProvider)
      • convertUserMasterIntoMLPUser

        public static User convertUserMasterIntoMLPUser​(UserMasterObject userMaster)
      • convertUserMasterIntoOauthUser

        public static OauthUser convertUserMasterIntoOauthUser​(UserMasterObject userMasterObject)
      • convertToMLNotification

        public static MLNotification convertToMLNotification​(org.acumos.cds.domain.MLPNotification mlpNotification)
      • convertToMLSolutionRating

        public static MLSolutionRating convertToMLSolutionRating​(org.acumos.cds.domain.MLPSolutionRating mlpSolutionRating)
      • convertToMLSolutionFavorite

        public static MLSolutionFavorite convertToMLSolutionFavorite​(org.acumos.cds.domain.MLPSolutionFavorite mlpSolutionFavorite)
      • convertToMLSolutionDownload

        public static MLSolutionDownload convertToMLSolutionDownload​(org.acumos.cds.domain.MLPSolutionDownload mlpSolutionDownload)
      • convertMLSiteConfigToMLPSiteConfig

        public static org.acumos.cds.domain.MLPSiteConfig convertMLSiteConfigToMLPSiteConfig​(org.acumos.cds.domain.MLPSiteConfig mlpSiteConfig)
      • convertStreamToString

        public static String convertStreamToString​(InputStream is)
      • convertToMLStepResult

        public static MLStepResult convertToMLStepResult​(org.acumos.cds.domain.MLPTask task,
                                                         org.acumos.cds.domain.MLPTaskStepResult mlpStepResult)
      • convertToMLStepResults

        public static MLStepResult convertToMLStepResults​(org.acumos.cds.domain.MLPTaskStepResult mlPTaskStepResult)
      • convertToMLTask

        public static MLTask convertToMLTask​(org.acumos.cds.domain.MLPTask task)
      • mapToJsonString

        public static String mapToJsonString​(Map<String,​?> theMap)
      • convertToMLUserNotifPref

        public static MLUserNotifPref convertToMLUserNotifPref​(org.acumos.cds.domain.MLPUserNotifPref mlpUserNotifPref)
      • convertToMLPUserNotifPref

        public static org.acumos.cds.domain.MLPUserNotifPref convertToMLPUserNotifPref​(MLUserNotifPref mlUserNotifPref)
      • convertToMLSolutionRatingRestPageResponse

        public static org.acumos.cds.transport.RestPageResponse<MLSolutionRating> convertToMLSolutionRatingRestPageResponse​(List<MLSolutionRating> mlSolutionRatingList,
                                                                                                                            org.acumos.cds.transport.RestPageResponse<org.acumos.cds.domain.MLPSolutionRating> mlpSolutionRating)
      • convertToMLComment

        public static MLComment convertToMLComment​(org.acumos.cds.domain.MLPComment mlpComment,
                                                   String userTimeZone)
      • convertToRevisionDescription

        public static RevisionDescription convertToRevisionDescription​(org.acumos.cds.domain.MLPRevCatDescription mlpDescription)
      • convertToAuthor

        public static List<Author> convertToAuthor​(org.acumos.cds.transport.AuthorTransport[] authorTransport)
      • convertToMLPublishRequest

        public static MLPublishRequest convertToMLPublishRequest​(org.acumos.cds.domain.MLPPublishRequest publishRequest)
      • convertRestPageResponse

        public static <T,​E> org.acumos.cds.transport.RestPageResponse<E> convertRestPageResponse​(org.acumos.cds.transport.RestPageResponse<T> first,
                                                                                                       List<E> content)
      • convertToMLArtifact

        public static MLArtifact convertToMLArtifact​(org.acumos.cds.domain.MLPArtifact mlpArtifact,
                                                     boolean masked,
                                                     String validSolution)
      • converToMLSiteConfig

        public static MLK8SiteConfig converToMLSiteConfig​(org.acumos.cds.domain.MLPSiteConfig siteConfig)