@Deprecated public class ArchiveServices extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log
Deprecated.
|
| Constructor and Description |
|---|
ArchiveServices()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
AddFileToArchive(String sClassName,
String[] asIndicies,
byte[] bytes,
String sFileName,
String sDescription,
String sNewVersion,
String sLogin)
Deprecated.
Metoda dodajaca dokument do archiwum do okreslonej klasy dokumentow
|
static int |
AddFileToArchive(String sClassName,
String[] asIndicies,
File fFile,
String sDescription,
String sNewVersion,
String sLogin)
Deprecated.
Metoda dodajaca dokument do archiwum do okreslonej klasy dokumentow
|
static int |
AddFileToArchiveWS(String sURL,
String sClassId,
Object[] asIndexes,
File fFile,
String sDescription,
String sNewVersion,
String sLogin,
String sPassword)
Deprecated.
Funkcja dodajaca dokument do archiwum w innym systemie workflow za pomoca werb service'u
|
static long |
AddFileToProcess(String processId,
String activityId,
String docClassName,
String description,
String hmMapping,
boolean bNewVersion,
String uploader,
String tempFileLocation,
String orgFileName)
Deprecated.
Funkcja dodaje dokument do archiwum i podlacza go do procesu
|
static long |
AddFileToProcess(String processId,
String activityId,
String docClassName,
String description,
String hmMapping,
boolean bNewVersion,
String uploader,
String tempFileLocation,
String orgFileName,
boolean bOnlyDT)
Deprecated.
Funkcja dodaje dokument do archiwum i podlacza go do procesu
|
static long |
AddFileToProcess(String processId,
String activityId,
String docClassName,
String description,
String hmMapping,
boolean bNewVersion,
String uploader,
String tempFileLocation,
String orgFileName,
boolean bOnlyDT,
boolean bExecuteActions)
Deprecated.
Funkcja dodaje dokument do archiwum i podlacza go do procesu
|
static boolean |
ChangeDescriptionForFile(String sFileId,
String sDescription)
Deprecated.
Funkcja ustawia opis dla dokumentu
|
static String |
CheckIfDocumentExists(String sClassName,
String[] indexes)
Deprecated.
Metoda sprawdzajaca, czy dany dokument istnieje w systemie w okreslonej klasie dokumentow
|
static String |
CheckIfDocumentExistsWS(String sURL,
String sDestClass,
String[] indexes,
String sLogin,
String sPassword)
Deprecated.
Metoda sprawdzajaca, czy dokument istnieje w innym systemie workflow za pomoca web service'u
|
static String |
CheckVersionWS(String sURL,
String sFoundFileId,
String sLogin,
String sPassword)
Deprecated.
Funkcja sprawdzajaca wersje dokumentu w innym systemie workflow za pomoca web service'u
|
static Object[] |
ConnectIndexesWithIDs(String[] indeciesIDs,
String[] indeciesValuesForDocument)
Deprecated.
Funkcja laczaca indeksy dla dokumentu z jednego systemu workflow z drugim
|
static long |
CreateIndexForDocClass(String docClassId,
String sIndexName,
String sIndexDesc,
String sIndexType,
String sIndexStartValue)
Deprecated.
Funkcja tworzaca indeks w danej klasie dokumentow, zwraca identyfikator utworzonego indeksu
|
static boolean |
DeleteDocumentFromArchive(String sFileId)
Deprecated.
|
static boolean |
DoesActionExist(String sDocClassId,
String sActionName)
Deprecated.
Funkcja informuje, czy akcja na dokumencie istnieje juz w danej klasie dokumentow
|
static boolean |
DoesDeviceExist(String deviceName)
Deprecated.
Sprawdza czy urządzenie istnieje
|
static boolean |
DoesDirectoryExist(String dirName,
String deviceName)
Deprecated.
Sprawdza czy katalog istnieje
|
static boolean |
DoesDocClassExist(String sDocClassName)
Deprecated.
Funkcja informuje, czy dana klasa dokumentow istnieje w systemie
|
static boolean |
DoesDocumentViewExist(String sViewName,
String sProcDefId)
Deprecated.
Funkcja informujaca, czy dany widok dokumentow istnieje juz dla danego procesu
|
static boolean |
DoesLinkExist(String sLinkName)
Deprecated.
Funkcja informujaca czy zestaw dokumentow o danej nazwie istnieje w systemie
|
static boolean |
DoesTemplateExistForProcess(String sProcDefId,
String sDocTemplateName)
Deprecated.
Funkcja informuje, czy szablon dokumentu istnieje dla danego procesu
|
static String |
encodeFileId(Long fileId)
Deprecated.
Szyfruje nazwę pliku za pomocą Base64
|
static ArrayList<DocumentData> |
FindDocumentsInDocClass(String sDocClassName,
String sFrom,
String sTo)
Deprecated.
Funkcja szukajaca dokumentow w danej klasie dodanych w zdefiniowanym przedziale czasowym
|
static ArrayList<String> |
FindDocumentsWS(String sURL,
String sClassName,
String sFrom,
String sTo,
String[] indexes,
String sLogin,
String sPassword,
String sDomain)
Deprecated.
Funkcja wyszukujaca dokumenty w podanej klasie dokumentow w innym systemie Workflow na podstawie czasu dodania
dokumentu do archiwum i indeksow
|
static ArrayList<IndexData> |
GetAllIndexesForDocument(String sFileId)
Deprecated.
Funkcja zwraca informacje o indeksach dokumentu dla podanego identyfikatora pliku
|
static List<WfFileVersion> |
GetAllVersionsOfFile(Long fileId)
Deprecated.
Metoda zwracajaca wszystkie wersje danego dokumentu
|
static String |
GetCommentForFile(String sFileId)
Deprecated.
Funkcja zwraca komentarz dla dokumentu
|
static String[] |
GetDocClassesIDsWithNamesWS(String sURL,
String sLogin,
String sPassword)
Deprecated.
Funkcja zwracajaca identyfikatory klas dokumentow wraz z ich nazwami w innym systemie za pomoca web service'u
|
static String |
GetDocClassNameForDocument(String sFileId)
Deprecated.
Funkcja zwraca nazwe klasy dokumentow, w ktorej dodany jest plik o okreslonym identyfikatorze
|
static String |
GetDocIdForDocument(String sFileId)
Deprecated.
Funkcja zwraca identyfikator dokumentu dla podanego identyfikatora pliku
|
static PlusWorkflowDocument |
GetDocument(String sFileId)
Deprecated.
Funkcja zwraca obiekt PlusWorkflowDocument dla danego dokumentu
|
static List<String> |
GetDocumentsAddedInActivity(org.enhydra.shark.api.SharkTransaction st,
String processId,
String activityId)
Deprecated.
Funkcja zwraca identyfikatory plikow wszystkich dokumentow dodanych w konkretnym zadaniu
|
static List<String> |
GetDocumentsAddedInActivity(String processId,
String activityId)
Deprecated.
Funkcja zwraca identyfikatory plikow wszystkich dokumentow dodanych w konkretnym zadaniu
|
List<ExtendedFile> |
getDocumentsFromProcess(String processId,
String activityId)
Deprecated.
Należy używać DocumentService
|
static DocumentVersions |
GetDocumentVersions(String sFileId)
Deprecated.
Funkcja zwraca wszystkie wersje danego dokumentu od najstarszej do najnowszej (nowsze i starsze) w postaci
obiektu DocumentVersions zawierajacego tablice obiektow PlusWorkflowDocument
|
static PlusWorkflowDocument |
GetDocumentWS(String sURL,
String sFileId,
String sLogin,
String sPassword,
String sDomain)
Deprecated.
Funkcja pobiera za pomoca wer service'u dokument z innego systemu Workflow.
|
static String |
GetExpirationDateForDocument(String sFileId)
Deprecated.
Funkcja zwraca date wygasnieca dokumentu
|
static WfFile |
getFileByEncodedId(String code)
Deprecated.
Pobiera plik po zakodowanej nazwie
|
static String[] |
GetIndeciesIDsWithNamesWS(String sURL,
String sDocClassId,
String sLogin,
String sPassword)
Deprecated.
Funkcja zwracajaca identyfikatory idneksow wraz z ich nazwami dla danej klasy dokumentow w innym systemie
workflow za pomoca web service'u
|
static Long |
GetIndexIdForDocClass(String sClassName,
String sIndex)
Deprecated.
Sprawdza, czy indeks o okreslonej nazwie istnieje w danej klasie dokumentow, zwracajac jego id
|
static String |
GetNewestVersionDocFileId(String docClassName,
String docId)
Deprecated.
Metoda zwracajaca identyfikator pliku najnowszej wersji dokumentu
|
static String |
GetStateForFile(String sFileId)
Deprecated.
Funkcja zwraca stan dokumentu
|
static String |
GetVersionForFile(String fileId)
Deprecated.
Metoda zwracajaca numer wersji dokumentu na podstawie jego identyfikatora
|
static boolean |
MoveDocIdsBetweenDocClasses(org.enhydra.shark.api.SharkTransaction st,
String DocIds,
String sourceDocClassName,
String destDocClassName,
boolean bCopyIndexes,
boolean bExecuteAddActions)
Deprecated.
Funkcja przenosi wszystkie dokumenty z okreslonej klasy dokumentow do wskazanej klasy dokumentow
|
static boolean |
MoveDocIdsBetweenDocClasses(String DocIds,
String sourceDocClassName,
String destDocClassName,
boolean bCopyIndexes,
boolean bExecuteAddActions)
Deprecated.
Funkcja przenosi wszystkie dokumenty z okreslonej klasy dokumentow do wskazanej klasy dokumentow
|
static boolean |
MoveDocumentBetweenDocClasses(org.enhydra.shark.api.SharkTransaction st,
String sFileId,
String destDocClassName,
boolean bCopyIndexes)
Deprecated.
Funkcja przenosi okreslony dokument z klas dokumentow, w ktorych wystepuje do nowej klasy dokumentow.
|
static boolean |
MoveDocumentBetweenDocClasses(org.enhydra.shark.api.SharkTransaction st,
String sFileId,
String destDocClassName,
boolean bCopyIndexes,
boolean bExecuteAddActions)
Deprecated.
Funkcja przenosi okreslony dokument z klas dokumentow, w ktorych wystepuje do nowej klasy dokumentow.
|
static boolean |
MoveDocumentBetweenDocClasses(String sFileId,
String destDocClassName,
boolean bCopyIndexes)
Deprecated.
Funkcja przenosi okreslony dokument z klas dokumentow, w ktorych wystepuje do nowej klasy dokumentow.
|
static boolean |
MoveDocumentBetweenDocClasses(String sFileId,
String destDocClassName,
boolean bCopyIndexes,
boolean bExecuteAddActions)
Deprecated.
Funkcja przenosi okreslony dokument z klas dokumentow, w ktorych wystepuje do nowej klasy dokumentow.
|
static boolean |
MoveDocumentWS(String sURL,
String sFileId,
String sDestClassName,
boolean bCopyIndexes,
String sLogin,
String sPassword,
String sDomain)
Deprecated.
Funkcja przenoszaca za pomoca web service'u dokument o okreslonym identyfikatorze do podanej klasy dokumentow
|
static String[] |
PrepareIndeciesValuesForKeys(String sDocClassId,
String sFileId,
String sKeys)
Deprecated.
Funkcja laczaca nazwe indeksu z jego wartoscia dla danego dokumentu (podawane fileId)
|
static boolean |
RemoveDocumentFromDocClass(String sDocClassName,
String sFileId)
Deprecated.
Funkcja usuwa plik z okreslonej klasy dokumentow (nie usuwa go z procesow)
|
static int |
SaveAsNewVersion(String sFileId,
String sFileName,
String sPageCount,
String sDescription,
String sOCRContent,
String sLogin,
byte[] bytes)
Deprecated.
Funkcja zapisujaca dokument jako nowa wersje dokumentu na podstawie podanego identyfikatora pliku
|
static boolean |
SaveCommentForFile(String sFileId,
String sComment)
Deprecated.
Funkcja zapisuje nowy komentarz dla dokumentu
|
static int |
TransferFileToArchive(String sURL,
String sFileId,
String sLogin,
String sPassword,
String sDomain,
String sClassName,
String sNewVersion,
String[] asIndicies)
Deprecated.
Funkcja transferuje plik z innego systemu Workflow i zapisuje go w obecnym systemie w okreslonej klasie
dokumentow wraz z indeksami
|
static boolean |
UpdateDocumentContent(String sFileId,
byte[] bytes)
Deprecated.
Funkcja zmienia zawartosc dokumentu
|
public static boolean DoesDeviceExist(String deviceName) throws Exception
deviceName - Nazwa urządzeniaExceptionpublic static boolean DoesDirectoryExist(String dirName, String deviceName) throws Exception
dirName - Nazwa katalogudeviceName - Nazwa urządzeniaExceptionpublic static boolean DoesDocClassExist(String sDocClassName) throws Exception
sDocClassName - - nazwa klasy dokumentowExceptionpublic static boolean DoesActionExist(String sDocClassId, String sActionName) throws Exception
sDocClassId - - identyfikator klasy dokumentowsActionName - - nazwa akcjiExceptionpublic static boolean DoesTemplateExistForProcess(String sProcDefId, String sDocTemplateName) throws Exception
sProcDefId - - identyfikator definicji procesusDocTemplateName - - nazwa szablonu dokumentuExceptionpublic static boolean DoesLinkExist(String sLinkName) throws Exception
sLinkName - - nazwa zestawu dokumentowExceptionpublic static boolean DoesDocumentViewExist(String sViewName, String sProcDefId) throws Exception
sViewName - - nazwa widoku dokumentowsProcDefId - - identyfikator definicji procesuExceptionpublic static long CreateIndexForDocClass(String docClassId, String sIndexName, String sIndexDesc, String sIndexType, String sIndexStartValue)
docClassId - - identyfikator klasy dokumentowsIndexName - - nazwa indeksusIndexDesc - - opis indeksusIndexType - - typ indeksusIndexStartValue - - wartosc poczatkowa indeksupublic static Long GetIndexIdForDocClass(String sClassName, String sIndex)
sClassName - - nazwa klasy dokumentowsIndex - - nazwa indeksupublic static ArrayList<DocumentData> FindDocumentsInDocClass(String sDocClassName, String sFrom, String sTo)
sDocClassName - - nazwa klasy dokumentowsFrom - - data od kiedy szukac dodanych dokumentowsTo - - data do kiedy szukac dodanych dokumentowpublic static String GetDocClassNameForDocument(String sFileId)
sFileId - - identyfikator plikupublic static String GetDocIdForDocument(String sFileId)
sFileId - - identyfikator plikupublic static ArrayList<IndexData> GetAllIndexesForDocument(String sFileId)
sFileId - - identyfikator plikupublic static String GetExpirationDateForDocument(String sFileId)
sFileId - - identyfikator plikupublic static String GetVersionForFile(String fileId)
fileId - - identyfikator plikupublic static String GetCommentForFile(String sFileId)
sFileId - - identyfikator plikupublic static String GetStateForFile(String sFileId)
sFileId - - identyfikator plikupublic static List<WfFileVersion> GetAllVersionsOfFile(Long fileId)
fileId - - identyfikator plikupublic static DocumentVersions GetDocumentVersions(String sFileId)
sFileId - - identyfikator plikupublic static String GetNewestVersionDocFileId(String docClassName, String docId)
docClassName - - nazwa klasy dokumentowdocId - - identyfiaktor dokumentupublic static boolean ChangeDescriptionForFile(String sFileId, String sDescription)
sFileId - - identyfikator plikusDescription - - nowy opis dokumentupublic static boolean SaveCommentForFile(String sFileId, String sComment)
sFileId - - identyfikator plikusComment - - nowy komentarz dla plikupublic static List<String> GetDocumentsAddedInActivity(String processId, String activityId) throws Exception
processId - - identyfikator procesuactivityId - - identyfikator zadaniaExceptionpublic static List<String> GetDocumentsAddedInActivity(org.enhydra.shark.api.SharkTransaction st, String processId, String activityId) throws Exception
st - - transakcja SharkprocessId - - identyfikator procesuactivityId - - identyfikator zadaniaExceptionpublic static String[] PrepareIndeciesValuesForKeys(String sDocClassId, String sFileId, String sKeys)
sDocClassId - - identyfikator klasy dokumnetowsFileId - - identyfikator plikusKeys - - nazwy indeksow rozdzielone przecinkamipublic static Object[] ConnectIndexesWithIDs(String[] indeciesIDs, String[] indeciesValuesForDocument)
indeciesIDs - - tablica z docelowego workflow postaci id_indeksu;nazwa_indeksuindeciesValuesForDocument - - tablica ze zrodlowego workflow postaci nazwa_indeksu=wartosc_indeksupublic static String CheckIfDocumentExists(String sClassName, String[] indexes)
sClassName - - nazwa klasy dokumentowindexes - - tablica indeksow postaci nazwa_indeksu=wartosc_indeksupublic static PlusWorkflowDocument GetDocument(String sFileId)
sFileId - - identyfikator plikupublic static int AddFileToArchive(String sClassName, String[] asIndicies, byte[] bytes, String sFileName, String sDescription, String sNewVersion, String sLogin)
sClassName - - nazwa klasy dokumentowasIndicies - - tablica indeksow postaci id_indeksu=wartosc_indeksubytes - - tablica bajtow dokumentusFileName - - nazwa plikusDescription - - opis dokumentu w archiwumsNewVersion - - czy dodawac jako nowa wersja, jesli wartosci indeksow sie powtarzaja (TRUE - jesli tak)sLogin - - login uzytkownika dodajacego dokument do archiwum (musi posiadac prawa do archiwum i klas
dokumentow)public static int AddFileToArchive(String sClassName, String[] asIndicies, File fFile, String sDescription, String sNewVersion, String sLogin)
sClassName - - nazwa klasy dokumentowasIndicies - - tablica indeksow postaci id_indeksu=wartosc_indeksufFile - - obiekt pliku dodawanego dokumentusDescription - - opis dokumentu w archiwumsNewVersion - - czy dodawac jako nowa wersja, jesli wartosci indeksow sie powtarzaja (TRUE - jesli tak)sLogin - - login uzytkownika dodajacego dokument do archiwum (musi posiadac prawa do archiwum i klas
dokumentow)public static int TransferFileToArchive(String sURL, String sFileId, String sLogin, String sPassword, String sDomain, String sClassName, String sNewVersion, String[] asIndicies)
sURL - - adres systemu Workflow, z ktorego pobierany jest dokumentsFileId - - identyfikator pliku w systemie docelowymsLogin - - login uzytkownika do systemu docelowegosPassword - - haslo dla uzytkownikasDomain - - domena dla uzytkownika, null jesli jest to uzytkownik niedomenowysClassName - - nazwa klasy dokumentow, do ktorej ma zostac dodany pobrany pliksNewVersion - - czy plik ma byc dodawany jako nowa wersja dokumentu, jesli to mozliwe, TRUE - jesli jako
nowa wersjaasIndicies - - tablica mapowan indeksow postaci id_indeksu=wartosc_indeksupublic static int SaveAsNewVersion(String sFileId, String sFileName, String sPageCount, String sDescription, String sOCRContent, String sLogin, byte[] bytes)
sFileId - - identyfikator pliku dokumentu bazowegosFileName - - nazwa plikusPageCount - - ilosc stronsDescription - - opis dokumentusOCRContent - - zawartosc OCRsLogin - - login uzytkownika dodajacego dokument do archiwumbytes - - bajty dokumentupublic static boolean UpdateDocumentContent(String sFileId, byte[] bytes)
sFileId - - identyfikator plikubytes - - tablica bajtowpublic static boolean MoveDocIdsBetweenDocClasses(String DocIds, String sourceDocClassName, String destDocClassName, boolean bCopyIndexes, boolean bExecuteAddActions)
DocIds - - identyfikatory plikow rozdzielone przecinkiemsourceDocClassName - - zrodlowa klasa dokumentow (do niej musi nalezec dokument, zeby zostac przeniesionym)destDocClassName - - docelowa klasa dokumentowbCopyIndexes - - czy kopiowac indeksy o tych samych nazwach i typach (true - jesli kopiowac)bExecuteAddActions - - czy wykonywac akcje na dokumencie dodanym do docelowej klasy dokumentow (true - jesli
wykonywac)public static boolean MoveDocIdsBetweenDocClasses(org.enhydra.shark.api.SharkTransaction st,
String DocIds,
String sourceDocClassName,
String destDocClassName,
boolean bCopyIndexes,
boolean bExecuteAddActions)
st - - transakcja SharkDocIds - - identyfikatory plikow rozdzielone przecinkiemsourceDocClassName - - zrodlowa klasa dokumentow (do niej musi nalezec dokument, zeby zostac przeniesionym)destDocClassName - - docelowa klasa dokumentowbCopyIndexes - - czy kopiowac indeksy o tych samych nazwach i typach (true - jesli kopiowac)bExecuteAddActions - - czy wykonywac akcje na dokumencie dodanym do docelowej klasy dokumentow (true - jesli
wykonywac)public static boolean MoveDocumentBetweenDocClasses(String sFileId, String destDocClassName, boolean bCopyIndexes)
sFileId - - identyfikator plikudestDocClassName - - nazwa docelowej klasy dokumentowbCopyIndexes - - czy kopiowac indeksy o tych samych nazwach i typach (true - jesli kopiowac)public static boolean MoveDocumentBetweenDocClasses(String sFileId, String destDocClassName, boolean bCopyIndexes, boolean bExecuteAddActions)
st - - transakcja SharksFileId - - identyfikator plikudestDocClassName - - nazwa docelowej klasy dokumentowbCopyIndexes - - czy kopiowac indeksy o tych samych nazwach i typach (true - jesli kopiowac)bExecuteAddActions - - czy wykonywac akcje na dokumencie dodanym do docelowej klasy dokumentow (true - jesli
wykonywac)public static boolean MoveDocumentBetweenDocClasses(org.enhydra.shark.api.SharkTransaction st,
String sFileId,
String destDocClassName,
boolean bCopyIndexes)
st - - transakcja SharksFileId - - identyfikator plikudestDocClassName - - nazwa docelowej klasy dokumentowbCopyIndexes - - czy kopiowac indeksy o tych samych nazwach i typach (true - jesli kopiowac)public static boolean MoveDocumentBetweenDocClasses(org.enhydra.shark.api.SharkTransaction st,
String sFileId,
String destDocClassName,
boolean bCopyIndexes,
boolean bExecuteAddActions)
st - - transakcja SharksFileId - - identyfikator plikudestDocClassName - - nazwa docelowej klasy dokumentowbCopyIndexes - - czy kopiowac indeksy o tych samych nazwach i typach (true - jesli kopiowac)bExecuteAddActions - - czy wykonywac akcje na dokumencie dodanym do docelowej klasy dokumentow (true - jesli
wykonywac)public static boolean RemoveDocumentFromDocClass(String sDocClassName, String sFileId)
sDocClassName - - nazwa klasy dokumentowsFileId - - identyfikator plikupublic static boolean DeleteDocumentFromArchive(String sFileId) throws CUFException, Exception
CUFExceptionExceptionpublic static long AddFileToProcess(String processId, String activityId, String docClassName, String description, String hmMapping, boolean bNewVersion, String uploader, String tempFileLocation, String orgFileName)
processId - - identyfikator procesuactivityId - - identyfikator zadaniadocClassName - - nazwa klasy dokumentowdescription - - opis dokumentuhmMapping - - mapowanie indeksow postaci nazwa_indeksu=wartosc;nazwa_indeksu=wartosc itd.bNewVersion - - true lub false, czy dodawac jako nowa wersja dokumentu, gdy indeksy sie powtarzajauploader - - wlasciciel plikutempFileLocation - - sciezka, gdzie jest zlokalizowany plikorgFileName - - oryginalna nazwa plikupublic static long AddFileToProcess(String processId, String activityId, String docClassName, String description, String hmMapping, boolean bNewVersion, String uploader, String tempFileLocation, String orgFileName, boolean bOnlyDT)
processId - - identyfikator procesuactivityId - - identyfikator zadaniadocClassName - - nazwa klasy dokumentowdescription - - opis dokumentuhmMapping - - mapowanie indeksow postaci nazwa_indeksu=wartosc;nazwa_indeksu=wartosc itd.bNewVersion - - true lub false, czy dodawac jako nowa wersja dokumentu, gdy indeksy sie powtarzajauploader - - wlasciciel plikutempFileLocation - - sciezka, gdzie jest zlokalizowany plikorgFileName - - oryginalna nazwa plikubOnlyDT - - true lub false, true - jezeli dokument bedzie dodany tylko do tabeli dynamicznej (dla true nie
bedzie podlaczany do procesu)public static long AddFileToProcess(String processId, String activityId, String docClassName, String description, String hmMapping, boolean bNewVersion, String uploader, String tempFileLocation, String orgFileName, boolean bOnlyDT, boolean bExecuteActions)
processId - - identyfikator procesuactivityId - - identyfikator zadaniadocClassName - - nazwa klasy dokumentowdescription - - opis dokumentuhmMapping - - mapowanie indeksow postaci nazwa_indeksu=wartosc;nazwa_indeksu=wartosc itd.bNewVersion - - true lub false, czy dodawac jako nowa wersja dokumentu, gdy indeksy sie powtarzajauploader - - wlasciciel plikutempFileLocation - - sciezka, gdzie jest zlokalizowany plikorgFileName - - oryginalna nazwa plikubOnlyDT - - true lub false, true - jezeli dokument bedzie dodany tylko do tabeli dynamicznej (dla true nie
bedzie podlaczany do procesu)bExecuteActions - - true lub false, true - jezeli wykonywac akcje w klasie dokumentow po dodaniu dokumentu
do archiwumpublic static String CheckIfDocumentExistsWS(String sURL, String sDestClass, String[] indexes, String sLogin, String sPassword)
sURL - - URL systemu docelowegosDestClass - - nazwa klasy dokumentow w systemie docelowymindexes - - tablica indeksow postaci id_indeksu=wartosc_indeksusLogin - - login uzytkownika w systemie docelowymsPassword - - haslo dla uzytkownika w systemie docelowympublic static String[] GetDocClassesIDsWithNamesWS(String sURL, String sLogin, String sPassword)
sURL - - URL systemu docelowegosLogin - - login uzytkownika w systemie docelowymsPassword - - haslo dla uzytkownika w systemie docelowympublic static String[] GetIndeciesIDsWithNamesWS(String sURL, String sDocClassId, String sLogin, String sPassword)
sURL - - URL systemu docelowegosDocClassId - - identyfikator klasy dokumentowsLogin - - login uzytkownika w docelowym systemiesPassword - - haslo dla uzytkownika w docelowym systemiepublic static String CheckVersionWS(String sURL, String sFoundFileId, String sLogin, String sPassword)
sURL - - URL systemu docelowegosFoundFileId - - identyfikator plikusLogin - - login uzytkownika w docelowym systemiesPassword - - haslo dla uzytkownika w docelowym systemiepublic static int AddFileToArchiveWS(String sURL, String sClassId, Object[] asIndexes, File fFile, String sDescription, String sNewVersion, String sLogin, String sPassword)
sURL - - URL systemu docelowegosClassId - - identyfikator klasy dokumentow w systemie docelowymasIndexes - - tablica obiektow indeksow postaci id_indeksu=wartosc_indeksufFile - - obiektu pliku dodawanego dokumentusDescription - - opis dokumentu w archiwumsNewVersion - - czy dodawac dokument jako nowa wersja, jesli wartosci indeksow sie powtarzaja (TRUE - jesli
tak)sLogin - - login uzytkownika w docelowym systemiesPassword - - haslo dla uzytkownika w docelowym systemiepublic static ArrayList<String> FindDocumentsWS(String sURL, String sClassName, String sFrom, String sTo, String[] indexes, String sLogin, String sPassword, String sDomain)
sURL - - adres systemu WorkflowsClassName - - nazwa klasy dokumentow w docelowym systemie WorkflowsFrom - - dolny zakres daty wyszukiwaniasTo - - gorny zakres daty wyszukiwaniaindexes - - tablica indeksow postaci nazwa_indeksu=wartosc_indeksu, null jesli znalezc wszystkie dokumenty w
danej klasiesLogin - - login uzytkownika do systemu WorkflowsPassword - - haslo dla uzytkownikasDomain - - domena uzytkownika, null jesli jest to uzytkownik bezdomenowypublic static boolean MoveDocumentWS(String sURL, String sFileId, String sDestClassName, boolean bCopyIndexes, String sLogin, String sPassword, String sDomain)
sURL - - adres systemu WorkflowsFileId - - identyfikator pliku w systemie docelowymsDestClassName - - nazwa docelowej klasy dokumentowbCopyIndexes - - czy kopiowac indeksy o tych samych nazwach, true jesli taksLogin - - login uzytkownika do systemu WorkflowsPassword - - haslo dla uzytkownikasDomain - - domena uzytkownika, null jesli jest to uzytkownik bezdomenowypublic static PlusWorkflowDocument GetDocumentWS(String sURL, String sFileId, String sLogin, String sPassword, String sDomain)
sURL - - adres systemu WorkflowsFileId - - identyfikator pliku w docelowym systemie WorkflowsLogin - - login uzytkownika do systemusPassword - - haslo dla uzytkownikasDomain - - nazwa domeny, null jesli uzytkownik jest bezdomenowypublic List<ExtendedFile> getDocumentsFromProcess(String processId, String activityId)
public static String encodeFileId(Long fileId)
fileId - Id plikuCopyright © 2022 Suncode. All rights reserved.