public class BoxServiceImpl extends Object implements BoxService
Modifier and Type | Field and Description |
---|---|
protected com.google.common.collect.BiMap<String,String> |
nxBoxRole
The mapping between Nuxeo ACLs and Box Collaboration
|
Constructor and Description |
---|
BoxServiceImpl() |
public BoxServiceImpl()
public com.google.common.collect.BiMap<String,String> getNxBoxRole()
getNxBoxRole
in interface BoxService
public BoxCollection searchBox(String term, CoreSession session, String limit, String offset)
searchBox
in interface BoxService
public List<BoxTypedObject> getBoxDocumentCollection(DocumentModelList documentModels, String fields)
getBoxDocumentCollection
in interface BoxService
public BoxCollaboration getBoxCollaboration(BoxFolderAdapter boxFolderAdapter, ACE ace, String collaborationId)
getBoxCollaboration
in interface BoxService
boxFolderAdapter
- the related box folderace
- the specific ACE for this collaborationpublic String toJSONString(BoxObject boxObject) throws BoxJSONException
toJSONString
in interface BoxService
BoxJSONException
public String getBoxId(DocumentModel doc)
getBoxId
in interface BoxService
public String getBoxSequenceId(DocumentModel doc)
getBoxSequenceId
in interface BoxService
public String getBoxEtag(DocumentModel doc)
getBoxEtag
in interface BoxService
public String getBoxName(DocumentModel doc)
getBoxName
in interface BoxService
public BoxUser fillUser(NuxeoPrincipal creator)
fillUser
in interface BoxService
public BoxGroup fillGroup(NuxeoGroup group)
fillGroup
in interface BoxService
public BoxFolder getBoxFolder(String jsonBoxFolder) throws BoxJSONException
getBoxFolder
in interface BoxService
BoxJSONException
public BoxFile getBoxFile(String jsonBoxFile) throws BoxJSONException
getBoxFile
in interface BoxService
BoxJSONException
public BoxComment getBoxComment(String jsonBoxComment) throws BoxJSONException
getBoxComment
in interface BoxService
BoxJSONException
public BoxCollaboration getBoxCollaboration(String jsonBoxCollaboration) throws BoxJSONException
getBoxCollaboration
in interface BoxService
BoxJSONException
public String getJSONFromBox(BoxTypedObject boxTypedObject) throws BoxJSONException
getJSONFromBox
in interface BoxService
BoxJSONException
public String getJSONBoxException(Exception e, int status)
getJSONBoxException
in interface BoxService
public String[] getCollaborationArrayIds(String collaborationId)
getCollaborationArrayIds
in interface BoxService
public String computeCollaborationId(String folderId, String collaborationId)
Copyright © 2016 Nuxeo SA. All rights reserved.