it.sistematica.isharedoc.service.dts
Class DtsServiceImpl

java.lang.Object
  extended by it.sistematica.isharedoc.service.dts.DtsServiceImpl
All Implemented Interfaces:
DtsService

@Service(value="dtsService")
public class DtsServiceImpl
extends java.lang.Object
implements DtsService


Field Summary
(package private)  DocumentManager documentManager
           
(package private)  it.neverworks.data.EntityManager entities
           
(package private)  InstanceSecurityService instanceSecurityService
           
(package private)  InstanceService instanceService
           
(package private)  MessageboxService messageboxService
           
(package private)  OrganizationService organizationService
           
static java.lang.String PARAMETERS_STORYBOARD
           
(package private)  PecService pecService
           
(package private)  WorkProcessManager processManager
           
(package private)  org.hibernate.SessionFactory sessionFactory
           
(package private)  it.neverworks.application.service.TemporaryFileService temporaryFileService
           
(package private)  it.neverworks.application.data.tracking.TrackerDAO trackerDAO
           
(package private)  org.springframework.transaction.PlatformTransactionManager transactionManager
           
(package private)  it.neverworks.security.service.UserService userService
           
 
Constructor Summary
DtsServiceImpl()
           
 
Method Summary
 void exportObjects(java.lang.Class<?> clazz, java.util.Collection<?> rows, java.io.OutputStream output, it.neverworks.struts.Parameters parameters)
          Export objects.
 void exportObjects(java.lang.Class<?> clazz, java.util.Collection<?> rows, java.io.OutputStream output, it.neverworks.struts.Parameters parameters, it.neverworks.application.util.TaskLink link)
          Export objects.
 void exportOrganizations(java.io.OutputStream os)
          Export organizations.
 void importDocuments(java.io.InputStream inputExcelStream, int sheetIndex, File targetFolder, java.lang.String targetAttributeNameStore, java.io.OutputStream os)
          Import documents.
 void importMessageInstance(java.lang.String appIdentifier, java.util.Date appIdentifierDate, java.lang.String sender, java.util.Map<java.lang.String,java.lang.String> to, java.util.Map<java.lang.String,java.lang.String> cc, java.util.Map<java.lang.String,java.lang.Object> variables, MessageInstance.MessageType messageType, java.lang.String sConfidentialityLevel, java.util.Collection<java.io.File> attachments, java.lang.String orgVersion, boolean isPec, boolean skipCreated, java.lang.String mailBoxName)
          Import message instance.
 void importMessageInstanceFromSheet(java.lang.String filePath)
          Import message instance from sheet.
 void importMessageServiceInstance(java.lang.String appIdentifier, java.util.Date appIdentifierDate, java.lang.String sender, java.util.List<java.lang.String> to, java.util.List<java.lang.String> cc, java.util.Map<java.lang.String,java.lang.Object> variables, MessageServiceInstance.ServiceType serviceType, java.util.Collection<java.io.File> attachments, boolean skipCreated)
          Import message service instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETERS_STORYBOARD

public static final java.lang.String PARAMETERS_STORYBOARD
See Also:
Constant Field Values

sessionFactory

org.hibernate.SessionFactory sessionFactory

transactionManager

org.springframework.transaction.PlatformTransactionManager transactionManager

entities

it.neverworks.data.EntityManager entities

instanceService

InstanceService instanceService

instanceSecurityService

InstanceSecurityService instanceSecurityService

documentManager

DocumentManager documentManager

pecService

PecService pecService

messageboxService

MessageboxService messageboxService

processManager

WorkProcessManager processManager

organizationService

OrganizationService organizationService

userService

it.neverworks.security.service.UserService userService

trackerDAO

it.neverworks.application.data.tracking.TrackerDAO trackerDAO

temporaryFileService

it.neverworks.application.service.TemporaryFileService temporaryFileService
Constructor Detail

DtsServiceImpl

public DtsServiceImpl()
Method Detail

importDocuments

public void importDocuments(java.io.InputStream inputExcelStream,
                            int sheetIndex,
                            File targetFolder,
                            java.lang.String targetAttributeNameStore,
                            java.io.OutputStream os)
                     throws java.io.IOException
