public abstract class BoxAdapter extends Object
Modifier and Type | Field and Description |
---|---|
protected BoxItem |
boxItem |
protected Map<String,Object> |
boxProperties |
protected BoxService |
boxService |
protected DocumentModel |
doc |
Constructor and Description |
---|
BoxAdapter(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
BoxItem |
getBoxItem() |
DocumentModel |
getDoc() |
abstract BoxItem |
getMiniItem() |
protected List<BoxTypedObject> |
getParentsHierarchy(CoreSession session,
DocumentModel parentDoc) |
protected String[] |
getTags(CoreSession session) |
void |
save(CoreSession session)
Update the document (nx/box sides) thanks to a box item
|
void |
setBoxItem(BoxItem boxItem)
Update the box item properties
|
void |
setCreator(String value) |
void |
setDescription(String value) |
void |
setTitle(String value) |
protected final DocumentModel doc
protected final Map<String,Object> boxProperties
protected final BoxService boxService
public BoxAdapter(DocumentModel doc)
public BoxItem getBoxItem()
public abstract BoxItem getMiniItem()
public void setBoxItem(BoxItem boxItem)
boxItem
- containing values updatedpublic DocumentModel getDoc()
protected List<BoxTypedObject> getParentsHierarchy(CoreSession session, DocumentModel parentDoc)
protected String[] getTags(CoreSession session)
public void save(CoreSession session) throws ParseException, InvocationTargetException, IllegalAccessException, BoxJSONException
public void setDescription(String value)
public void setCreator(String value)
Copyright © 2015 Nuxeo SA. All rights reserved.