it.sistematica.isharedoc.service
Class DocumentRecordServiceImpl

java.lang.Object
  extended by it.sistematica.isharedoc.service.DocumentRecordServiceImpl
All Implemented Interfaces:
DocumentRecordService

@Service(value="documentRecordService")
public class DocumentRecordServiceImpl
extends java.lang.Object
implements DocumentRecordService


Field Summary
(package private)  it.neverworks.data.EntityManager entities
           
(package private)  it.neverworks.scripting.PythonEnvironment pythonEnvironment
           
(package private)  org.hibernate.SessionFactory sessionFactory
           
 
Constructor Summary
DocumentRecordServiceImpl()
           
 
Method Summary
 DocumentSequence createSequence(java.lang.String sequenceDefinitionName, int year)
          Creates the sequence.
 DocumentSequence getCurrentSequence(java.lang.String sequenceDefinitionName)
          Gets the current sequence.
 java.lang.String incrementSequence(java.lang.String sequenceDefinitionName)
          Increment sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entities

it.neverworks.data.EntityManager entities

pythonEnvironment

it.neverworks.scripting.PythonEnvironment pythonEnvironment

sessionFactory

org.hibernate.SessionFactory sessionFactory
Constructor Detail

DocumentRecordServiceImpl

public DocumentRecordServiceImpl()
Method Detail

createSequence

@Transactional
public DocumentSequence createSequence(java.lang.String sequenceDefinitionName,
                                                     int year)
Description copied from interface: DocumentRecordService
Creates the sequence.

Specified by:
createSequence in interface DocumentRecordService
Parameters:
sequenceDefinitionName - the sequence definition name
year - the year
Returns:
the document sequence

getCurrentSequence

@Transactional
public DocumentSequence getCurrentSequence(java.lang.String sequenceDefinitionName)
Description copied from interface: DocumentRecordService
Gets the current sequence.

Specified by:
getCurrentSequence in interface DocumentRecordService
Parameters:
sequenceDefinitionName - the sequence definition name
Returns:
the current sequence

incrementSequence

@Transactional
public java.lang.String incrementSequence(java.lang.String sequenceDefinitionName)
Description copied from interface: DocumentRecordService
Increment sequence.

Specified by:
incrementSequence in interface DocumentRecordService
Parameters:
sequenceDefinitionName - the sequence definition name
Returns:
the string