Description copied from interface: DtsService
Import documents.

Specified by:
importDocuments in interface DtsService
Parameters:
inputExcelStream - the input excel stream
sheetIndex - the sheet index
targetFolder - the target folder
targetAttributeNameStore - the target attribute name store
os - the os
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

importMessageInstanceFromSheet

@Transactional
public void importMessageInstanceFromSheet(java.lang.String filePath)
                                    throws java.lang.Exception
Description copied from interface: DtsService
Import message instance from sheet.

Specified by:
importMessageInstanceFromSheet in interface DtsService
Parameters:
filePath - the file path
Throws:
java.lang.Exception - the exception

importMessageInstance

@Transactional
public void importMessageInstance(java.lang.String appIdentifier,
                                                java.util.Date appIdentifierDate,
                                                java.lang.String sender,
                                                java.util.Map<java.lang.String,java.lang.String> to,
                                                java.util.Map<java.lang.String,java.lang.String> cc,
                                                java.util.Map<java.lang.String,java.lang.Object> variables,
                                                MessageInstance.MessageType messageType,
                                                java.lang.String sConfidentialityLevel,
                                                java.util.Collection<java.io.File> attachments,
                                                java.lang.String orgVersion,
                                                boolean isPec,
                                                boolean skipCreated,
                                                java.lang.String mailBoxName)
                           throws java.lang.Exception
Description copied from interface: DtsService
Import message instance.

Specified by:
importMessageInstance in interface DtsService
Parameters:
appIdentifier - the app identifier
appIdentifierDate - the app identifier date
sender - the sender
to - the to
cc - the cc
variables - the variables
messageType - the message type
sConfidentialityLevel - the s confidentiality level
attachments - the attachments
orgVersion - the org version
isPec - the is pec
skipCreated - the skip created
mailBoxName - the mail box name
Throws:
java.lang.Exception - the exception

importMessageServiceInstance

@Transactional
public void importMessageServiceInstance(java.lang.String appIdentifier,
                                                       java.util.Date appIdentifierDate,
                                                       java.lang.String sender,
                                                       java.util.List<java.lang.String> to,
                                                       java.util.List<java.lang.String> cc,
                                                       java.util.Map<java.lang.String,java.lang.Object> variables,
                                                       MessageServiceInstance.ServiceType serviceType,
                                                       java.util.Collection<java.io.File> attachments,
                                                       boolean skipCreated)
                                  throws java.lang.Exception
Description copied from interface: DtsService
Import message service instance.

Specified by:
importMessageServiceInstance in interface DtsService
Parameters:
appIdentifier - the app identifier
appIdentifierDate - the app identifier date
sender - the sender
to - the to
cc - the cc
variables - the variables
serviceType - the service type
attachments - the attachments
skipCreated - the skip created
Throws:
java.lang.Exception - the exception

exportObjects

public void exportObjects(java.lang.Class<?> clazz,
                          java.util.Collection<?> rows,
                          java.io.OutputStream output,
                          it.neverworks.struts.Parameters parameters)
                   throws java.lang.InterruptedException
Description copied from interface: DtsService
Export objects.

Specified by:
exportObjects in interface DtsService
Parameters:
clazz - the clazz
rows - the rows
output - the output
parameters - the parameters
Throws:
java.lang.InterruptedException - the interrupted exception

exportObjects

public void exportObjects(java.lang.Class<?> clazz,
                          java.util.Collection<?> rows,
                          java.io.OutputStream output,
                          it.neverworks.struts.Parameters parameters,
                          it.neverworks.application.util.TaskLink link)
                   throws java.lang.InterruptedException
Description copied from interface: DtsService
Export objects.

Specified by:
exportObjects in interface DtsService
Parameters:
clazz - the clazz
rows - the rows
output - the output
parameters - the parameters
link - the link
Throws:
java.lang.InterruptedException - the interrupted exception

exportOrganizations

@Transactional
public void exportOrganizations(java.io.OutputStream os)
Description copied from interface: DtsService
Export organizations.

Specified by:
exportOrganizations in interface DtsService
Parameters:
os - the os