Class BoxAPI


  • public class BoxAPI
    extends Object
    New Box Content API that replaces the Box SDK v2. Code adopted from the BoxAPI worked with SDK v2.
    Created by The eXo Platform SAS.
    Version:
    $Id: BoxContentAPI.java 00000 Aug 19, 2015 pnedonosko $
    Author:
    Peter Nedonosko
    • Field Detail

      • LOG

        protected static final org.exoplatform.services.log.Log LOG
        The Constant LOG.
      • BOX_PAGE_SIZE

        public static final int BOX_PAGE_SIZE
        Pagination size used within Box API.
        See Also:
        Constant Field Values
      • BOX_ITEM_STATE_ACTIVE

        public static final String BOX_ITEM_STATE_ACTIVE
        Box item_status for active items.
        See Also:
        Constant Field Values
      • BOX_ITEM_STATE_TRASHED

        public static final String BOX_ITEM_STATE_TRASHED
        Box item_status for trashed items.
        See Also:
        Constant Field Values
      • BOX_ITEM_STATE_DELETED

        public static final String BOX_ITEM_STATE_DELETED
        Box item_status for deleted items.
        See Also:
        Constant Field Values
      • BOX_FILES_PATH

        protected static final String BOX_FILES_PATH
        Not official part of the path used in file services with Box API.
        See Also:
        Constant Field Values
      • BOX_WEBDOCUMENT_EXT

        public static final String BOX_WEBDOCUMENT_EXT
        Extension for Box's webdoc files.
        See Also:
        Constant Field Values
      • BOX_WEBDOCUMENT_MIMETYPE

        public static final String BOX_WEBDOCUMENT_MIMETYPE
        Custom mimetype for Box's webdoc files.
        See Also:
        Constant Field Values
      • BOX_NOTE_MIMETYPE

        public static final String BOX_NOTE_MIMETYPE
        Custom mimetype for Box's note files.
        See Also:
        Constant Field Values
      • BOX_EMBED_URL

        public static final String BOX_EMBED_URL
        URL patter for Embedded UI of Box file. Based on:
        http://stackoverflow.com/questions/12816239/box-com-embedded-file-folder-viewer-code-via-api http://developers.box.com/box-embed/
        See Also:
        Constant Field Values
      • BOX_URL_CUSTOM_PATTERN

        public static final Pattern BOX_URL_CUSTOM_PATTERN
        The Constant BOX_URL_CUSTOM_PATTERN.
      • BOX_URL_MAKE_CUSTOM_PATTERN

        public static final Pattern BOX_URL_MAKE_CUSTOM_PATTERN
        The Constant BOX_URL_MAKE_CUSTOM_PATTERN.
      • STREAM_POSITION_NOW

        public static final long STREAM_POSITION_NOW
        The Constant STREAM_POSITION_NOW.
        See Also:
        Constant Field Values
      • BOX_EVENTS

        public static final Set<com.box.sdk.BoxEvent.Type> BOX_EVENTS
        The Constant BOX_EVENTS.
      • ITEM_FIELDS

        public static final String[] ITEM_FIELDS
        An array of all file/folder fields that will be requested when calling ItemsIterator.
      • USER_FIELDS

        public static final String[] USER_FIELDS
        The Constant USER_FIELDS.