Modifier and Type | Method and Description |
---|---|
DocumentModel |
DirectoryBasedEditor.getCreationEntry() |
Modifier and Type | Method and Description |
---|---|
static void |
DocumentHelper.addBlob(Property p,
Blob blob)
Given a document property, updates its value with the given blob.
|
void |
DataModelProperties.addDataModel(DataModel dm) |
static void |
DocumentHelper.setProperties(CoreSession session,
DocumentModel doc,
Properties properties) |
protected static void |
JSONPropertyWriter.writeBlobPropertyValue(org.codehaus.jackson.JsonGenerator jg,
Property prop,
String filesBaseUrl) |
protected static void |
JSONPropertyWriter.writeListPropertyValue(org.codehaus.jackson.JsonGenerator jg,
Property prop,
DateTimeFormat dateTimeFormat,
String filesBaseUrl) |
protected static void |
JSONPropertyWriter.writeMapPropertyValue(org.codehaus.jackson.JsonGenerator jg,
ComplexProperty prop,
DateTimeFormat dateTimeFormat,
String filesBaseUrl) |
static void |
JSONPropertyWriter.writePropertyValue(org.codehaus.jackson.JsonGenerator jg,
Property prop,
DateTimeFormat dateTimeFormat,
String filesBaseUrl)
Converts the value of the given core property to JSON.
|
protected static void |
JSONPropertyWriter.writeScalarPropertyValue(org.codehaus.jackson.JsonGenerator jg,
Property prop,
DateTimeFormat dateTimeFormat) |
Constructor and Description |
---|
DataModelProperties(DataModel dm) |
DataModelProperties(DataModel dm,
boolean onlyDirtyProperties) |
DataModelProperties(List<DataModel> dms) |
DataModelProperties(List<DataModel> dms,
boolean onlyDirtyProperties) |
Modifier and Type | Method and Description |
---|---|
static void |
JsonDocumentWriter.writePropertyValue(org.codehaus.jackson.JsonGenerator jg,
Property prop,
String filesBaseUrl)
Deprecated.
Converts the value of the given core property to JSON format.
|
Modifier and Type | Method and Description |
---|---|
String |
CollectionActionsBean.getSelectedCollectionDescription() |
Modifier and Type | Method and Description |
---|---|
Object |
DataModel.getData(String key)
Gets the named field value.
|
Map<String,Object> |
DataModel.getMap()
Gets all the fields set in this data model.
|
Property |
DocumentModel.getProperty(String xpath)
Gets a property given a xpath.
|
Serializable |
DocumentModel.getPropertyValue(String xpath)
Gets a property value given a xpath.
|
Object |
DataModel.getValue(String path)
Gets a value given its path.
|
void |
DataModel.setData(String key,
Object value)
Sets the name field.
|
void |
DataModel.setMap(Map<String,Object> data)
Sets several field at once.
|
void |
DocumentModel.setPropertyValue(String xpath,
Serializable value)
Sets a property value given a xpath.
|
Object |
DataModel.setValue(String path,
Object value)
Sets a value to a property given its path.
|
Modifier and Type | Method and Description |
---|---|
Blob |
BlobHolderAdapterService.getExternalBlobForUri(String uri)
Returns an external blob from given uri.
|
Blob |
BlobHolderAdapterComponent.getExternalBlobForUri(String uri) |
Modifier and Type | Method and Description |
---|---|
Blob |
FileSystemExternalBlobAdapter.getBlob(String uri) |
Blob |
ExternalBlobAdapter.getBlob(String uri)
Retrieves the blob for given uri.
|
String |
FileSystemExternalBlobAdapter.getFileAbsolutePath(String localPath) |
String |
AbstractExternalBlobAdapter.getLocalName(String uri) |
Modifier and Type | Method and Description |
---|---|
Object |
SimpleDocumentModel.SimpleDataModel.getData(String key)
Deprecated.
|
Object |
DataModelImpl.getData(String key) |
Map<String,Object> |
SimpleDocumentModel.SimpleDataModel.getMap()
Deprecated.
|
Map<String,Object> |
DataModelImpl.getMap() |
Property |
SimpleDocumentModel.getProperty(String xpath) |
Serializable |
SimpleDocumentModel.getPropertyValue(String xpath) |
Serializable |
DocumentModelImpl.getPropertyValue(String xpath) |
Object |
SimpleDocumentModel.SimpleDataModel.getValue(String path)
Deprecated.
|
Object |
DataModelImpl.getValue(String path) |
void |
SimpleDocumentModel.SimpleDataModel.setData(String key,
Object value)
Deprecated.
|
void |
DataModelImpl.setData(String key,
Object value) |
void |
SimpleDocumentModel.SimpleDataModel.setMap(Map<String,Object> data)
Deprecated.
|
void |
DataModelImpl.setMap(Map<String,Object> data) |
void |
DocumentModelImpl.setPropertyValue(String xpath,
Serializable value) |
Object |
SimpleDocumentModel.SimpleDataModel.setValue(String path,
Object value)
Deprecated.
|
Object |
DataModelImpl.setValue(String path,
Object value) |
Modifier and Type | Class and Description |
---|---|
class |
InvalidPropertyValueException
Exception thrown when setting an illegal property value.
|
class |
PropertyConversionException
Exception thrown when trying to convert a property value to an incompatible type during read or write.
|
class |
PropertyNotFoundException
Exception indicating a property not found.
|
class |
ReadOnlyPropertyException
Exception thrown when attempting to write to a read-only property.
|
Modifier and Type | Method and Description |
---|---|
void |
Property.accept(PropertyVisitor visitor,
Object arg)
Method that implement the visitor pattern.
|
Property |
Property.addEmpty()
Creates an empty child property and adds it as a property to the list container.
|
Property |
Property.addValue(int index,
Object value)
Inserts at the given position a new value to the list.
|
Property |
Property.addValue(Object value)
Appends a new value to the list.
|
PropertyDiff |
DocumentPart.exportDiff() |
Serializable |
Property.getValue()
Gets the property normalized value.
|
<T> T |
Property.getValue(Class<T> type)
Gets the property value as the given type.
|
<T> T |
Property.getValue(Class<T> type,
String path)
Gets the value of the property resolved using the given path.
|
Serializable |
Property.getValue(String path)
Gets the value of the property resolved using the given path.
|
Serializable |
Property.getValueForWrite()
Gets the property normalized value for write.
|
void |
DocumentPart.importDiff(PropertyDiff diff) |
void |
Property.init(Serializable value)
Initializes the property with the given normalized value.
|
boolean |
Property.isSameAs(Property property)
Compare the two properties by content.
|
Serializable |
Property.remove()
Removes this property from the tree.
|
Map<String,Serializable> |
ValueExporter.run(DocumentPart dp) |
void |
Property.setValue(int index,
Object value)
Sets a child property value given its index.
|
void |
Property.setValue(Object value)
Sets this property value.
|
void |
Property.setValue(String path,
Object value)
Sets the value of the property resolved using the given path.
|
Object |
ValueExporter.visit(ListProperty property,
Object arg) |
Object |
PropertyVisitor.visit(ListProperty property,
Object arg) |
Object |
ValueExporter.visit(MapProperty property,
Object arg) |
Object |
PropertyVisitor.visit(MapProperty property,
Object arg) |
Object |
ValueExporter.visit(ScalarProperty property,
Object arg) |
Object |
PropertyVisitor.visit(ScalarProperty property,
Object arg) |
Modifier and Type | Method and Description |
---|---|
void |
ScalarProperty.accept(PropertyVisitor visitor,
Object arg) |
void |
MapProperty.accept(PropertyVisitor visitor,
Object arg) |
void |
ListProperty.accept(PropertyVisitor visitor,
Object arg) |
void |
DocumentPartImpl.accept(PropertyVisitor visitor,
Object arg) |
Property |
ListProperty.addValue(int index,
Object value) |
Property |
ListProperty.addValue(Object value) |
void |
ListProperty.applyListDiff(ListDiff ld)
Supports ListDiff for compatibility.
|
Serializable |
AbstractProperty.getValue() |
<T> T |
AbstractProperty.getValue(Class<T> type) |
<T> T |
AbstractProperty.getValue(Class<T> type,
String path) |
Serializable |
AbstractProperty.getValue(String path) |
Serializable |
ListProperty.getValueForWrite() |
Serializable |
ComplexProperty.getValueForWrite() |
Serializable |
AbstractProperty.getValueForWrite() |
void |
ListProperty.init(Serializable value) |
void |
ComplexProperty.init(Serializable value) |
void |
AbstractProperty.init(Serializable value) |
Serializable |
ScalarProperty.internalGetValue() |
Serializable |
ListProperty.internalGetValue() |
Serializable |
ComplexProperty.internalGetValue() |
abstract Serializable |
AbstractProperty.internalGetValue() |
void |
ScalarProperty.internalSetValue(Serializable value) |
void |
MapProperty.internalSetValue(Serializable value) |
void |
ListProperty.internalSetValue(Serializable value) |
void |
DocumentPartImpl.internalSetValue(Serializable value) |
abstract void |
AbstractProperty.internalSetValue(Serializable value)
Sets the given normalized value.
|
boolean |
ScalarProperty.isSameAs(Property property) |
boolean |
ListProperty.isSameAs(Property property) |
boolean |
ComplexProperty.isSameAs(Property property)
Should be used by container properties.
|
Serializable |
AbstractProperty.remove() |
void |
AbstractProperty.setValue(int index,
Object value) |
void |
ListProperty.setValue(Object value) |
void |
ComplexProperty.setValue(Object value) |
void |
ArrayProperty.setValue(Object value) |
void |
AbstractProperty.setValue(Object value) |
void |
AbstractProperty.setValue(String path,
Object value) |
void |
ComplexProperty.visitChildren(PropertyVisitor visitor,
Object arg) |
Modifier and Type | Method and Description |
---|---|
Map<String,Serializable> |
ExternalBlobProperty.getMapFromBlobWithUri(Blob blob) |
protected Object |
BlobProperty.getMemberValue(Object object,
String name) |
<T> T |
ExternalBlobProperty.getValue(Class<T> type) |
Serializable |
ExternalBlobProperty.getValueForWrite() |
Serializable |
BlobProperty.getValueForWrite() |
void |
ExternalBlobProperty.init(Serializable value) |
void |
BlobProperty.init(Serializable value) |
Serializable |
ExternalBlobProperty.internalGetValue() |
Serializable |
BlobProperty.internalGetValue() |
Serializable |
BlobProperty.ScalarMemberProperty.internalGetValue() |
void |
BlobProperty.internalSetValue(Serializable value) |
void |
BlobProperty.ScalarMemberProperty.internalSetValue(Serializable value) |
boolean |
BlobProperty.isSameAs(Property property) |
protected void |
BlobProperty.setMap(Object object,
Map<String,Object> value) |
protected void |
BlobProperty.setMemberValue(Object object,
String name,
Object value) |
void |
ExternalBlobProperty.setValue(Object value)
Overridden to be able to set a blob from a given map.
|
void |
BlobProperty.setValue(Object value) |
Modifier and Type | Method and Description |
---|---|
Property |
ShallowDocumentModel.getProperty(String xpath) |
Serializable |
ShallowDocumentModel.getPropertyValue(String xpath) |
Modifier and Type | Method and Description |
---|---|
Object |
Document.getValue(String xpath)
Gets a property value.
|
void |
Document.readDocumentPart(DocumentPart dp)
Loads a
DocumentPart from storage. |
Map<String,Serializable> |
Document.readPrefetch(ComplexType complexType,
Set<String> xpaths)
Reads a set of prefetched fields.
|
void |
Document.setValue(String xpath,
Object value)
Sets a property value.
|
void |
Document.visitBlobs(Consumer<Document.BlobAccessor> blobVisitor)
Visits all the blobs of this document and calls the passed blob visitor on each one.
|
boolean |
Document.writeDocumentPart(DocumentPart dp,
Document.WriteContext writeContext)
Writes a
DocumentPart to storage. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
BaseDocument.checkReadOnlyIgnoredWrite(Property property,
T state)
Checks for ignored writes.
|
Object[] |
StateAccessor.getArray(String name)
Gets an array value.
|
Blob |
BaseDocument.StateBlobAccessor.getBlob() |
protected BlobManager.BlobInfo |
BaseDocument.getBlobInfo(T state) |
protected abstract T |
BaseDocument.getChild(T state,
String name,
Type type)
Gets a child state.
|
protected abstract List<T> |
BaseDocument.getChildAsList(T state,
String name)
Gets a child state which is a list.
|
protected abstract T |
BaseDocument.getChildForWrite(T state,
String name,
Type type)
Gets a child state into which we will want to write data.
|
Object |
StateAccessor.getSingle(String name)
Gets a single value.
|
protected Blob |
BaseDocument.getValueBlob(T state) |
protected Object |
BaseDocument.getValueComplex(T state,
ComplexType complexType) |
protected Object |
BaseDocument.getValueField(T state,
Field field) |
protected Object |
BaseDocument.getValueObject(T state,
String xpath)
Gets a value (may be complex/list) from the document at the given xpath.
|
protected void |
BaseDocument.readComplexProperty(T state,
ComplexProperty complexProperty)
Reads state into a complex property.
|
protected Map<String,Serializable> |
BaseDocument.readPrefetch(T state,
ComplexType complexType,
Set<String> xpaths)
Reads prefetched values.
|
protected void |
BaseDocument.readPrefetch(T state,
ComplexType complexType,
String xpathGeneric,
String xpath,
Set<String> prefixes,
Map<String,Serializable> prefetch) |
void |
StateAccessor.setArray(String name,
Object[] value)
Sets an array value.
|
void |
BaseDocument.StateBlobAccessor.setBlob(Blob blob) |
protected void |
BaseDocument.setBlobInfo(T state,
BlobManager.BlobInfo blobInfo) |
void |
StateAccessor.setSingle(String name,
Object value)
Sets a single value.
|
protected void |
BaseDocument.setValueBlob(T state,
Blob blob) |
protected void |
BaseDocument.setValueComplex(T state,
Field field,
Object value) |
protected void |
BaseDocument.setValueField(T state,
Field field,
Object value) |
protected void |
BaseDocument.setValueObject(T state,
String xpath,
Object value)
Sets a value (may be complex/list) into the document at the given xpath.
|
protected abstract void |
BaseDocument.updateList(T state,
String name,
List<Object> values,
Field field)
Update a list.
|
protected abstract List<T> |
BaseDocument.updateList(T state,
String name,
Property property)
Update a list.
|
protected void |
BaseDocument.visitBlobs(T state,
Consumer<Document.BlobAccessor> blobVisitor,
Runnable markDirty)
Visits all the blobs of this document and calls the passed blob visitor on each one.
|
void |
BaseDocument.Visit.visitBlobsComplex(T state,
ComplexType complexType) |
protected void |
BaseDocument.Visit.visitBlobsField(T state,
Field field) |
protected boolean |
BaseDocument.writeComplexProperty(T state,
ComplexProperty complexProperty,
Document.WriteContext writeContext)
Writes state from a complex property.
|
protected boolean |
BaseDocument.writeComplexProperty(T state,
ComplexProperty complexProperty,
String xpath,
Document.WriteContext wc)
Writes state from a complex property.
|
Modifier and Type | Method and Description |
---|---|
protected State |
DBSDocument.getChildForWrite(State state,
String name,
Type type) |
protected DBSDocumentState |
DBSDocument.getStateMaybeProxyTarget(Type type)
Checks if the given schema should be resolved on the proxy or the target.
|
Object |
DBSDocument.getValue(String xpath) |
void |
DBSDocument.readDocumentPart(DocumentPart dp) |
Map<String,Serializable> |
DBSDocument.readPrefetch(ComplexType complexType,
Set<String> xpaths) |
void |
DBSDocument.setValue(String xpath,
Object value) |
protected List<State> |
DBSDocument.updateList(State state,
String name,
Property property) |
void |
DBSDocument.visitBlobs(Consumer<Document.BlobAccessor> blobVisitor) |
boolean |
DBSDocument.writeDocumentPart(DocumentPart dp,
Document.WriteContext writeContext) |
Modifier and Type | Method and Description |
---|---|
Object[] |
Node.getArray(String name) |
Object |
Node.getSingle(String name) |
void |
Node.setArray(String name,
Object[] value) |
void |
Node.setSingle(String name,
Object value) |
Modifier and Type | Method and Description |
---|---|
protected Node |
SQLDocumentLive.getChild(Node node,
String name,
Type type) |
protected List<Node> |
SQLDocumentLive.getChildAsList(Node node,
String name) |
protected Node |
SQLDocumentLive.getChildForWrite(Node node,
String name,
Type type) |
Object |
SQLDocumentProxy.getValue(String xpath) |
Object |
SQLDocumentLive.getValue(String xpath) |
void |
SQLDocumentProxy.readDocumentPart(DocumentPart dp) |
void |
SQLDocumentLive.readDocumentPart(DocumentPart dp)
Reads into the
DocumentPart the values from this SQLDocument . |
Map<String,Serializable> |
SQLDocumentProxy.readPrefetch(ComplexType complexType,
Set<String> xpaths) |
Map<String,Serializable> |
SQLDocumentLive.readPrefetch(ComplexType complexType,
Set<String> xpaths) |
void |
SQLDocumentProxy.setValue(String xpath,
Object value) |
void |
SQLDocumentLive.setValue(String xpath,
Object value) |
protected void |
SQLDocumentLive.updateList(Node node,
String name,
List<Object> values,
Field field) |
protected List<Node> |
SQLDocumentLive.updateList(Node node,
String name,
Property property) |
void |
SQLDocumentProxy.visitBlobs(Consumer<Document.BlobAccessor> blobVisitor) |
void |
SQLDocumentLive.visitBlobs(Consumer<Document.BlobAccessor> blobVisitor) |
boolean |
SQLDocumentProxy.writeDocumentPart(DocumentPart dp,
Document.WriteContext writeContext) |
boolean |
SQLDocumentLive.writeDocumentPart(DocumentPart dp,
Document.WriteContext writeContext) |
Modifier and Type | Method and Description |
---|---|
static DocumentModel |
BaseSession.createEntryModel(String sessionId,
String schema,
String id,
Map<String,Object> values)
Returns a bare document model suitable for directory implementations.
|
static DocumentModel |
BaseSession.createEntryModel(String sessionId,
String schema,
String id,
Map<String,Object> values,
boolean readOnly)
Returns a bare document model suitable for directory implementations.
|
Modifier and Type | Method and Description |
---|---|
Object |
CommentAdapter.doDeleteComment(String commentId) |
Object |
CommentAdapter.doGetReplyForm(String commentIdParent) |
Object |
CommentAdapter.doPost(String newTextComment) |
Object |
CommentAdapter.doPostReplyForm(String newTextComment,
String commentIdParent) |
String |
PreviewAdapter.getPreviewContent() |
Modifier and Type | Method and Description |
---|---|
void |
CategorizerDescriptor.processDocument(DocumentModel doc,
String textContent) |
Modifier and Type | Method and Description |
---|---|
Object |
DocumentModelToJSON.visit(ListProperty property,
Object arg) |
Object |
DocumentModelToJSON.visit(MapProperty property,
Object arg) |
Object |
DocumentModelToJSON.visit(ScalarProperty property,
Object arg) |
Modifier and Type | Method and Description |
---|---|
void |
MimetypeIconUpdater.updateFilename(DocumentModel doc)
Backward compatibility for external filename field: if edited, it might affect the main blob mimetype
|
Modifier and Type | Method and Description |
---|---|
protected DocumentModel |
OAuthServiceProviderRegistryImpl.getBestEntry(DocumentModelList entries,
String gadgetUri,
String serviceName) |
Modifier and Type | Method and Description |
---|---|
Blob |
PictureResourceAdapter.getPictureFromTitle(String title) |
Blob |
NoPictureAdapter.getPictureFromTitle(String title) |
Blob |
DefaultPictureAdapter.getPictureFromTitle(String title) |
Modifier and Type | Method and Description |
---|---|
protected void |
DocumentImageResource.compute() |
Modifier and Type | Method and Description |
---|---|
Object |
DocumentView.get(DocumentModel doc,
String name) |
Object |
DefaultDocumentView.get(DocumentModel doc,
String name) |
Modifier and Type | Method and Description |
---|---|
protected String |
GetTaskNamesOperation.getWorkflowTranslatedTitle(DocumentModel taskDoc,
Locale locale) |
Modifier and Type | Method and Description |
---|---|
protected String |
Select2ActionsBean.getParentAbsoluteLabel(String entryId,
String keySeparator,
Session session,
QName labelFieldName,
boolean localize,
boolean dbl10n) |
Modifier and Type | Method and Description |
---|---|
protected void |
UploadFileRestlet.saveFileToDocument(String filename,
DocumentModel dm,
String blobPropertyName,
String filenamePropertyName,
InputStream is)
Save the file into the document.
|
Modifier and Type | Method and Description |
---|---|
static void |
VideoHelper.updateStoryboard(DocumentModel docModel,
Blob video)
Update the JPEG story board and duration in seconds of a Video document from the video blob content.
|
Modifier and Type | Method and Description |
---|---|
List<StoryboardItem> |
StoryboardActions.getItems(DocumentModel doc) |
String |
StoryboardActions.getStoryboardItemsAsJsonSettings(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
protected static void |
NuxeoPrincipalReader.readProperties(org.codehaus.jackson.JsonParser jp,
DocumentModel doc,
String schemaName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
TokenAuthenticationActionsBean.deleteAllTokenBindings() |
Modifier and Type | Method and Description |
---|---|
protected void |
ResizeAvatarPictureListener.resizeAvatar(DocumentModel doc,
Blob avatarImage) |
Modifier and Type | Method and Description |
---|---|
void |
FormData.fillDocumentFromForm(DocumentModel doc) |
void |
FormData.fillDocumentFromMultiPartForm(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
String |
TemplateSourceDocumentAdapterImpl.getParamsAsString() |
Modifier and Type | Method and Description |
---|---|
List<TemplateInput> |
TemplateSourceDocument.getParams()
Retrieve the parameters associated to the Template file
|
String |
TemplateSourceDocument.getParamsAsString()
Return the String representation of the parameters of the template
|
Blob |
TemplateSourceDocument.getTemplateBlob()
Retrieve the Blob holding the template file
|
DocumentModel |
TemplateBasedDocument.setTemplate(DocumentModel template,
boolean save)
Associate the document to a Template.
|
Copyright © 2015 Nuxeo SA. All rights reserved.