public interface FileService
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCheckOut(Long fileId)
Metoda anuluje wprowadzanie zmian do dokumentu.
|
void |
changeFileIndexes(Long fileId,
Map<Long,Object> indexes)
Zmienia indeksy dokumentu.
|
void |
changeFileIndexes(Long fileId,
Map<Long,Object> indexes,
boolean saveAsNewVersion)
Zmienia indeksy dokumentu.
|
boolean |
changeFileIndexesWithResult(Long fileId,
Map<Long,Object> indexes,
boolean saveAsNewVersion)
Zmienia indeksy dokumentu.
|
boolean |
changeFileIndexesWithResult(Long fileId,
Map<Long,Object> indexes,
boolean saveAsNewVersion,
boolean exactIndexesCheck)
Zmienia indeksy dokumentu.
|
Long |
checkIn(DocumentDefinition fileDefinition,
Long parentFileId,
String comment)
Metoda zapisuje nową wersję pliku, który wcześniej pobraliśmy do zmiany.
|
void |
checkOut(Long fileId,
String userName)
Metoda zmienia dane w bazie danych odnośnie pobrania dokumentu do zmiany.
|
Map<String,Object> |
convertIndexIds(Map<Long,Object> indexes,
long documentClassId)
Zmienia klucze mapy będące id indeksów na nazwy indeksów
|
Map<Long,Object> |
convertIndexNames(Map<String,Object> indexes,
long documentClassId)
Zmienia klucze mapy będące nazwami indeksów na id indeksów
|
Map<Long,Object> |
convertIndexTypes(Map<Long,Object> indexes,
long documentClassId)
Konwertuje wartości indeksów na odpowiednie typy zgodne z definicją indeksu.
|
Map<Long,Object> |
convertIndexTypes(Map<Long,Object> indexes,
long documentClassId,
boolean addMissing)
Konwertuje wartości indeksów na odpowiednie typy zgodne z definicją indeksu.
|
void |
deleteFile(Long fileId)
Usuwa plik z systemu.
|
void |
detachFileFromActivity(Long fileId,
String processId,
String activityId)
Odłącza dokument od zadania.
|
void |
detachFileFromProcess(Long fileId,
String processId)
Odłącza dokument od procesu.
|
void |
detachFilesFromActivity(List<Long> fileIds,
String processId,
String activityId)
Odłącza dokumenty od zadania.
|
WfFile |
getFile(Long fileId,
String... joins)
Pobiera plik o podanym id
|
List<FileAction> |
getFileActions(String userName,
WfFile wfFile)
Metoda pobiera możliwe do wykonania akcje, dla podanego pliku, przez podanego użytkownika
|
Map<Long,Object> |
getFileIndexes(Long fileId,
Long dcId)
Pobiera indeksy pliku
|
InputStream |
getFileInputStream(Long fileId)
Pobiera strumień danych pliku
|
FileSaver |
getFileSaver()
Pobiera obiekt który pozwala zapisywać pliki w systemie
|
WfFileVersion |
getFileVersion(Long id)
Pobiera obiekt wersji
|
Map<String,Object> |
getIndexData(long fileId,
long documentClassId)
Pobiera rekord z tabeli pm_idx000
|
WfFileVersion |
getVersionForFile(Long fileId)
Pobiera obiekt wersji dla pliku
|
void |
updateFile(WfFile file)
Modyfikuje obiekt pliku.
|
WfFile getFile(Long fileId, String... joins)
fileId - Id plikujoins - Określa, które elementy mamy dołączyć do obiektu.void updateFile(WfFile file)
file - Definicja pliku.void deleteFile(Long fileId)
fileId - Id plikuvoid detachFileFromProcess(Long fileId, String processId)
fileId - Id pliku.processId - Id procesu.void detachFileFromActivity(Long fileId, String processId, String activityId)
fileId - Id pliku.processId - Id procesuactivityId - Id zadaniavoid detachFilesFromActivity(List<Long> fileIds, String processId, String activityId)
fileIds - Lista id plików.processId - Id procesuactivityId - Id zadaniaWfFileVersion getVersionForFile(Long fileId)
fileId - Id pliku (z pm_files)WfFileVersion getFileVersion(Long id)
id - Id wersji plikuvoid changeFileIndexes(Long fileId, Map<Long,Object> indexes)
fileId - Id plikuindexes - Mapa indeksów dokumentu. Klucz to id indeksu, typ wartości musi zgadzać się z typem indeksu)void changeFileIndexes(Long fileId, Map<Long,Object> indexes, boolean saveAsNewVersion)
fileId - Id plikuindexes - Mapa indeksów dokumentu. Klucz to id indeksu, typ wartości musi zgadzać się z typem indeksu)saveAsNewVersion - true jeżeli podpiąć istniejący dokument jako nową wersję pliku o takich samych indeksachboolean changeFileIndexesWithResult(Long fileId, Map<Long,Object> indexes, boolean saveAsNewVersion)
fileId - Id plikuindexes - Mapa indeksów dokumentu. Klucz to id indeksu, typ wartości musi zgadzać się z typem indeksu)saveAsNewVersion - true jeżeli podpiąć istniejący dokument jako nową wersję pliku o takich samych indeksachboolean changeFileIndexesWithResult(Long fileId, Map<Long,Object> indexes, boolean saveAsNewVersion, boolean exactIndexesCheck)
fileId - Id plikuindexes - Mapa indeksów dokumentu. Klucz to id indeksu, typ wartości musi zgadzać się z typem indeksu)saveAsNewVersion - true jeżeli podpiąć istniejący dokument jako nową wersję pliku o takich samych indeksachexactIndexesCheck - czy przy próbie sprawdzania poprzedniej wersji dokumentu uwzględniać null'e w pozostałych indeksachMap<Long,Object> convertIndexTypes(Map<Long,Object> indexes, long documentClassId)
indexes - Mapa indeksówdocumentClassId - Id klasy dokumentówMap<Long,Object> convertIndexTypes(Map<Long,Object> indexes, long documentClassId, boolean addMissing)
indexes - Mapa indeksówdocumentClassId - Id klasy dokumentówaddMissing - Czy uzupełnic mapę indeksów aby zawierała wszystkie indeksy zdefiniowane dla klasy dokumentów (z wartością null)Map<Long,Object> convertIndexNames(Map<String,Object> indexes, long documentClassId)
indexes - Mapa wejściowadocumentClassId - Id klasy dokumentówMap<String,Object> convertIndexIds(Map<Long,Object> indexes, long documentClassId)
indexes - Mapa wejściowadocumentClassId - Id klasy dokumentówMap<String,Object> getIndexData(long fileId, long documentClassId)
fileId - Id plikudocumentClassId - Id klasy dokumentówvoid checkOut(Long fileId, String userName)
fileId - Id plikuuserName - Login użytkownikavoid cancelCheckOut(Long fileId)
fileId - Id plikuLong checkIn(DocumentDefinition fileDefinition, Long parentFileId, String comment) throws Exception
fileDefinition - Definicja nowego plikuparentFileId - Id pliku rodzica, który chcemy zmienićcomment - KomentarzaExceptionFileSaver getFileSaver()
Map<Long,Object> getFileIndexes(Long fileId, Long dcId)
fileId - Id plikudcId - Id klasy dokumentówList<FileAction> getFileActions(String userName, WfFile wfFile)
userName - Login użytkownikawfFile - PlikInputStream getFileInputStream(Long fileId)
fileId - id plikuCopyright © 2023 Suncode. All rights reserved.