@Component @Singleton public class DefaultDocumentAccessBridge extends Object implements DocumentAccessBridge
Constructor and Description |
---|
DefaultDocumentAccessBridge() |
public DocumentReference getDocumentReference(EntityReference entityReference)
getDocumentReference
in interface DocumentAccessBridge
@Deprecated public DocumentModelBridge getDocument(String documentReference) throws Exception
getDocument
in interface DocumentAccessBridge
Exception
@Deprecated public DocumentModelBridge getDocument(DocumentReference documentReference) throws Exception
getDocument
in interface DocumentAccessBridge
Exception
public DocumentModelBridge getDocumentInstance(DocumentReference documentReference) throws Exception
getDocumentInstance
in interface DocumentAccessBridge
Exception
public DocumentModelBridge getDocumentInstance(EntityReference reference) throws Exception
getDocumentInstance
in interface DocumentAccessBridge
Exception
public DocumentModelBridge getTranslatedDocumentInstance(DocumentReference documentReference) throws Exception
getTranslatedDocumentInstance
in interface DocumentAccessBridge
Exception
public DocumentModelBridge getTranslatedDocumentInstance(EntityReference entityReference) throws Exception
getTranslatedDocumentInstance
in interface DocumentAccessBridge
Exception
public DocumentModelBridge getTranslatedDocumentInstance(DocumentModelBridge document) throws Exception
getTranslatedDocumentInstance
in interface DocumentAccessBridge
Exception
public DocumentReference getCurrentDocumentReference()
getCurrentDocumentReference
in interface DocumentAccessBridge
@Deprecated public String getDocumentContent(String documentReference) throws Exception
getDocumentContent
in interface DocumentAccessBridge
Exception
public String getDocumentContentForDefaultLanguage(DocumentReference documentReference) throws Exception
getDocumentContentForDefaultLanguage
in interface DocumentAccessBridge
Exception
@Deprecated public String getDocumentContentForDefaultLanguage(String documentReference) throws Exception
getDocumentContentForDefaultLanguage
in interface DocumentAccessBridge
Exception
public String getDocumentContent(DocumentReference documentReference, String language) throws Exception
getDocumentContent
in interface DocumentAccessBridge
Exception
@Deprecated public String getDocumentContent(String documentReference, String language) throws Exception
getDocumentContent
in interface DocumentAccessBridge
Exception
public boolean exists(DocumentReference documentReference)
exists
in interface DocumentAccessBridge
@Deprecated public boolean exists(String documentReference)
exists
in interface DocumentAccessBridge
public void setDocumentContent(DocumentReference documentReference, String content, String editComment, boolean isMinorEdit) throws Exception
setDocumentContent
in interface DocumentAccessBridge
Exception
@Deprecated public void setDocumentContent(String documentReference, String content, String editComment, boolean isMinorEdit) throws Exception
setDocumentContent
in interface DocumentAccessBridge
Exception
@Deprecated public String getDocumentSyntaxId(String documentReference) throws Exception
getDocumentSyntaxId
in interface DocumentAccessBridge
Exception
public void setDocumentSyntaxId(DocumentReference documentReference, String syntaxId) throws Exception
setDocumentSyntaxId
in interface DocumentAccessBridge
Exception
@Deprecated public void setDocumentSyntaxId(String documentReference, String syntaxId) throws Exception
setDocumentSyntaxId
in interface DocumentAccessBridge
Exception
public void setDocumentParentReference(DocumentReference documentReference, DocumentReference parentReference) throws Exception
setDocumentParentReference
in interface DocumentAccessBridge
Exception
public void setDocumentTitle(DocumentReference documentReference, String title) throws Exception
setDocumentTitle
in interface DocumentAccessBridge
Exception
public int getObjectNumber(DocumentReference documentReference, DocumentReference classReference, String propertyName, String valueToMatch)
getObjectNumber
in interface DocumentAccessBridge
public Object getProperty(ObjectPropertyReference objectPropertyReference)
getProperty
in interface DocumentAccessBridge
public Object getProperty(ObjectReference objectReference, String propertyName)
getProperty
in interface DocumentAccessBridge
public Object getProperty(String documentReference, String className, int objectNumber, String propertyName)
getProperty
in interface DocumentAccessBridge
@Deprecated public Object getProperty(String documentReference, String className, String propertyName)
getProperty
in interface DocumentAccessBridge
public Object getProperty(DocumentReference documentReference, DocumentReference classReference, String propertyName)
getProperty
in interface DocumentAccessBridge
public Object getProperty(DocumentReference documentReference, DocumentReference classReference, int objectNumber, String propertyName)
getProperty
in interface DocumentAccessBridge
public Object getProperty(String documentReference, String propertyName)
getProperty
in interface DocumentAccessBridge
public List<Object> getProperties(String documentReference, String className)
getProperties
in interface DocumentAccessBridge
public String getPropertyType(String className, String propertyName) throws Exception
getPropertyType
in interface DocumentAccessBridge
Exception
public boolean isPropertyCustomMapped(String className, String property) throws Exception
isPropertyCustomMapped
in interface DocumentAccessBridge
Exception
@Deprecated public void setProperty(String documentReference, String className, String propertyName, Object propertyValue) throws Exception
setProperty
in interface DocumentAccessBridge
Exception
public void setProperty(DocumentReference documentReference, DocumentReference classReference, String propertyName, Object propertyValue) throws Exception
setProperty
in interface DocumentAccessBridge
Exception
@Deprecated public byte[] getAttachmentContent(String documentReference, String attachmentFilename) throws Exception
getAttachmentContent
in interface DocumentAccessBridge
Exception
public InputStream getAttachmentContent(AttachmentReference attachmentReference) throws Exception
getAttachmentContent
in interface DocumentAccessBridge
Exception
public void setAttachmentContent(AttachmentReference attachmentReference, byte[] attachmentData) throws Exception
setAttachmentContent
in interface DocumentAccessBridge
Exception
@Deprecated public void setAttachmentContent(String documentReference, String attachmentFilename, byte[] attachmentData) throws Exception
setAttachmentContent
in interface DocumentAccessBridge
Exception
public List<AttachmentReference> getAttachmentReferences(DocumentReference documentReference) throws Exception
getAttachmentReferences
in interface DocumentAccessBridge
Exception
public String getAttachmentVersion(AttachmentReference attachmentReference) throws Exception
getAttachmentVersion
in interface DocumentAccessBridge
Exception
public String getDocumentURL(DocumentReference documentReference, String action, String queryString, String anchor)
getDocumentURL
in interface DocumentAccessBridge
public String getDocumentURL(DocumentReference documentReference, String action, String queryString, String anchor, boolean isFullURL)
getDocumentURL
in interface DocumentAccessBridge
public String getDocumentURL(EntityReference entityReference, String action, String queryString, String anchor)
getDocumentURL
in interface DocumentAccessBridge
public String getDocumentURL(EntityReference entityReference, String action, String queryString, String anchor, boolean isFullURL)
getDocumentURL
in interface DocumentAccessBridge
@Deprecated public String getURL(String documentReference, String action, String queryString, String anchor)
getURL
in interface DocumentAccessBridge
@Deprecated public String getAttachmentURL(String documentReference, String attachmentName)
getAttachmentURL
in interface DocumentAccessBridge
public String getAttachmentURL(AttachmentReference attachmentReference, boolean isFullURL)
getAttachmentURL
in interface DocumentAccessBridge
public String getAttachmentURL(AttachmentReference attachmentReference, String queryString, boolean isFullURL)
getAttachmentURL
in interface DocumentAccessBridge
@Deprecated public List<String> getAttachmentURLs(DocumentReference documentReference, boolean isFullURL) throws Exception
getAttachmentURLs
in interface DocumentAccessBridge
Exception
public boolean isDocumentViewable(DocumentReference documentReference)
isDocumentViewable
in interface DocumentAccessBridge
@Deprecated public boolean isDocumentViewable(String documentReference)
isDocumentViewable
in interface DocumentAccessBridge
@Deprecated public boolean isDocumentEditable(String documentReference)
isDocumentEditable
in interface DocumentAccessBridge
public boolean isDocumentEditable(DocumentReference documentReference)
isDocumentEditable
in interface DocumentAccessBridge
public boolean hasProgrammingRights()
hasProgrammingRights
in interface DocumentAccessBridge
@Deprecated public String getCurrentUser()
getCurrentUser
in interface DocumentAccessBridge
public DocumentReference getCurrentUserReference()
getCurrentUserReference
in interface DocumentAccessBridge
public boolean isAdvancedUser()
isAdvancedUser
in interface DocumentAccessBridge
public boolean isAdvancedUser(EntityReference userReference)
isAdvancedUser
in interface DocumentAccessBridge
public void setCurrentUser(String userName)
setCurrentUser
in interface DocumentAccessBridge
public String getDefaultEncoding()
getDefaultEncoding
in interface DocumentAccessBridge
public void popDocumentFromContext(Map<String,Object> backupObjects)
popDocumentFromContext
in interface DocumentAccessBridge
@Deprecated public void pushDocumentInContext(Map<String,Object> backupObjects, String documentReference) throws Exception
pushDocumentInContext
in interface DocumentAccessBridge
Exception
public void pushDocumentInContext(Map<String,Object> backupObjects, DocumentReference documentReference) throws Exception
pushDocumentInContext
in interface DocumentAccessBridge
Exception
public void pushDocumentInContext(Map<String,Object> backupObjects, DocumentModelBridge document) throws Exception
pushDocumentInContext
in interface DocumentAccessBridge
Exception
public String getCurrentWiki()
getCurrentWiki
in interface DocumentAccessBridge
public DocumentReference getCurrentAuthorReference()
getCurrentAuthorReference
in interface DocumentAccessBridge
Copyright © 2004–2022 XWiki. All rights reserved.