public class DataService extends Object
| Constructor and Description |
|---|
DataService() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignOwner(int recordId,
Integer ownerId) |
RecordProxy |
checkoutRecord(int id,
Integer stepNumber,
boolean forceUnlock) |
void |
clearActiveRecord()
remove the active record from the current session
|
RecordProxy |
createRecord(String rootEntityName,
String versionName,
CollectRecord.Step recordStep) |
void |
deleteRecord(int id) |
protected void |
demote(CollectRecord.Step toStep) |
void |
demoteToCleansing() |
void |
demoteToEntry() |
List<CodeListItemProxy> |
findAssignableCodeListItems(int parentEntityId,
String attrName)
Gets the code list items assignable to the specified attribute.
|
List<CodeListItemProxy> |
findAssignableCodeListItems(int parentEntityId,
String attributeName,
String[] codes)
Finds a list of code list items assignable to the specified attribute and matching the passed codes
|
protected CollectRecord |
getActiveRecord() |
List<CodeListItemProxy> |
getCodeListItems(int parentEntityId,
String attrName,
String[] codes)
Gets the code list items assignable to the specified attribute and matching the specified codes.
|
protected Locale |
getCurrentLocale() |
protected RecordManager |
getRecordManager() |
protected RecordSessionManager |
getSessionManager() |
protected SessionState |
getSessionState() |
protected boolean |
isCurrentRecordIndexable() |
protected boolean |
isRecordIndexEnabled() |
RecordProxy |
loadRecord(int id,
Integer stepNumber) |
Map<String,Object> |
loadRecordSummaries(RecordFilterProxy filterProxy,
List<RecordSummarySortField> sortFields,
String localeStr) |
Map<String,Object> |
loadRecordSummaries(String rootEntityName,
int offset,
int maxNumberOfRows,
List<RecordSummarySortField> sortFields,
String[] keyValues) |
void |
moveNode(int nodeId,
int index) |
SurveyLockingJobProxy |
moveRecords(String rootEntity,
int fromStepNumber,
boolean promote) |
protected void |
prepareRecordIndexing() |
protected <T> NodeChangeSet |
processUpdateFieldRequest(NodeUpdateRequest.FieldUpdateRequest<T> r) |
protected void |
promote(CollectRecord.Step to) |
void |
promoteToAnalysis() |
void |
promoteToCleansing() |
void |
saveActiveRecord() |
List<String> |
searchAutoCompleteValues(int attributeDefnId,
int fieldIndex,
String searchText) |
NodeChangeSetProxy |
updateActiveRecord(NodeUpdateRequestSetProxy requestSet) |
protected NodeChangeSet |
updateRecord(CollectRecord record,
NodeUpdateRequest req) |
@Secured(value="ROLE_USER") public RecordProxy loadRecord(int id, Integer stepNumber)
@Secured(value="ROLE_ENTRY_LIMITED") public RecordProxy checkoutRecord(int id, Integer stepNumber, boolean forceUnlock) throws RecordPersistenceException, RecordIndexException
protected void prepareRecordIndexing()
throws RecordIndexException
RecordIndexException@Secured(value="ROLE_USER") public Map<String,Object> loadRecordSummaries(RecordFilterProxy filterProxy, List<RecordSummarySortField> sortFields, String localeStr)
@Secured(value="ROLE_USER") public Map<String,Object> loadRecordSummaries(String rootEntityName, int offset, int maxNumberOfRows, List<RecordSummarySortField> sortFields, String[] keyValues)
rootEntityName - offset - toIndex - orderByFieldName - filter - @Secured(value="ROLE_ENTRY") public RecordProxy createRecord(String rootEntityName, String versionName, CollectRecord.Step recordStep) throws RecordPersistenceException, RecordIndexException
@Transactional
@Secured(value="ROLE_ENTRY")
public void deleteRecord(int id)
throws RecordPersistenceException
RecordPersistenceException@Transactional
@Secured(value="ROLE_ENTRY_LIMITED")
public void saveActiveRecord()
throws RecordPersistenceException,
RecordIndexException
@Transactional @Secured(value="ROLE_ENTRY_LIMITED") public NodeChangeSetProxy updateActiveRecord(NodeUpdateRequestSetProxy requestSet) throws RecordPersistenceException, RecordIndexException
protected NodeChangeSet updateRecord(CollectRecord record, NodeUpdateRequest req) throws RecordPersistenceException
RecordPersistenceExceptionprotected <T> NodeChangeSet processUpdateFieldRequest(NodeUpdateRequest.FieldUpdateRequest<T> r)
@Transactional
@Secured(value="ROLE_ENTRY_LIMITED")
public void promoteToCleansing()
throws RecordPersistenceException,
RecordPromoteException
@Transactional
@Secured(value="ROLE_CLEANSING")
public void promoteToAnalysis()
throws RecordPersistenceException,
RecordPromoteException
protected void promote(CollectRecord.Step to) throws RecordPersistenceException, RecordPromoteException
protected boolean isRecordIndexEnabled()
protected boolean isCurrentRecordIndexable()
@Transactional
@Secured(value="ROLE_ANALYSIS")
public void demoteToCleansing()
throws RecordPersistenceException
RecordPersistenceException@Transactional
@Secured(value="ROLE_CLEANSING")
public void demoteToEntry()
throws RecordPersistenceException
RecordPersistenceExceptionprotected void demote(CollectRecord.Step toStep) throws RecordPersistenceException
RecordPersistenceException@Secured(value="ROLE_ENTRY_LIMITED") public void clearActiveRecord()
@Secured(value="ROLE_ENTRY_LIMITED")
public void moveNode(int nodeId,
int index)
@Secured(value="ROLE_USER") public List<CodeListItemProxy> getCodeListItems(int parentEntityId, String attrName, String[] codes)
parentEntityId - attrName - codes - @Secured(value="ROLE_USER") public List<CodeListItemProxy> findAssignableCodeListItems(int parentEntityId, String attrName)
parentEntityId - attrName - @Secured(value="ROLE_USER") public List<CodeListItemProxy> findAssignableCodeListItems(int parentEntityId, String attributeName, String[] codes)
parentEntityId - attributeName - codes - @Secured(value="ROLE_USER") public List<String> searchAutoCompleteValues(int attributeDefnId, int fieldIndex, String searchText) throws Exception
Exception@Secured(value="ROLE_CLEANSING")
public void assignOwner(int recordId,
Integer ownerId)
throws RecordLockedException,
MultipleEditException
@Secured(value="ROLE_CLEANSING") public SurveyLockingJobProxy moveRecords(String rootEntity, int fromStepNumber, boolean promote)
protected CollectRecord getActiveRecord()
protected Locale getCurrentLocale()
protected SessionState getSessionState()
protected RecordSessionManager getSessionManager()
protected RecordManager getRecordManager()
Copyright © 2020 Open Foris. All rights reserved.