Polish |
---|
Zastąpienie klasy LinkTable klasą Link
Od wersji 4.0.23 systemu klasa LinkTable została w całości usunięta i zastąpiona przez klasę Link. Obie klasy reprezentują obiekty z tabeli pm_links. W celu dostosowania funkcji wykorzystujących usuniętą klasę LinkTable, należy zamienić wszelkie odwołania do klasy LinkTable na odwołania do klasy Link. Poniższa tabela zawiera informacje o różnicach w definicji klasy: Typ i nazwa pola w klasie LinkTable | Typ i nazwa pola w klasie Link | Nazwa kolumny w tabeli pm_links |
---|
String linkName | String name | linkname | String linkDescription | String description | linkdescription |
Ponadto w wersji 4.0.23 usunięte zostały wszystkie metody operujące na obiektach klasy LinkTable. Metody te zostały zastąpione przez metody z komponentu Springa LinkService. Poniższa tabela zawiera informacje o różnicach w metodach operujących na obiektach klasy: Metoda związana z obiektami klasy LinkTable | Metoda związana z obiektami klasy Link |
---|
Code Block |
---|
| long DBManagement.addLink(LinkTable linkTable)
|
| Code Block |
---|
| long LinkService.addLink(Link link)
|
| Code Block |
---|
| long DBManagement.changeLink(LinkTable linkTable)
|
| Code Block |
---|
| long LinkService.changeLink(Link link)
|
| Code Block |
---|
| ArrayList DBManagement.GetAllLinks()
|
| Code Block |
---|
| List<Link> LinkService.getAll(String... joins)
|
| Code Block |
---|
| LinkTable DBManagement.getLink(String id)
|
| Code Block |
---|
| Link LinkService.getLink(Long linkId, String... joins )
|
| Code Block |
---|
| LinkTable DBManagement.getLinkByName(String sLinkName)
|
| Code Block |
---|
| Link LinkService.getByName(String linkName, String... joins )
|
| Code Block |
---|
| void DBManagement.deleteLink(String id)
|
| Code Block |
---|
| void LinkService.deleteLink(Long linkId)
|
|
Zastąpienie klasy LinkIndexTable klasą LinkIndex
Od wersji 4.0.23 systemu klasa LinkIndexTable została w całości usunięta i zastąpiona przez klasę LinkIndex. Obie klasy reprezentują obiekty z tabeli pm_linkindecies. W celu dostosowania funkcji wykorzystujących usuniętą klasę LinkIndexTable, należy zamienić wszelkie odwołania do klasy LinkIndexTable na odwołania do klasy LinkIndex. Poniższa tabela zawiera informacje o różnicach w definicji klasy: Typ i nazwa pola w klasie LinkIndexTable | Typ i nazwa pola w klasie |
---|
|
...
LinkIndex | Nazwa kolumny w tabeli pm_linkindecies |
---|
Long linkId | Link link | linkid | String indexName | String name | indexname | String indexDescription | String description | indexdescription | String indexType | String type | indextype | String indexValues | String values | indexvalues | Long indexOrder | Long order | indexorder |
Ponadto w wersji 4.0.23 usunięte zostały wszystkie metody operujące na obiektach klasy LinkIndexTable. Metody te zostały zastąpione przez metody z komponentu Springa LinkService. Poniższa tabela zawiera informacje o różnicach w metodach operujących na obiektach klasy: Metoda związana z obiektami klasy LinkIndexTable | Metoda związana z obiektami klasy LinkIndex | Uwagi |
---|
Code Block |
---|
| long DBManagement.addLinkIndex(LinkIndexTable linkIndexTable)
|
| Code Block |
---|
| Long LinkService.addLinkIndex(LinkIndex linkIndex |
|
|
...
| | Code Block |
---|
| long DBManagement.changeLinkIndex(LinkIndexTable linkIndexTable) |
| Code Block |
---|
| void LinkService.updateLinkIndex(LinkIndex index |
|
|
...
| | Code Block |
---|
| ArrayList DBManagement.GetAllLinkIndecies(String linkId) |
| Code Block |
---|
| List<LinkIndex> LinkService.getLinkIndicesForLink(Long linkId)
|
| | Code Block |
---|
| LinkIndexTable DBManagement.getLinkIndex(String id)
|
| Code Block |
---|
| LinkIndex LinkService.getLinkIndex(Long id)
|
| | Code Block |
---|
| LinkIndexTable DBManagement.getLinkIndexByName(String sLinkId, String sLinkIndexName)
|
| Code Block |
---|
| Optional<LinkIndex> LinkService.getLinkIndexByName(Long linkId, String indexName)
|
|
|
...
W przypadku, gdy indeks o podanej nazwie nie istnieje we wskazanym zestawie dokumentów, zwracany jest pusty Optional. | Code Block |
---|
| void DBManagement.deleteIndeciesForLink(Session session, String linkId)
|
| Brak pojedynczej analogicznej metody. |
|
...
Możliwe jest osiągnięcie tego samego efektu poniższym kodem: Code Block |
---|
language | java |
---|
linenumbers | true |
---|
| LinkService linkService = SpringContext.getBean( LinkService.class );
linkService.getLinkIndicesForLink(<id_zestawu_dokumentow>)
.stream()
.forEach( linkIndex -> linkService.deleteLinkIndex( linkIndex.getId() ) ); |
| Code Block |
---|
| void DBManagement.deleteIndeciesForLink(String linkId)
|
| Brak pojedynczej analogicznej metody.
|
|
...
| Możliwe jest osiągnięcie tego samego efektu poniższym kodem: Code Block |
---|
language | java |
---|
linenumbers | true |
---|
| LinkService linkService = SpringContext.getBean( LinkService.class );
linkService.getLinkIndicesForLink(<id_zestawu_dokumentow>)
.stream()
.forEach( linkIndex -> linkService.deleteLinkIndex( linkIndex.getId() ) ); |
| Code Block |
---|
| void DBManagement.deleteLinkIndex(String id)
|
| Code Block |
---|
| void LinkService.deleteLinkIndex(Long linkIndexId)
|
| |
Zastąpienie klasy LinkConnectionTable klasą LinkConnection
Od wersji 4.0.23 systemu klasa |
LinkTable LinkConnectionTable została w całości usunięta i zastąpiona przez klasę |
LinkLinkConnection. Obie klasy reprezentują obiekty z tabeli pm_ |
linkslinkconnection. W celu dostosowania funkcji wykorzystujących usuniętą klasę |
LinkTableLinkConnectionTable, należy zamienić wszelkie odwołania do klasy |
LinkTable LinkConnectionTable na odwołania do klasy |
LinkLinkConnection. Poniższa tabela zawiera informacje o różnicach w definicji klasy: Typ i nazwa pola w klasie |
---|
|
...
LinkConnectionTable | Typ i nazwa pola w klasie |
---|
|
...
LinkConnection | Nazwa kolumny w tabeli pm_ |
---|
|
...
...
Long linkId | Link link | linkid | Long linkIndexId | LinkIndex linkIndex | linkindexid | Long docClassId | DocumentClass documentClass | docclassid | Long indexId | DocumentClassIndex documentClassIndex | indexid | String linkIndexName | brak | nie dotyczy | String docClassName | brak | nie dotyczy | String indexName | brak | nie dotyczy |
Ponadto w wersji 4.0.23 usunięte zostały wszystkie metody operujące na obiektach klasy |
LinkTableLinkConnectionTable. Metody te zostały zastąpione przez metody z komponentu Springa LinkService. Poniższa tabela zawiera informacje o różnicach w metodach operujących na obiektach klasy: Metoda związana z obiektami klasy |
---|
|
...
LinkConnectionTable | Metoda związana z obiektami klasy |
---|
|
...
LinkConnection | Uwagi |
---|
Code Block |
---|
| long DBManagement. |
|
|
...
...
...
| Code Block |
---|
| long LinkService. |
|
|
...
...
long DBManagement.changeLink(LinkTable linkTable)
long linkId, long linkIndexId, long docClassId, docClassIndexId)
|
| Zamiast tworzenia obiektu klasy LinkConnection, wystarczy podać id łączonego zestawu, indeksu zestawu, klasy oraz indeksu klasy dokumentów. | Code Block |
---|
language | java |
---|
linenumbers | true |
---|
| long DBManagement.changeLinkConnection(LinkConnectionTable LinkConnectionTable)
|
| Brak pojedynczej analogicznej metody. | | |
|
...
ArrayList DBManagement.GetAllLinkConnections()
|
| Brak pojedynczej analogicznej metody. | | Code Block |
---|
| List<LinkConnection> DBManagement.getAllLinkConnectionForLink(String linkId)
|
| Code Block |
---|
| List<LinkConnection> LinkService.getLinkConnectionsForLink(Long linkId, String... joins)
|
| | Code Block |
---|
| LinkConnectionTable DBManagement.getLinkConnection(String id)
|
| Brak pojedynczej analogicznej metody. | | Code Block |
---|
| LinkConnectionTable DBManagement.getLinkConnectionByName(String sLinkConnectionName)
|
| Brak pojedynczej analogicznej metody. | | Code Block |
---|
| ArrayList DBManagement.getLinkConnectionByLinkIndex(String linkIndexId)
|
| Code Block |
---|
| List<LinkConnection> LinkService.getLinkConnectionsForLinkIndex(Long linkIndexId, String... joins)
|
| | Code Block |
---|
| List<LinkConnectionTable> DBManagement.getLinkConnectionByDocumentClassIndex(String indexId)
|
| Code Block |
---|
| List<LinkConnection> LinkService.getLinkConnectionsForDocClassIndex(Long docClassIndexId, String... joins)
|
| | Code Block |
---|
| void DBManagement.deleteLinkConnection(String id)
|
| Code Block |
---|
| void LinkService.deleteLinkConnection(long linkConnectionId)
|
| | Code Block |
---|
| void DBManagement.deleteConnectionsForLink(Session session, String linkId)
|
| Brak pojedynczej analogicznej metody. | Możliwe jest osiągnięcie tego samego efektu poniższym kodem: |
|
...
...
| LinkService linkService = SpringContext.getBean( LinkService.class );
linkService.getLinkConnectionsForLink(<id_zestawu_dokumentow>)
.stream()
.forEach( linkConnection -> linkService.deleteLinkConnection(linkConnection.getId())); |
| Code Block |
---|
| void DBManagement.deleteConnectionsForLink(String linkId)
|
| Brak pojedynczej analogicznej metody. | Możliwe jest osiągnięcie tego samego efektu poniższym kodem: Code Block |
---|
language | java |
---|
linenumbers | true |
---|
|
|
|
...
long LinkService.changeLink(Link link)
LinkService linkService = SpringContext.getBean( LinkService.class );
linkService.getLinkConnectionsForLink(<id_zestawu_dokumentow>)
.stream()
.forEach( linkConnection -> linkService.deleteLinkConnection(linkConnection.getId())); |
| Code Block |
---|
| void DBManagement.deleteLinkConnectionForDocClass(Session session, String docclassId)
|
| Brak pojedynczej analogicznej metody. | | |
|
...
void DBManagement.deleteLinkConnectionForDocClass(String docclassId)
|
| Brak pojedynczej analogicznej metody. | | Code Block |
---|
| void DBManagement.deleteLinkConnectionForLinkIndex(Session session, String linkIndexId
|
| Brak pojedynczej analogicznej metody. | Możliwe jest osiągnięcie tego samego efektu poniższym kodem: Code Block |
---|
language | java |
---|
linenumbers | true |
---|
|
|
|
...
LinkService linkService = SpringContext.getBean( LinkService.class );
linkService.getLinkConnectionsForLinkIndex(<id_indeksu_zestawu_dokumentow>)
.stream()
.forEach( linkConnection -> linkService.deleteLinkConnection(linkConnection.getId())); |
| |
|
...
void DBManagement.deleteLinkConnectionForLinkIndex(String linkIndexId)
|
| Brak pojedynczej analogicznej metody. | Możliwe jest osiągnięcie tego samego efektu poniższym kodem: Code Block |
---|
language | java |
---|
linenumbers | true |
---|
| LinkService linkService = SpringContext.getBean( LinkService.class );
linkService.getLinkConnectionsForLinkIndex(<id_indeksu_zestawu_dokumentow>)
.stream()
.forEach( linkConnection -> linkService.deleteLinkConnection(linkConnection.getId())); |
|
|
English |
---|
Replacement of LinkTable class with Link classAs of version 4.0.23 of the system, the LinkTable class has been removed and replaced by the Link class. Both classes represent objects in the pm_links table. In order to customize functions that use the removed LinkTable class, replace any references to the LinkTable class with references to the Link class. The following table shows the differences in the class definition: Type and name of field in LinkTable class | Type and name of field in Link class | Column name in the pl_links table |
---|
String linkName | String name | linkname | String linkDescription | String description | linkdescription |
In addition, version 4.0.23 removed all methods that operate on objects of the LinkTable class. These methods have been replaced by methods from Spring's LinkService component. The following table contains information about the differences in methods operating on objects of the class: Method related to objects of LinkTable class | Method related to objects of Link class |
---|
Code Block |
---|
| long DBManagement.addLink(LinkTable linkTable)
|
| Code Block |
---|
| long LinkService.addLink(Link link)
|
| Code Block |
---|
| long DBManagement.changeLink(LinkTable linkTable)
|
| Code Block |
---|
| long LinkService.changeLink(Link link)
|
| Code Block |
---|
| ArrayList DBManagement.GetAllLinks()
|
| Code Block |
---|
| List<Link> LinkService.getAll(String... joins)
|
|
|
...
Code Block |
---|
| LinkTable DBManagement.getLink(String id)
|
| |
|
...
Link LinkService.getLink(Long linkId, String... joins )
|
| Code Block |
---|
| LinkTable DBManagement. |
|
|
...
Link LinkService.getLink(Long linkId, String... joins )
...
language | java |
---|
title | Dostęp do usług |
---|
linenumbers | true |
---|
...
getLinkByName(String sLinkName)
|
| Code Block |
---|
| Link LinkService.getByName(String linkName, String... joins )
|
| Code Block |
---|
| void DBManagement.deleteLink(String id)
|
| |
|
...
void LinkService.deleteLink(Long linkId)
|
|
Replacing the LinkIndexTable class with the LinkIndex classSince version 4.0.23 of the system, the LinkIndexTable class has been removed and replaced by the LinkIndex class. Both classes represent objects from the pm_linkindecies table. To customize functions that use the deleted LinkIndexTable class, replace any references to the LinkIndexTable class with references to the LinkIndex class. The following table contains information about the differences in the class definition: Type and name of field in LinkIndex Table class | Type and name of field in LinkIndex class | Column name in the pm_linkindecies table |
---|
Long linkId | Link link | linkid | String indexName | String name | indexname | String indexDescription | String description | indexdescription | String indexType | String type | indextype | String indexValues | String values | indexvalues | Long indexOrder | Long order | indexorder |
In addition, version 4.0.23 removed all methods that operate on objects of the LinkIndexTable class. These methods have been replaced by methods from Spring's LinkService component. The following table contains information about the differences in methods operating on objects of the class: Method related to objects of LinkIndexTable class | Method related to objects of LinkIndex class | Comments |
---|
Code Block |
---|
| long DBManagement.addLinkIndex(LinkIndexTable linkIndexTable)
|
| Code Block |
---|
| Long LinkService.addLinkIndex(LinkIndex linkIndex)
|
| | Code Block |
---|
| long DBManagement.changeLinkIndex(LinkIndexTable linkIndexTable) |
| Code Block |
---|
| void LinkService.updateLinkIndex(LinkIndex index)
|
| | Code Block |
---|
| ArrayList DBManagement.GetAllLinkIndecies(String linkId) |
| Code Block |
---|
| List<LinkIndex> LinkService.getLinkIndicesForLink(Long linkId)
|
| | Code Block |
---|
| LinkIndexTable DBManagement.getLinkIndex(String id)
|
| Code Block |
---|
| LinkIndex LinkService.getLinkIndex(Long id)
|
| | Code Block |
---|
| LinkIndexTable DBManagement.getLinkIndexByName(String sLinkId, String sLinkIndexName)
|
| Code Block |
---|
| Optional<LinkIndex> LinkService.getLinkIndexByName(Long linkId, String indexName)
|
| If an index with the specified name does not exist in the indicated document set, an empty Optional is returned. | Code Block |
---|
| void DBManagement.deleteIndeciesForLink(Session session, String linkId)
|
| No single analogous method. | It is possible to achieve the same effect with the following code: Code Block |
---|
language | java |
---|
linenumbers | true |
---|
| LinkService linkService = SpringContext.getBean( LinkService.class );
linkService.getLinkIndicesForLink(<id_zestawu_dokumentow>)
.stream()
.forEach( linkIndex -> linkService.deleteLinkIndex( linkIndex.getId() ) ); |
| Code Block |
---|
| void DBManagement.deleteIndeciesForLink(String linkId)
|
| No single analogous method.
| It is possible to achieve the same effect with the following code: Code Block |
---|
language | java |
---|
linenumbers | true |
---|
| LinkService linkService = SpringContext.getBean( LinkService.class );
linkService.getLinkIndicesForLink(<id_zestawu_dokumentow>)
.stream()
.forEach( linkIndex -> linkService.deleteLinkIndex( linkIndex.getId() ) ); |
| Code Block |
---|
| void DBManagement.deleteLinkIndex(String id)
|
| |
|
...
void LinkService.deleteLinkIndex(Long linkIndexId)
|
| |
Replacing the LinkConnectionTable class with the LinkConnection classFrom version 4.0.23 of the system, the LinkConnectionTable class has been removed in its entirety and replaced by the LinkConnection class. Both classes represent objects from the pm_linkconnection table. To customize functions that use the deleted LinkConnectionTable class, replace any references to the LinkConnectionTable class with references to the LinkConnection class. The following table shows the differences in the class definition: Method related to objects of LinkConnectionTable class | Method related to objects of LinkConnection class | Column name in the pm_linkconnection |
---|
Long linkId | Link link | linkid | Long linkIndexId | LinkIndex linkIndex | linkindexid | Long docClassId | DocumentClass documentClass | docclassid | Long indexId | DocumentClassIndex documentClassIndex | indexid | String linkIndexName | brak | nie dotyczy | String docClassName | brak | nie dotyczy | String indexName | brak | nie dotyczy |
In addition, version 4.0.23 removed all methods that operate on objects of the LinkConnectionTable class. These methods have been replaced by methods from Spring's LinkService component. The following table provides information about the differences in methods operating on class objects: Method related to objects of LinkConnectionTable class | Method related to objects of LinkConnection class | Comments |
---|
Code Block |
---|
| long DBManagement.addLinkConnection(LinkConnectionTable LinkConnectionTable)
|
| Code Block |
---|
| long LinkService.addLinkConnection(long linkId, long linkIndexId, long docClassId, docClassIndexId)
|
| Instead of creating an object of the LinkConnection class, it is enough to provide the id of the linked set, the index of the set, the class and the index of the document class. | Code Block |
---|
language | java |
---|
linenumbers | true |
---|
| long DBManagement.changeLinkConnection(LinkConnectionTable LinkConnectionTable)
|
| No single analogous method. | | Code Block |
---|
| ArrayList DBManagement.GetAllLinkConnections()
|
| No single analogous method. | | Code Block |
---|
| List<LinkConnection> DBManagement.getAllLinkConnectionForLink(String linkId)
|
| Code Block |
---|
| List<LinkConnection> LinkService.getLinkConnectionsForLink(Long linkId, String... joins)
|
| | Code Block |
---|
| LinkConnectionTable DBManagement.getLinkConnection(String id)
|
| No single analogous method. | | Code Block |
---|
| LinkConnectionTable DBManagement.getLinkConnectionByName(String sLinkConnectionName)
|
| No single analogous method. | | Code Block |
---|
| ArrayList DBManagement.getLinkConnectionByLinkIndex(String linkIndexId)
|
| Code Block |
---|
| List<LinkConnection> LinkService.getLinkConnectionsForLinkIndex(Long linkIndexId, String... joins)
|
| | Code Block |
---|
| List<LinkConnectionTable> DBManagement.getLinkConnectionByDocumentClassIndex(String indexId)
|
| Code Block |
---|
| List<LinkConnection> LinkService.getLinkConnectionsForDocClassIndex(Long docClassIndexId, String... joins)
|
| | |
|
...
void DBManagement.deleteLink(String id)
...
Code Block |
---|
language | java |
---|
title | Dostęp do usług |
---|
linenumbers | true |
---|
|
void LinkService.deleteLink(Long linkId)
|
...
void DBManagement.deleteLinkConnection(String id)
|
| Code Block |
---|
| void LinkService.deleteLinkConnection(long linkConnectionId)
|
| | Code Block |
---|
| void DBManagement.deleteConnectionsForLink(Session session, String linkId)
|
| No single analogous method. | It is possible to achieve the same effect with the following code: Code Block |
---|
language | java |
---|
linenumbers | true |
---|
| LinkService linkService = SpringContext.getBean( LinkService.class );
linkService.getLinkConnectionsForLink(<id_zestawu_dokumentow>)
.stream()
.forEach( linkConnection -> linkService.deleteLinkConnection(linkConnection.getId())); |
| Code Block |
---|
| void DBManagement.deleteConnectionsForLink(String linkId)
|
| No single analogous method. | It is possible to achieve the same effect with the following code: Code Block |
---|
language | java |
---|
linenumbers | true |
---|
| LinkService linkService = SpringContext.getBean( LinkService.class );
linkService.getLinkConnectionsForLink(<id_zestawu_dokumentow>)
.stream()
.forEach( linkConnection -> linkService.deleteLinkConnection(linkConnection.getId())); |
| Code Block |
---|
| void DBManagement.deleteLinkConnectionForDocClass(Session session, String docclassId)
|
| No single analogous method. | | Code Block |
---|
| void DBManagement.deleteLinkConnectionForDocClass(String docclassId)
|
| No single analogous method. | | Code Block |
---|
| void DBManagement.deleteLinkConnectionForLinkIndex(Session session, String linkIndexId
|
| No single analogous method. | It is possible to achieve the same effect with the following code: Code Block |
---|
language | java |
---|
linenumbers | true |
---|
| LinkService linkService = SpringContext.getBean( LinkService.class );
linkService.getLinkConnectionsForLinkIndex(<id_indeksu_zestawu_dokumentow>)
.stream()
.forEach( linkConnection -> linkService.deleteLinkConnection(linkConnection.getId())); |
| Code Block |
---|
| void DBManagement.deleteLinkConnectionForLinkIndex(String linkIndexId)
|
| No single analogous method. | It is possible to achieve the same effect with the following code: Code Block |
---|
language | java |
---|
linenumbers | true |
---|
| LinkService linkService = SpringContext.getBean( LinkService.class );
linkService.getLinkConnectionsForLinkIndex(<id_indeksu_zestawu_dokumentow>)
.stream()
.forEach( linkConnection -> linkService.deleteLinkConnection(linkConnection.getId())); |
|
|