Package org.exoplatform.clouddrive.box
Class BoxAPI
- java.lang.Object
-
- org.exoplatform.clouddrive.box.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBoxAPI.ChangesLinkThe Class ChangesLink.
-
Field Summary
Fields Modifier and Type Field Description static StringBOX_APP_URLURL of Box app.static StringBOX_EMBED_URLURL patter for Embedded UI of Box file.static StringBOX_EMBED_URL_SSOThe Constant BOX_EMBED_URL_SSO.static Set<com.box.sdk.BoxEvent.Type>BOX_EVENTSThe Constant BOX_EVENTS.static StringBOX_FILE_URLURL prefix for Box files' UI.protected static StringBOX_FILES_PATHNot official part of the path used in file services with Box API.static StringBOX_ITEM_STATE_ACTIVEBox item_status for active items.static StringBOX_ITEM_STATE_DELETEDBox item_status for deleted items.static StringBOX_ITEM_STATE_TRASHEDBox item_status for trashed items.static StringBOX_NOTE_EXTExtension for Box's webdoc files.static StringBOX_NOTE_MIMETYPECustom mimetype for Box's note files.static intBOX_PAGE_SIZEPagination size used within Box API.static StringBOX_ROOT_IDId of root folder on Box.static StringBOX_TRASH_IDId of Trash folder on Box.static PatternBOX_URL_CUSTOM_PATTERNThe Constant BOX_URL_CUSTOM_PATTERN.static PatternBOX_URL_MAKE_CUSTOM_PATTERNThe Constant BOX_URL_MAKE_CUSTOM_PATTERN.static StringBOX_WEBDOCUMENT_EXTExtension for Box's webdoc files.static StringBOX_WEBDOCUMENT_MIMETYPECustom mimetype for Box's webdoc files.static StringFOLDER_TYPEBox folder type.static String[]ITEM_FIELDSAn array of all file/folder fields that will be requested when calling ItemsIterator.protected static org.exoplatform.services.log.LogLOGThe Constant LOG.static longSTREAM_POSITION_NOWThe Constant STREAM_POSITION_NOW.static String[]USER_FIELDSThe Constant USER_FIELDS.
-
-
-
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_ROOT_ID
public static final String BOX_ROOT_ID
Id of root folder on Box.- See Also:
- Constant Field Values
-
BOX_TRASH_ID
public static final String BOX_TRASH_ID
Id of Trash folder on Box.- 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_APP_URL
public static final String BOX_APP_URL
URL of Box app.- 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_FILE_URL
public static final String BOX_FILE_URL
URL prefix for Box files' UI.- 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_EXT
public static final String BOX_NOTE_EXT
Extension 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_EMBED_URL_SSO
public static final String BOX_EMBED_URL_SSO
The Constant BOX_EMBED_URL_SSO.- 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
-
FOLDER_TYPE
public static final String FOLDER_TYPE
Box folder type.- 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.
-
-