|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.sistematica.isharedoc.service.InstanceServiceImpl
public class InstanceServiceImpl
| Field Summary | |
|---|---|
(package private) AddressBookService |
addressBookService
|
(package private) CloudManager |
cloudManager
|
(package private) ReplicaService |
cloudReplicaService
|
(package private) DocumentManager |
documentManager
|
(package private) it.neverworks.data.EntityManager |
entities
|
(package private) InstanceSecurityService |
instanceSecurityService
|
(package private) MessageboxService |
messageboxService
|
(package private) OrganizationService |
organizationService
|
(package private) WorkProcessManager |
processManager
|
(package private) WorkTaskManager |
taskManager
|
(package private) it.neverworks.application.service.TemporaryFileService |
temporaryFileService
|
(package private) it.neverworks.application.service.UserInfo |
userInfo
|
| Constructor Summary | |
|---|---|
InstanceServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addFile(ItemInstance instance,
java.lang.String fileSetName,
File file)
Adds the file. |
void |
addFiles(ItemInstance instance,
java.lang.String fileSetName,
java.util.Collection<? extends File> files)
Adds the files. |
void |
addFiles(ItemInstance instance,
java.lang.String fileSetName,
File... files)
Adds the files. |
ContactInstance |
addInstanceContact(ItemInstance instance,
ContactInstance.DestinationType destinationType,
Contact contact)
Adds the instance contact. |
ContactInstance |
addInstanceContact(ItemInstance instance,
ContactInstance.DestinationType destinationType,
LocationAttribute location)
Adds the instance contact. |
ContactInstance |
addInstanceContact(ItemInstance instance,
ContactInstance.DestinationType destinationType,
Organization organization,
ContactInstance parent)
Adds the instance contact. |
ContactInstance |
addInstanceContact(ItemInstance instance,
ContactInstance.DestinationType destinationType,
java.lang.String contactDescription)
Adds the instance contact. |
ContactInstance |
addInstanceContact(ItemInstance instance,
ContactInstance.DestinationType destinationType,
it.neverworks.security.User user,
ContactInstance parent)
Adds the instance contact. |
ContactInstance |
addInstanceContact(ItemInstance instance,
ContactInstance contactInstance)
Adds the instance contact. |
ContactInstance |
addInstanceContactOrganization(ItemInstance instance,
ContactInstance.DestinationType destinationType,
java.lang.String organizationId,
ContactInstance parent)
Adds the instance contact organization. |
ContactInstance |
addInstanceContactOrganization(java.lang.String instanceId,
ContactInstance.DestinationType destinationType,
java.lang.String organizationId,
ContactInstance parent)
Adds the instance contact organization. |
ContactInstance |
addInstanceContactUserOrganization(java.lang.String instanceId,
ContactInstance.DestinationType destinationType,
java.lang.String userOrganizationId,
ContactInstance parent)
Adds the instance contact user organization. |
void |
cleanTrash()
Clean trash. |
void |
cleanTrash(MessageBox mbox)
Clean trash. |
void |
clearFiles(ItemInstance instance,
java.lang.String fileSetName,
boolean deleteFromDms)
Clear files. |
ItemInstance |
cloneItemInstance(ItemInstance instance,
boolean cloneFrom,
boolean cloneTo,
boolean cloneCc,
boolean cloneBcc,
boolean cloneAttachments)
Clone item instance. |
java.util.List<ItemInstance> |
cloneMultipleItemInstance(ItemInstance instance,
boolean spamBccIntoTo,
boolean cloneOnlyExternal)
Clone multiple item instance. |
File |
createFromAttachment(ItemInstance instance,
AttachmentItem ar,
ConfidentialityLevel confidentialityLevel)
Creates the from attachment. |
File |
createFromAttachment(ItemInstance instance,
InstanceBaseAction.AttachmentInfo attachment,
ConfidentialityLevel confidentialityLevel)
Creates the from attachment. |
ItemInstance |
createItemInstance(Storyboard storyboard,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables)
Creates the item instance. |
ItemInstance |
createItemInstance(Storyboard storyboard,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables,
boolean startProcess)
Creates the item instance. |
ItemInstance |
createItemInstance(Storyboard storyboard,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables,
View processLayout)
Creates the item instance. |
ItemInstance |
createItemInstance(Storyboard storyboard,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables,
View processLayout,
boolean startProcess)
Creates the item instance. |
ItemInstance |
createItemInstance(java.lang.String storyboardCode,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables)
Creates the item instance. |
ItemInstance |
createItemInstance(java.lang.String storyboardCode,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables,
boolean startProcess)
Creates the item instance. |
ItemInstance |
createItemInstance(java.lang.String storyboardCode,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables,
View processLayout)
Creates the item instance. |
ItemInstance |
createItemInstance(java.lang.String storyboardCode,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables,
View processLayout,
boolean startProcess)
Creates the item instance. |
File |
createItemLink(ItemInstance itemInstance,
File destination,
java.lang.String newName)
Creates the item link. |
File |
createItemLink(ItemInstance itemInstance,
File destination,
java.lang.String newName,
java.lang.String note)
Creates the item link. |
Document |
createLocalAttachment(ItemInstance instance,
java.lang.String name,
java.lang.String contentType,
ObjectTemplate objectTemplate,
ConfidentialityLevel confidentialityLevel,
java.io.InputStream stream,
long size)
Creates the local attachment. |
RemoteDocument |
createRemoteAttachment(ItemInstance instance,
java.lang.String name,
CloudFile remoteFile)
Creates the remote attachment. |
void |
deleteProcessInstance(ItemInstance instance)
Delete process instance. |
void |
exportInstancesXml(java.util.Date fromDate,
java.util.Date toDate,
java.io.File exportFile)
Export instances xml. |
void |
exportInstancesXml(InstancesSet instances,
java.io.File exportFile)
Export instances xml. |
java.util.List<ItemInstance> |
findByVariableMapValueEquals(java.util.Map<java.lang.String,java.lang.Object> values)
Find by variable map value equals. |
java.util.List<ItemInstance> |
findByVariableValueEquals(java.lang.String varName,
java.lang.Object varValue)
Find by variable value equals. |
ContactInstance |
findContactInstanceById(java.lang.Long id)
Find contact instance by id. |
MessageInstance |
findFirstMessageInstanceByAppIdentifierAndYear(java.lang.String appIdentifier,
int year)
Come sopra ma in presenza di duplicati ritorna il primo che trova. |
ItemInstance |
findInstanceById(java.lang.Long id)
Find instance by id. |
ItemInstance |
findInstanceRelated(CloudFile file)
Find instance related. |
ItemInstance |
findInstanceRelated(File file)
Find instance related. |
java.util.Set<ItemInstance> |
findInstances(CloudFile file)
Find instances. |
java.util.Set<ItemInstance> |
findInstances(File file)
Find instances. |
ItemInstance |
findItemInstanceByAppIdentifierAndSbCode(java.lang.String appIdentifier,
java.lang.String sbCode)
Find item instance by app identifier and sb code. |
Document |
findMailEML(MessageInstance messageInstance)
Find mail eml. |
MessageInstance |
findMessageInstanceByAppIdentifier(java.lang.String appIdentifier,
java.util.Date appIdentifierDate)
Find message instance by app identifier. |
MessageInstance |
findMessageInstanceByAppIdentifierAndYear(java.lang.String appIdentifier,
int year)
Find message instance by app identifier and year. |
MessageInstance |
findMessageInstanceById(java.lang.Long id)
Find message instance by id. |
MessageServiceInstance |
findMessageServiceInstanceByAppIdentifier(java.lang.String appIdentifier,
java.util.Date appIdentifierDate,
javax.mail.internet.InternetAddress recipient,
MessageServiceInstance.XmlAutomationType xmlAutomationType)
Find message service instance by app identifier. |
MessageServiceInstance |
findMessageServiceInstanceByAppIdentifier(java.lang.String appIdentifier,
java.util.Date appIdentifierDate,
MessageServiceInstance.XmlAutomationType xmlAutomationType)
Find message service instance by app identifier. |
java.util.Set<ItemLink> |
getActiveItemLinks(ItemInstance instance)
Gets the active item links. |
Document |
getDocumentByName(ItemInstance instance,
java.lang.String attachmentName)
Gets the document by name. |
File |
getFile(ItemInstance instance,
java.lang.String fileSetName,
java.lang.String fileName)
Gets the file. |
java.util.Set<File> |
getFiles(ItemInstance instance,
java.lang.String fileSetName)
Gets the files. |
java.util.Set<File> |
getFilesAll(ItemInstance instance)
Gets the files all. |
FileSet |
getFileSet(ItemInstance instance,
java.lang.String fileSetName)
Gets the file set. |
File |
getInstanceAttachmentFolder(ItemInstance instance)
Gets the instance attachment folder. |
File |
getInstanceAttachmentStoryboardFolder(ItemInstance instance,
File rootSbFolder)
Gets the instance attachment storyboard folder. |
it.neverworks.mail.helper.MessageHelper |
getMessageHelper(MessageInstance messageInstance)
Gets the message helper. |
FileSet |
getOrCreateFileSet(ItemInstance instance,
java.lang.String fileSetName)
Gets the or create file set. |
it.neverworks.mail.helper.MessageHelper |
getOriginalMessagePEC(MessageServiceInstance instance)
Gets the original message pec. |
java.util.Set<File> |
getUserFilesAll(ItemInstance instance)
Gets the user files all. |
boolean |
itemLinkExists(ItemInstance itemInstance,
File destination)
Item link exists. |
void |
moveToTrash(ItemInstance instance)
Move to trash. |
ContactInstance |
prepareInstanceContactByEmail(javax.mail.internet.InternetAddress email)
Prepare instance contact by email. |
void |
recoveryFromTrash(ItemInstance instance)
Recovery from trash. |
void |
removeFile(ItemInstance instance,
java.lang.String fileSetName,
boolean deleteFromDms,
File file)
Removes the file. |
void |
removeFiles(ItemInstance instance,
java.lang.String fileSetName,
boolean deleteFromDms,
java.util.Collection<? extends File> files)
Removes the files. |
void |
removeFiles(ItemInstance instance,
java.lang.String fileSetName,
boolean deleteFromDms,
File... files)
Removes the files. |
void |
removeInstanceContact(ContactInstance contactInstance)
Removes the instance contact. |
void |
removeInstanceContactOrganization(java.lang.String instanceId,
ContactInstance.DestinationType destinationType,
java.lang.String organizationId)
Removes the instance contact organization. |
void |
removeItemLink(ItemInstance itemInstance,
ItemLink link)
Removes the item link. |
void |
replaceFiles(ItemInstance instance,
java.lang.String fileSetName,
boolean deleteFromDms,
java.util.Collection<? extends File> files)
Replace files. |
void |
replaceFiles(ItemInstance instance,
java.lang.String fileSetName,
boolean deleteFromDms,
File... files)
Replace files. |
void |
replicaAttachments(java.lang.String replicaServerId,
ItemInstance instance,
java.lang.String fileRegEx)
Replica attachments. |
void |
restartAssignment(MessageInstance messageInstance,
java.util.List<InstanceAssignmentEntry> instanceAssignmentEntries)
Restart assignment. |
void |
restartAssignment(MessageInstance messageInstance,
java.util.List<InstanceAssignmentEntry> instanceAssignmentEntries,
java.util.Map<java.lang.String,java.lang.Object> customVariables)
Restart assignment. |
void |
restartAssignmentFromSheet(java.lang.String filePath,
ContactInstance parentCi)
Restart assignment from sheet. |
void |
restartInstance(ItemInstance instance,
boolean preserveVariables)
void exportMessageInstance(Collection |
void |
restartInstance(ItemInstance instance,
boolean preserveVariables,
Storyboard storyboard)
Restart instance. |
void |
resumeProcessInstance(ItemInstance instance)
Resume process instance. |
void |
saveItemInstance(ItemInstance instance)
Save item instance. |
void |
suspendProcessInstance(ItemInstance instance)
Suspend process instance. |
void |
updateItemHistoryVariables(ItemInstance instance,
java.util.Map<java.lang.String,java.lang.Object> variables)
Update item history variables. |
void |
updateItemHistoryVariables(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> variables)
Update item history variables. |
void |
updateStatusById(java.lang.String itemInstanceId,
ItemInstance.WorkStatus status,
java.lang.String statusDescription)
Update status by id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
it.neverworks.application.service.UserInfo userInfo
it.neverworks.data.EntityManager entities
WorkProcessManager processManager
WorkTaskManager taskManager
DocumentManager documentManager
OrganizationService organizationService
MessageboxService messageboxService
InstanceSecurityService instanceSecurityService
AddressBookService addressBookService
it.neverworks.application.service.TemporaryFileService temporaryFileService
CloudManager cloudManager
ReplicaService cloudReplicaService
| Constructor Detail |
|---|
public InstanceServiceImpl()
| Method Detail |
|---|
@Transactional public File getInstanceAttachmentFolder(ItemInstance instance)
InstanceService
getInstanceAttachmentFolder in interface InstanceServiceinstance - the instance
@Transactional
public File getInstanceAttachmentStoryboardFolder(ItemInstance instance,
File rootSbFolder)
InstanceService
getInstanceAttachmentStoryboardFolder in interface InstanceServiceinstance - the instancerootSbFolder - the root sb folder
@Transactional
public void updateStatusById(java.lang.String itemInstanceId,
ItemInstance.WorkStatus status,
java.lang.String statusDescription)
throws java.lang.Exception
InstanceService
updateStatusById in interface InstanceServiceitemInstanceId - the item instance idstatus - the statusstatusDescription - the status description
java.lang.Exception - the exception
@Transactional
public java.util.List<ItemInstance> findByVariableValueEquals(java.lang.String varName,
java.lang.Object varValue)
InstanceService
findByVariableValueEquals in interface InstanceServicevarName - the var namevarValue - the var value
@Transactional public java.util.List<ItemInstance> findByVariableMapValueEquals(java.util.Map<java.lang.String,java.lang.Object> values)
InstanceService
findByVariableMapValueEquals in interface InstanceServicevalues - the values
@Transactional public MessageInstance findMessageInstanceById(java.lang.Long id)
InstanceService
findMessageInstanceById in interface InstanceServiceid - the id
@Transactional public ItemInstance findInstanceById(java.lang.Long id)
InstanceService
findInstanceById in interface InstanceServiceid - the id
@Transactional
public ItemInstance findItemInstanceByAppIdentifierAndSbCode(java.lang.String appIdentifier,
java.lang.String sbCode)
InstanceService
findItemInstanceByAppIdentifierAndSbCode in interface InstanceServiceappIdentifier - the app identifiersbCode - the sb code
@Transactional
public MessageInstance findMessageInstanceByAppIdentifier(java.lang.String appIdentifier,
java.util.Date appIdentifierDate)
InstanceService
findMessageInstanceByAppIdentifier in interface InstanceServiceappIdentifier - the app identifierappIdentifierDate - the app identifier date
@Transactional
public MessageInstance findMessageInstanceByAppIdentifierAndYear(java.lang.String appIdentifier,
int year)
InstanceService
findMessageInstanceByAppIdentifierAndYear in interface InstanceServiceappIdentifier - the app identifieryear - the year
@Transactional
public MessageInstance findFirstMessageInstanceByAppIdentifierAndYear(java.lang.String appIdentifier,
int year)
InstanceService
findFirstMessageInstanceByAppIdentifierAndYear in interface InstanceServiceappIdentifier - the app identifieryear - the year
@Transactional
public MessageServiceInstance findMessageServiceInstanceByAppIdentifier(java.lang.String appIdentifier,
java.util.Date appIdentifierDate,
MessageServiceInstance.XmlAutomationType xmlAutomationType)
InstanceService
findMessageServiceInstanceByAppIdentifier in interface InstanceServiceappIdentifier - the app identifierappIdentifierDate - the app identifier datexmlAutomationType - the xml automation type
@Transactional
public MessageServiceInstance findMessageServiceInstanceByAppIdentifier(java.lang.String appIdentifier,
java.util.Date appIdentifierDate,
javax.mail.internet.InternetAddress recipient,
MessageServiceInstance.XmlAutomationType xmlAutomationType)
InstanceService
findMessageServiceInstanceByAppIdentifier in interface InstanceServiceappIdentifier - the app identifierappIdentifierDate - the app identifier daterecipient - the recipientxmlAutomationType - the xml automation type
@Transactional public ContactInstance findContactInstanceById(java.lang.Long id)
InstanceService
findContactInstanceById in interface InstanceServiceid - the id
@Transactional public ContactInstance prepareInstanceContactByEmail(javax.mail.internet.InternetAddress email)
InstanceService
prepareInstanceContactByEmail in interface InstanceServiceemail - the email
@Transactional
public ContactInstance addInstanceContact(ItemInstance instance,
ContactInstance contactInstance)
InstanceService
addInstanceContact in interface InstanceServiceinstance - the instancecontactInstance - the contact instance
@Transactional
public ContactInstance addInstanceContact(ItemInstance instance,
ContactInstance.DestinationType destinationType,
java.lang.String contactDescription)
InstanceService
addInstanceContact in interface InstanceServiceinstance - the instancedestinationType - the destination typecontactDescription - the contact description
public ContactInstance addInstanceContact(ItemInstance instance,
ContactInstance.DestinationType destinationType,
Contact contact)
InstanceService
addInstanceContact in interface InstanceServiceinstance - the instancedestinationType - the destination typecontact - the contact
public ContactInstance addInstanceContact(ItemInstance instance,
ContactInstance.DestinationType destinationType,
LocationAttribute location)
InstanceService
addInstanceContact in interface InstanceServiceinstance - the instancedestinationType - the destination typelocation - the location
@Transactional
public ContactInstance addInstanceContact(ItemInstance instance,
ContactInstance.DestinationType destinationType,
it.neverworks.security.User user,
ContactInstance parent)
InstanceService
addInstanceContact in interface InstanceServiceinstance - the instancedestinationType - the destination typeuser - the userparent - the parent
@Transactional
public ContactInstance addInstanceContact(ItemInstance instance,
ContactInstance.DestinationType destinationType,
Organization organization,
ContactInstance parent)
InstanceService
addInstanceContact in interface InstanceServiceinstance - the instancedestinationType - the destination typeorganization - the organizationparent - the parent
@Transactional
public ContactInstance addInstanceContactOrganization(ItemInstance instance,
ContactInstance.DestinationType destinationType,
java.lang.String organizationId,
ContactInstance parent)
InstanceService
addInstanceContactOrganization in interface InstanceServiceinstance - the instancedestinationType - the destination typeorganizationId - the organization idparent - the parent
@Transactional
public ContactInstance addInstanceContactOrganization(java.lang.String instanceId,
ContactInstance.DestinationType destinationType,
java.lang.String organizationId,
ContactInstance parent)
InstanceService
addInstanceContactOrganization in interface InstanceServiceinstanceId - the instance iddestinationType - the destination typeorganizationId - the organization idparent - the parent
@Transactional
public ContactInstance addInstanceContactUserOrganization(java.lang.String instanceId,
ContactInstance.DestinationType destinationType,
java.lang.String userOrganizationId,
ContactInstance parent)
InstanceService
addInstanceContactUserOrganization in interface InstanceServiceinstanceId - the instance iddestinationType - the destination typeuserOrganizationId - the user organization idparent - the parent
@Transactional public void removeInstanceContact(ContactInstance contactInstance)
InstanceService
removeInstanceContact in interface InstanceServicecontactInstance - the contact instance
@Transactional
public void removeInstanceContactOrganization(java.lang.String instanceId,
ContactInstance.DestinationType destinationType,
java.lang.String organizationId)
InstanceService
removeInstanceContactOrganization in interface InstanceServiceinstanceId - the instance iddestinationType - the destination typeorganizationId - the organization id
@Transactional
public ItemInstance createItemInstance(java.lang.String storyboardCode,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables)
InstanceService
createItemInstance in interface InstanceServicestoryboardCode - the storyboard process namembox - the mboxmsgType - the msg typeattachments - the attachmentsvariables - the variables
@Transactional
public ItemInstance createItemInstance(java.lang.String storyboardCode,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables,
View processLayout)
InstanceService
createItemInstance in interface InstanceServicestoryboardCode - the storyboard process namembox - the mboxmsgType - the msg typeattachments - the attachmentsvariables - the variablesprocessLayout - the process layout
@Transactional
public ItemInstance createItemInstance(java.lang.String storyboardCode,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables,
boolean startProcess)
InstanceService
createItemInstance in interface InstanceServicestoryboardCode - the storyboard process namembox - the mboxmsgType - the msg typeattachments - the attachmentsvariables - the variablesstartProcess - the start process
@Transactional
public ItemInstance createItemInstance(java.lang.String storyboardCode,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables,
View processLayout,
boolean startProcess)
InstanceService
createItemInstance in interface InstanceServicestoryboardCode - the storyboard process namembox - the mboxmsgType - the msg typeattachments - the attachmentsvariables - the variablesprocessLayout - the process layoutstartProcess - the start process
@Transactional
public ItemInstance createItemInstance(Storyboard storyboard,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables)
InstanceService
createItemInstance in interface InstanceServicestoryboard - the storyboardmbox - the mboxmsgType - the msg typeattachments - the attachmentsvariables - the variables
@Transactional
public ItemInstance createItemInstance(Storyboard storyboard,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables,
boolean startProcess)
InstanceService
createItemInstance in interface InstanceServicestoryboard - the storyboardmbox - the mboxmsgType - the msg typeattachments - the attachmentsvariables - the variablesstartProcess - the start process
@Transactional
public ItemInstance createItemInstance(Storyboard storyboard,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables,
View processLayout)
InstanceService
createItemInstance in interface InstanceServicestoryboard - the storyboardmbox - the mboxmsgType - the msg typeattachments - the attachmentsvariables - the variablesprocessLayout - the process layout
@Transactional
public ItemInstance createItemInstance(Storyboard storyboard,
MessageBox mbox,
MessageInstance.MessageType msgType,
java.util.List<AttachmentItem> attachments,
java.util.HashMap<java.lang.String,java.lang.Object> variables,
View processLayout,
boolean startProcess)
InstanceService
createItemInstance in interface InstanceServicestoryboard - the storyboardmbox - the mboxmsgType - the msg typeattachments - the attachmentsvariables - the variablesprocessLayout - the process layoutstartProcess - the start process
@Transactional
public ItemInstance cloneItemInstance(ItemInstance instance,
boolean cloneFrom,
boolean cloneTo,
boolean cloneCc,
boolean cloneBcc,
boolean cloneAttachments)
InstanceService
cloneItemInstance in interface InstanceServiceinstance - the instancecloneFrom - the clone fromcloneTo - the clone tocloneCc - the clone cccloneBcc - the clone bcccloneAttachments - the clone attachments
@Transactional
public java.util.List<ItemInstance> cloneMultipleItemInstance(ItemInstance instance,
boolean spamBccIntoTo,
boolean cloneOnlyExternal)
InstanceService
cloneMultipleItemInstance in interface InstanceServiceinstance - the instancespamBccIntoTo - the spam bcc into tocloneOnlyExternal - the clone only external
@Transactional public void saveItemInstance(ItemInstance instance)
InstanceService
saveItemInstance in interface InstanceServiceinstance - the instance
@Transactional
public void updateItemHistoryVariables(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> variables)
InstanceService
updateItemHistoryVariables in interface InstanceServiceid - the idvariables - the variables
@Transactional
public void updateItemHistoryVariables(ItemInstance instance,
java.util.Map<java.lang.String,java.lang.Object> variables)
InstanceService
updateItemHistoryVariables in interface InstanceServiceinstance - the instancevariables - the variablespublic void moveToTrash(ItemInstance instance)
InstanceService
moveToTrash in interface InstanceServiceinstance - the instancepublic void recoveryFromTrash(ItemInstance instance)
InstanceService
recoveryFromTrash in interface InstanceServiceinstance - the instance
@Transactional
public void restartInstance(ItemInstance instance,
boolean preserveVariables)
InstanceService
restartInstance in interface InstanceServiceinstance - the instancepreserveVariables - the preserve prot variables
@Transactional
public void restartInstance(ItemInstance instance,
boolean preserveVariables,
Storyboard storyboard)
InstanceService
restartInstance in interface InstanceServiceinstance - the instancepreserveVariables - the preserve prot variablesstoryboard - the storyboard@Transactional public void suspendProcessInstance(ItemInstance instance)
InstanceService
suspendProcessInstance in interface InstanceServiceinstance - the instance@Transactional public void resumeProcessInstance(ItemInstance instance)
InstanceService
resumeProcessInstance in interface InstanceServiceinstance - the instance@Transactional public void deleteProcessInstance(ItemInstance instance)
InstanceService
deleteProcessInstance in interface InstanceServiceinstance - the instance
@Transactional
public void restartAssignment(MessageInstance messageInstance,
java.util.List<InstanceAssignmentEntry> instanceAssignmentEntries)
throws java.lang.Exception
InstanceService
restartAssignment in interface InstanceServicemessageInstance - the message instanceinstanceAssignmentEntries - the instance assignment entries
java.lang.Exception - the exception
@Transactional
public void restartAssignment(MessageInstance messageInstance,
java.util.List<InstanceAssignmentEntry> instanceAssignmentEntries,
java.util.Map<java.lang.String,java.lang.Object> customVariables)
throws java.lang.Exception
InstanceService
restartAssignment in interface InstanceServicemessageInstance - the message instanceinstanceAssignmentEntries - the instance assignment entriescustomVariables - the custom variables
java.lang.Exception - the exception
@Transactional
public void restartAssignmentFromSheet(java.lang.String filePath,
ContactInstance parentCi)
throws java.lang.Exception
InstanceService
restartAssignmentFromSheet in interface InstanceServicefilePath - the file pathparentCi - the parent ci
java.lang.Exception - the exception@Transactional public void cleanTrash()
InstanceService
cleanTrash in interface InstanceService@Transactional public void cleanTrash(MessageBox mbox)
InstanceService
cleanTrash in interface InstanceServicembox - the mbox@Transactional public it.neverworks.mail.helper.MessageHelper getOriginalMessagePEC(MessageServiceInstance instance)
InstanceService
getOriginalMessagePEC in interface InstanceServiceinstance - the instance
@Transactional public it.neverworks.mail.helper.MessageHelper getMessageHelper(MessageInstance messageInstance)
InstanceService
getMessageHelper in interface InstanceServicemessageInstance - the message instance
public Document findMailEML(MessageInstance messageInstance)
InstanceService
findMailEML in interface InstanceServicemessageInstance - the message instance
@Transactional
public File createFromAttachment(ItemInstance instance,
AttachmentItem ar,
ConfidentialityLevel confidentialityLevel)
InstanceService
createFromAttachment in interface InstanceServiceinstance - the instancear - the arconfidentialityLevel - the confidentiality level
@Transactional
public File createFromAttachment(ItemInstance instance,
InstanceBaseAction.AttachmentInfo attachment,
ConfidentialityLevel confidentialityLevel)
InstanceService
createFromAttachment in interface InstanceServiceinstance - the instanceattachment - the attachmentconfidentialityLevel - the confidentiality level
@Transactional
public RemoteDocument createRemoteAttachment(ItemInstance instance,
java.lang.String name,
CloudFile remoteFile)
InstanceService
createRemoteAttachment in interface InstanceServiceinstance - the instancename - the nameremoteFile - the remote file
@Transactional
public Document createLocalAttachment(ItemInstance instance,
java.lang.String name,
java.lang.String contentType,
ObjectTemplate objectTemplate,
ConfidentialityLevel confidentialityLevel,
java.io.InputStream stream,
long size)
InstanceService
createLocalAttachment in interface InstanceServiceinstance - the instancename - the namecontentType - the content typeobjectTemplate - the object templateconfidentialityLevel - the confidentiality levelstream - the streamsize - the size
public java.util.Set<File> getFiles(ItemInstance instance,
java.lang.String fileSetName)
InstanceService
getFiles in interface InstanceServiceinstance - the instancefileSetName - the file set name
public File getFile(ItemInstance instance,
java.lang.String fileSetName,
java.lang.String fileName)
InstanceService
getFile in interface InstanceServiceinstance - the instancefileSetName - the file set namefileName - the file name
public java.util.Set<File> getUserFilesAll(ItemInstance instance)
InstanceService
getUserFilesAll in interface InstanceServiceinstance - the instance
public java.util.Set<File> getFilesAll(ItemInstance instance)
InstanceService
getFilesAll in interface InstanceServiceinstance - the instance
public FileSet getFileSet(ItemInstance instance,
java.lang.String fileSetName)
InstanceService
getFileSet in interface InstanceServiceinstance - the instancefileSetName - the file set name
@Transactional
public FileSet getOrCreateFileSet(ItemInstance instance,
java.lang.String fileSetName)
InstanceService
getOrCreateFileSet in interface InstanceServiceinstance - the instancefileSetName - the file set name
@Transactional
public void addFiles(ItemInstance instance,
java.lang.String fileSetName,
File... files)
InstanceService
addFiles in interface InstanceServiceinstance - the instancefileSetName - the file set namefiles - the files
public void addFiles(ItemInstance instance,
java.lang.String fileSetName,
java.util.Collection<? extends File> files)
InstanceService
addFiles in interface InstanceServiceinstance - the instancefileSetName - the file set namefiles - the files
public void addFile(ItemInstance instance,
java.lang.String fileSetName,
File file)
InstanceService
addFile in interface InstanceServiceinstance - the instancefileSetName - the file set namefile - the file
@Transactional
public void removeFiles(ItemInstance instance,
java.lang.String fileSetName,
boolean deleteFromDms,
File... files)
InstanceService
removeFiles in interface InstanceServiceinstance - the instancefileSetName - the file set namedeleteFromDms - the delete from dmsfiles - the files
public void removeFiles(ItemInstance instance,
java.lang.String fileSetName,
boolean deleteFromDms,
java.util.Collection<? extends File> files)
InstanceService
removeFiles in interface InstanceServiceinstance - the instancefileSetName - the file set namedeleteFromDms - the delete from dmsfiles - the files
public void removeFile(ItemInstance instance,
java.lang.String fileSetName,
boolean deleteFromDms,
File file)
InstanceService
removeFile in interface InstanceServiceinstance - the instancefileSetName - the file set namedeleteFromDms - the delete from dmsfile - the file
@Transactional
public void clearFiles(ItemInstance instance,
java.lang.String fileSetName,
boolean deleteFromDms)
InstanceService
clearFiles in interface InstanceServiceinstance - the instancefileSetName - the file set namedeleteFromDms - the delete from dms
public void replaceFiles(ItemInstance instance,
java.lang.String fileSetName,
boolean deleteFromDms,
File... files)
InstanceService
replaceFiles in interface InstanceServiceinstance - the instancefileSetName - the file set namedeleteFromDms - the delete from dmsfiles - the files
public void replaceFiles(ItemInstance instance,
java.lang.String fileSetName,
boolean deleteFromDms,
java.util.Collection<? extends File> files)
InstanceService
replaceFiles in interface InstanceServiceinstance - the instancefileSetName - the file set namedeleteFromDms - the delete from dmsfiles - the files
public Document getDocumentByName(ItemInstance instance,
java.lang.String attachmentName)
InstanceService
getDocumentByName in interface InstanceServiceinstance - the instanceattachmentName - the attachment name
public java.util.Set<ItemInstance> findInstances(CloudFile file)
InstanceService
findInstances in interface InstanceServicefile - the file
public java.util.Set<ItemInstance> findInstances(File file)
InstanceService
findInstances in interface InstanceServicefile - the file
public ItemInstance findInstanceRelated(File file)
InstanceService
findInstanceRelated in interface InstanceServicefile - the file
public ItemInstance findInstanceRelated(CloudFile file)
InstanceService
findInstanceRelated in interface InstanceServicefile - the file
@Transactional
public void replicaAttachments(java.lang.String replicaServerId,
ItemInstance instance,
java.lang.String fileRegEx)
InstanceService
replicaAttachments in interface InstanceServicereplicaServerId - the replica server idinstance - the instancefileRegEx - the file reg ex
@Transactional
public void exportInstancesXml(InstancesSet instances,
java.io.File exportFile)
throws java.io.IOException
InstanceService
exportInstancesXml in interface InstanceServiceinstances - the instancesexportFile - the export file
java.io.IOException - Signals that an I/O exception has occurred.
@Transactional
public void exportInstancesXml(java.util.Date fromDate,
java.util.Date toDate,
java.io.File exportFile)
throws java.io.IOException
InstanceService
exportInstancesXml in interface InstanceServicefromDate - the from datetoDate - the to dateexportFile - the export file
java.io.IOException - Signals that an I/O exception has occurred.
public File createItemLink(ItemInstance itemInstance,
File destination,
java.lang.String newName)
InstanceService
createItemLink in interface InstanceServiceitemInstance - the item instancedestination - the destinationnewName - the new name
@Transactional
public File createItemLink(ItemInstance itemInstance,
File destination,
java.lang.String newName,
java.lang.String note)
InstanceService
createItemLink in interface InstanceServiceitemInstance - the item instancedestination - the destinationnewName - the new namenote - the note
@Transactional
public void removeItemLink(ItemInstance itemInstance,
ItemLink link)
InstanceService
removeItemLink in interface InstanceServiceitemInstance - the item instancelink - the link
@Transactional
public boolean itemLinkExists(ItemInstance itemInstance,
File destination)
InstanceService
itemLinkExists in interface InstanceServiceitemInstance - the item instancedestination - the destination
@Transactional public java.util.Set<ItemLink> getActiveItemLinks(ItemInstance instance)
InstanceService
getActiveItemLinks in interface InstanceServiceinstance - the instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||