Package org.exoplatform.cs.service
Class TicketAttachmentServiceImpl
- java.lang.Object
-
- org.exoplatform.cs.service.TicketAttachmentServiceImpl
-
- All Implemented Interfaces:
TicketAttachmentService
public class TicketAttachmentServiceImpl extends Object implements TicketAttachmentService
-
-
Field Summary
Fields Modifier and Type Field Description static StringCS_TICKET_ATTACHMENTS_NODES_FOLDERstatic StringDOCUMENTS_FOLDER
-
Constructor Summary
Constructors Constructor Description TicketAttachmentServiceImpl(org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService, org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.services.jcr.ext.distribution.DataDistributionManager dataDistributionManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.upload.UploadService uploadService, org.exoplatform.services.cms.documents.DocumentService documentService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddAttachmentFromExistingResource(String attachmentId)StringaddAttachmentFromUploadedResource(String cSpaceGroupId, String uploadId)
-
-
-
Field Detail
-
CS_TICKET_ATTACHMENTS_NODES_FOLDER
public static final String CS_TICKET_ATTACHMENTS_NODES_FOLDER
- See Also:
- Constant Field Values
-
DOCUMENTS_FOLDER
public static final String DOCUMENTS_FOLDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TicketAttachmentServiceImpl
public TicketAttachmentServiceImpl(org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService, org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.services.jcr.ext.distribution.DataDistributionManager dataDistributionManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.upload.UploadService uploadService, org.exoplatform.services.cms.documents.DocumentService documentService)
-
-
Method Detail
-
addAttachmentFromUploadedResource
public String addAttachmentFromUploadedResource(String cSpaceGroupId, String uploadId) throws Exception
- Specified by:
addAttachmentFromUploadedResourcein interfaceTicketAttachmentService- Parameters:
cSpaceGroupId- space group iduploadId- attachment upload id- Returns:
- The saved attachment id
- Throws:
Exception
-
addAttachmentFromExistingResource
public String addAttachmentFromExistingResource(String attachmentId) throws Exception
- Specified by:
addAttachmentFromExistingResourcein interfaceTicketAttachmentService- Parameters:
attachmentId- saved attachment id- Returns:
- The saved attachment id
- Throws:
Exception
-
-