Modifier and Type | Method and Description |
---|---|
Attachment |
ExtendedContentId.getAttachment() |
Modifier and Type | Method and Description |
---|---|
protected Attachment |
AttachmentPropertyAccessor.load(Long id) |
Modifier and Type | Method and Description |
---|---|
protected void |
AttachmentPropertyAccessor.assertReadAccess(Attachment attachment) |
protected void |
AttachmentPropertyAccessor.assertWriteAccess(Attachment attachment) |
protected Long |
AttachmentPropertyAccessor.getObjectId(Attachment attachment) |
protected AttachmentProperty |
AttachmentPropertyAccessor.handleCreateNewProperty(Attachment attachment) |
Modifier and Type | Method and Description |
---|---|
static String |
AttachmentHelper.determineAbsoluteAttachmentUrl(Attachment resource)
Determine the absolute URL Path for a resource
|
static String |
AttachmentHelper.determineAbsoluteAttachmentUrl(Attachment resource,
boolean isSecure)
Determine the absolute URL Path for a resource
|
static String |
AttachmentHelper.determineKnownMimeType(Attachment attachment)
Match the contentype of the attachment to the known mime types
|
static String |
AttachmentHelper.determineMimeTypeIconName(Attachment attachment)
Well its not frontend here, but we do this anyway in here
|
static String |
AttachmentHelper.determineRelativeAttachmentUrl(Attachment resource)
Determine the resource url for download/access for the given item
|
Modifier and Type | Method and Description |
---|---|
static Long[] |
AttachmentHelper.copyAttachments(Collection<Attachment> attachments)
Copies all attachments of a note and returns an array containing the attachment ids of the
copies.
|
Modifier and Type | Method and Description |
---|---|
protected Attachment |
ResourceStoringManagementImpl.handleStoreAttachment(AttachmentTO attachmentTO) |
protected abstract Attachment |
ResourceStoringManagementBase.handleStoreAttachment(AttachmentTO attachment)
Performs the core logic for
ResourceStoringManagementBase.storeAttachment(com.communote.server.core.vo.content.AttachmentTO) |
protected Attachment |
ResourceStoringManagementImpl.handleStoreCopyOfAttachment(Attachment contentResource) |
protected abstract Attachment |
ResourceStoringManagementBase.handleStoreCopyOfAttachment(Attachment contentResource)
Performs the core logic for
ResourceStoringManagementBase.storeCopyOfAttachment(Attachment) |
Attachment |
ResourceStoringManagementBase.storeAttachment(AttachmentTO attachment) |
Attachment |
ResourceStoringManagement.storeAttachment(AttachmentTO attachment)
Store the attachment in the repository and return the created entity.
|
Attachment |
ResourceStoringManagementBase.storeCopyOfAttachment(Attachment contentResource) |
Attachment |
ResourceStoringManagement.storeCopyOfAttachment(Attachment contentResource)
Create a copy of a stored attachment.
|
Modifier and Type | Method and Description |
---|---|
protected Attachment |
ResourceStoringManagementImpl.handleStoreCopyOfAttachment(Attachment contentResource) |
protected abstract Attachment |
ResourceStoringManagementBase.handleStoreCopyOfAttachment(Attachment contentResource)
Performs the core logic for
ResourceStoringManagementBase.storeCopyOfAttachment(Attachment) |
Attachment |
ResourceStoringManagementBase.storeCopyOfAttachment(Attachment contentResource) |
Attachment |
ResourceStoringManagement.storeCopyOfAttachment(Attachment contentResource)
Create a copy of a stored attachment.
|
Modifier and Type | Method and Description |
---|---|
<T> Collection<T> |
ResourceStoringManagementBase.getAttachmentsOfNote(Long noteId,
Collection<Long> attachmentIdsToFilter,
Converter<Attachment,T> converter) |
<T> Collection<T> |
ResourceStoringManagement.getAttachmentsOfNote(Long noteId,
Collection<Long> attachmentIdsToFilter,
Converter<Attachment,T> converter)
Return the attachments of a note converted with the help of the provided converter
|
protected <T> Collection<T> |
ResourceStoringManagementImpl.handleGetAttachmentsOfNote(Long noteId,
Collection<Long> attachmentIdsToFilter,
Converter<Attachment,T> converter) |
protected abstract <T> Collection<T> |
ResourceStoringManagementBase.handleGetAttachmentsOfNote(Long noteId,
Collection<Long> attachmentIdsToFilter,
Converter<Attachment,T> converter)
Return the attachments of a note converted with the help of the provided converter
|
Modifier and Type | Method and Description |
---|---|
boolean |
AttachmentToAttachmentDataQueryResultConverter.convert(Attachment source,
AttachmentData target) |
Modifier and Type | Method and Description |
---|---|
PageableList<AttachmentData> |
AttachmentToAttachmentDataQueryResultConverter.convert(PageableList<Attachment> queryResult) |
Modifier and Type | Method and Description |
---|---|
static Attachment |
Attachment.Factory.newInstance()
Constructs a new instance of
Attachment . |
static Attachment |
Attachment.Factory.newInstance(String contentIdentifier,
String repositoryIdentifier,
String name,
AttachmentStatus status,
Timestamp uploadDate)
Constructs a new instance of
Attachment , taking all required and/or read-only
properties as arguments. |
static Attachment |
Attachment.Factory.newInstance(String contentIdentifier,
String repositoryIdentifier,
String name,
String contentType,
Long size,
AttachmentStatus status,
Timestamp uploadDate,
Note note,
GlobalId globalId,
User uploader,
Set<AttachmentProperty> properties)
Constructs a new instance of
Attachment , taking all possible properties (except
the identifier(s))as arguments. |
Modifier and Type | Method and Description |
---|---|
Set<Attachment> |
Note.getAttachments() |
Modifier and Type | Method and Description |
---|---|
static Note |
Note.Factory.newInstance(Timestamp creationDate,
Timestamp lastModificationDate,
Timestamp lastDiscussionNoteCreationDate,
Timestamp crawlLastModificationDate,
NoteCreationSource creationSource,
boolean direct,
NoteStatus status,
Long version,
String discussionPath,
Long discussionId,
boolean mentionTopicReaders,
boolean mentionTopicAuthors,
boolean mentionTopicManagers,
boolean mentionDiscussionAuthors,
GlobalId globalId,
Blog blog,
Set<User> favoriteUsers,
Set<Note> children,
Note parent,
Set<Note> versionOf,
Note origin,
Set<Blog> crosspostBlogs,
Set<GlobalId> followableItems,
Set<NoteProperty> properties,
Set<User> directUsers,
User user,
Set<Tag> tags,
Set<User> usersToBeNotified,
Set<Attachment> attachments,
Content content)
Constructs a new instance of
Note , taking all possible properties (except the
identifier(s))as arguments. |
void |
Note.setAttachments(Set<Attachment> attachments) |
Modifier and Type | Method and Description |
---|---|
GlobalId |
GlobalIdDaoBase.createGlobalId(Attachment attachment) |
GlobalId |
GlobalIdDao.createGlobalId(Attachment attachment) |
protected GlobalId |
GlobalIdDaoImpl.handleCreateGlobalId(Attachment attachment)
Create a global id for the attachment
|
protected abstract GlobalId |
GlobalIdDaoBase.handleCreateGlobalId(Attachment attachment)
Performs the core logic for
GlobalIdDaoBase.createGlobalId(com.communote.server.model.attachment.Attachment) |
Modifier and Type | Method and Description |
---|---|
Attachment |
AttachmentDaoBase.create(Attachment attachment) |
Attachment |
AttachmentDao.create(Attachment attachment)
Creates an instance of Attachment and adds it to the persistent store.
|
Attachment |
AttachmentDaoBase.find(String contentIdentifier,
String repositoryIdentifier) |
Attachment |
AttachmentDao.find(String contentIdentifier,
String repositoryIdentifier)
Find a resource by the given identifiers
|
Attachment |
AttachmentDaoBase.findContentTypeNull() |
Attachment |
AttachmentDao.findContentTypeNull()
Find an attachments with an empty content type to be migrated
|
protected Attachment |
AttachmentDaoImpl.handleFindContentTypeNull()
Performs the core logic for
AttachmentDaoBase.findContentTypeNull() |
protected abstract Attachment |
AttachmentDaoBase.handleFindContentTypeNull()
Performs the core logic for
AttachmentDaoBase.findContentTypeNull() |
Attachment |
AttachmentDaoBase.load(Long id) |
Attachment |
AttachmentDao.load(Long id)
Loads an instance of Attachment from the persistent store.
|
Modifier and Type | Method and Description |
---|---|
Collection<Attachment> |
AttachmentDaoBase.create(Collection<Attachment> entities) |
Collection<Attachment> |
AttachmentDao.create(Collection<Attachment> entities)
Creates a new instance of Attachment and adds from the passed in
entities
collection |
Collection<Attachment> |
AttachmentDaoBase.create(int transform,
Collection<Attachment> entities) |
Collection<Attachment> |
AttachmentDaoBase.loadAll() |
Collection<Attachment> |
AttachmentDao.loadAll()
Loads all entities of type
Attachment . |
Modifier and Type | Method and Description |
---|---|
Attachment |
AttachmentDaoBase.create(Attachment attachment) |
Attachment |
AttachmentDao.create(Attachment attachment)
Creates an instance of Attachment and adds it to the persistent store.
|
Object |
AttachmentDaoImpl.create(int transform,
Attachment attachment)
Does the same thing as
AttachmentDao.create(Attachment) with an additional flag called
transform . |
Object |
AttachmentDaoBase.create(int transform,
Attachment attachment) |
Object |
AttachmentDao.create(int transform,
Attachment attachment)
Does the same thing as
AttachmentDao.create(Attachment) with an additional flag called
transform . |
void |
AttachmentDaoBase.evict(Attachment entity)
Evicts (removes) the entity from the hibernate cache
|
void |
AttachmentDao.evict(Attachment entity)
Evicts (removes) the entity from the hibernate cache
|
void |
AttachmentDaoBase.remove(Attachment attachment) |
void |
AttachmentDao.remove(Attachment attachment)
Removes the instance of Attachment from the persistent store.
|
protected Object |
AttachmentDaoBase.transformEntity(int transform,
Attachment entity)
Allows transformation of entities into value objects (or something else for that matter),
when the
transform flag is set to one of the constants defined in
com.communote.server.persistence.resource.AttachmentDao , please note that the
AttachmentDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned. |
void |
AttachmentDaoBase.update(Attachment attachment) |
void |
AttachmentDao.update(Attachment attachment)
Updates the
attachment instance in the persistent store. |
Modifier and Type | Method and Description |
---|---|
Collection<Attachment> |
AttachmentDaoBase.create(Collection<Attachment> entities) |
Collection<Attachment> |
AttachmentDao.create(Collection<Attachment> entities)
Creates a new instance of Attachment and adds from the passed in
entities
collection |
Collection<Attachment> |
AttachmentDaoBase.create(int transform,
Collection<Attachment> entities) |
Collection<?> |
AttachmentDao.create(int transform,
Collection<Attachment> entities)
Does the same thing as
AttachmentDao.create(Attachment) with an additional flag called
transform . |
void |
AttachmentDaoBase.remove(Collection<Attachment> attachments) |
void |
AttachmentDao.remove(Collection<Attachment> entities)
Removes all entities in the given
entities |
void |
AttachmentDaoBase.update(Collection<Attachment> entities) |
void |
AttachmentDao.update(Collection<Attachment> entities)
Updates all instances in the
entities collection in the persistent store. |
Modifier and Type | Method and Description |
---|---|
String |
UrlTool.renderAttachmentUrl(Attachment attachment)
Determine the relative attachment URL path for a resource
|
String |
UrlTool.renderAttachmentUrl(Attachment attachment,
boolean useAbsoluteUrl,
boolean staticResource)
Determine the resource URL for download/access for the given item
|
Modifier and Type | Method and Description |
---|---|
static org.codehaus.jackson.node.ObjectNode |
CreateBlogPostFeHelper.createAttachmentJSONObject(Attachment attachment)
Creates a JSON object that describes an attachment.
|
Copyright © 2019 Communote team. All rights reserved.