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