Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
TDPIMS-SDK
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengfunan
TDPIMS-SDK
Commits
4bbd8ad5
Commit
4bbd8ad5
authored
Jul 18, 2023
by
zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
baf1e950
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
9 deletions
+55
-9
PimsAsset.java
src/main/java/com/tongda/tdpimssdk/api/PimsAsset.java
+1
-3
QuerySamples.java
...main/java/com/tongda/tdpimssdk/examples/QuerySamples.java
+2
-2
RemoteAppConfiguration.java
...a/com/tongda/tdpimssdk/remote/RemoteAppConfiguration.java
+1
-1
RemoteAsset.java
src/main/java/com/tongda/tdpimssdk/remote/RemoteAsset.java
+10
-1
RemoteTdPimHelper.java
...n/java/com/tongda/tdpimssdk/remote/RemoteTdPimHelper.java
+41
-2
No files found.
src/main/java/com/tongda/tdpimssdk/api/PimsAsset.java
View file @
4bbd8ad5
...
...
@@ -3,11 +3,9 @@ package com.tongda.tdpimssdk.api;
import
com.alibaba.fastjson.JSONObject
;
import
com.tongda.tdpimssdk.auth.SaAuth
;
import
com.tongda.tdpimssdk.entities.Product
;
import
com.tongda.tdpimssdk.entities.common.CatalogRoot
;
import
com.tongda.tdpimssdk.http.PimHttpUtil
;
import
com.tongda.tdpimssdk.resultVo.vo.AssetVo
;
import
javax.validation.constraints.NotBlank
;
import
java.util.List
;
public
class
PimsAsset
{
...
...
@@ -41,7 +39,7 @@ public class PimsAsset {
* @param vo
* @return
*/
public
String
getLifeCycleDefinitionList
(
AssetVo
vo
)
{
public
String
updateMetadataValues
(
AssetVo
vo
)
{
String
url
=
"http://"
+
SaAuth
.
serverId
+
":"
+
SaAuth
.
serverPort
+
"/pims/asset/field?dbName="
+
SaAuth
.
dbName
;
String
response
=
PimHttpUtil
.
sendPut
(
url
,(
JSONObject
)
JSONObject
.
toJSON
(
vo
));
String
s
=
PimsQuery
.
resultUtil
(
response
);
...
...
src/main/java/com/tongda/tdpimssdk/examples/QuerySamples.java
View file @
4bbd8ad5
...
...
@@ -4,7 +4,7 @@ import com.tongda.tdpimssdk.entities.AssetAbstract;
import
com.tongda.tdpimssdk.entities.Entity
;
import
com.tongda.tdpimssdk.entities.common.Catalog
;
import
com.tongda.tdpimssdk.entities.common.CatalogRoot
;
import
com.tongda.tdpimssdk.remote.Remote
Query
Helper
;
import
com.tongda.tdpimssdk.remote.Remote
TdPim
Helper
;
import
com.tongda.tdpimssdk.remote.RemoteSaAuthHandler
;
import
com.tongda.tdpimssdk.resultVo.vo.GeneralPagerVo
;
...
...
@@ -22,7 +22,7 @@ public class QuerySamples {
rsh
.
dbName
=
"TXPIMDB"
;
//初始化远程查询对象
Remote
QueryHelper
rqh
=
new
RemoteQuery
Helper
(
rsh
);
Remote
TdPimHelper
rqh
=
new
RemoteTdPim
Helper
(
rsh
);
CatalogRoot
cr
=
rqh
.
fetchAssetTemplates
();
System
.
out
.
println
(
...
...
src/main/java/com/tongda/tdpimssdk/remote/RemoteApp
Service
.java
→
src/main/java/com/tongda/tdpimssdk/remote/RemoteApp
Configuration
.java
View file @
4bbd8ad5
...
...
@@ -3,5 +3,5 @@ package com.tongda.tdpimssdk.remote;
import
lombok.Data
;
@Data
public
class
RemoteApp
Service
{
public
class
RemoteApp
Configuration
{
}
src/main/java/com/tongda/tdpimssdk/remote/RemoteAsset.java
View file @
4bbd8ad5
package
com
.
tongda
.
tdpimssdk
.
remote
;
public
class
RemoteAsset
{
import
com.tongda.tdpimssdk.entities.Product
;
import
com.tongda.tdpimssdk.resultVo.vo.AssetVo
;
public
class
RemoteAsset
extends
Product
{
public
String
updateMetadataValues
(
AssetVo
vo
){
return
""
;
}
}
src/main/java/com/tongda/tdpimssdk/remote/Remote
Query
Helper.java
→
src/main/java/com/tongda/tdpimssdk/remote/Remote
TdPim
Helper.java
View file @
4bbd8ad5
...
...
@@ -10,10 +10,10 @@ import com.tongda.tdpimssdk.resultVo.vo.GeneralPagerVo;
import
java.util.List
;
public
class
Remote
Query
Helper
{
public
class
Remote
TdPim
Helper
{
RemoteSaAuthHandler
rsh
;
public
Remote
Query
Helper
(
RemoteSaAuthHandler
rsh
){
public
Remote
TdPim
Helper
(
RemoteSaAuthHandler
rsh
){
this
.
rsh
=
rsh
;
}
/**
...
...
@@ -86,6 +86,45 @@ public class RemoteQueryHelper {
}
public
void
createAsset
(){
}
public
void
deleteAsset
(){
}
public
RemoteAsset
fetchAsset
(){
return
null
;
}
public
void
createDocument
(){
}
public
void
deleteDocument
(){
}
public
RemoteDocument
fetchDocument
(){
return
null
;
}
public
void
createAppConfiguration
(){
}
public
void
createDeleteConfiguration
(){
}
public
RemoteAppConfiguration
fetchAppConfiguration
(){
return
null
;
}
public
static
String
resultUtil
(
String
re
){
// System.out.println(re);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
re
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment