Class PermlinkUtilities


  • public class PermlinkUtilities
    extends java.lang.Object
    Utility class to be used both on client and server side for permlink management.
    • Field Detail

      • PERM_ID_PARAMETER_KEY

        public static final java.lang.String PERM_ID_PARAMETER_KEY
        The HTTP URL parameter used to specify the entity identifier.
        See Also:
        Constant Field Values
      • ENTITY_KIND_PARAMETER_KEY

        public static final java.lang.String ENTITY_KIND_PARAMETER_KEY
        The HTTP URL parameter used to specify the entity kind.
        See Also:
        Constant Field Values
      • SUBTAB_PARAMETER_KEY

        public static final java.lang.String SUBTAB_PARAMETER_KEY
        The optional HTTP URL parameter used to specify the subtab that should be opened.
        See Also:
        Constant Field Values
      • DOWNLOAD_ATTACHMENT_ACTION

        public static final java.lang.String DOWNLOAD_ATTACHMENT_ACTION
        See Also:
        Constant Field Values
      • CODE_PARAMETER_KEY

        public static final java.lang.String CODE_PARAMETER_KEY
        See Also:
        Constant Field Values
      • SPACE_PARAMETER_KEY

        public static final java.lang.String SPACE_PARAMETER_KEY
        See Also:
        Constant Field Values
      • TYPE_PARAMETER_KEY

        public static final java.lang.String TYPE_PARAMETER_KEY
        See Also:
        Constant Field Values
      • NAME_PARAMETER_KEY

        public static final java.lang.String NAME_PARAMETER_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • PermlinkUtilities

        public PermlinkUtilities()
    • Method Detail

      • createPermlinkURL

        public static final java.lang.String createPermlinkURL​(java.lang.String baseIndexURL,
                                                               EntityKind entityKind,
                                                               java.lang.String permId)
      • createAttachmentPermlinkURL

        public static final java.lang.String createAttachmentPermlinkURL​(java.lang.String baseIndexURL,
                                                                         java.lang.String fileName,
                                                                         java.lang.Integer version,
                                                                         AttachmentHolderKind entityKind,
                                                                         java.lang.String permId)
      • createProjectAttachmentPermlinkURL

        public static final java.lang.String createProjectAttachmentPermlinkURL​(java.lang.String baseIndexURL,
                                                                                java.lang.String fileName,
                                                                                java.lang.Integer version,
                                                                                java.lang.String projectCode,
                                                                                java.lang.String space)
      • createProjectPermlinkURL

        public static final java.lang.String createProjectPermlinkURL​(java.lang.String baseIndexURL,
                                                                      java.lang.String projectCode,
                                                                      java.lang.String spaceCode)