Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BasicAPI
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
杜科
BasicAPI
Commits
1bb01cf1
Commit
1bb01cf1
authored
Mar 07, 2023
by
杜科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e7d75b33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
CommonUtil.java
src/com/yonde/common/CommonUtil.java
+21
-0
No files found.
src/com/yonde/common/CommonUtil.java
View file @
1bb01cf1
...
@@ -20,6 +20,7 @@ import wt.epm.EPMDocumentMasterIdentity;
...
@@ -20,6 +20,7 @@ import wt.epm.EPMDocumentMasterIdentity;
import
wt.epm.workspaces.EPMWorkspace
;
import
wt.epm.workspaces.EPMWorkspace
;
import
wt.fc.*
;
import
wt.fc.*
;
import
wt.fc.collections.WTCollection
;
import
wt.fc.collections.WTCollection
;
import
wt.fc.collections.WTValuedHashMap
;
import
wt.folder.Folder
;
import
wt.folder.Folder
;
import
wt.folder.FolderEntry
;
import
wt.folder.FolderEntry
;
import
wt.folder.FolderHelper
;
import
wt.folder.FolderHelper
;
...
@@ -765,6 +766,26 @@ public class CommonUtil implements RemoteAccess {
...
@@ -765,6 +766,26 @@ public class CommonUtil implements RemoteAccess {
}
}
return
folderList
;
return
folderList
;
}
}
/**
* @描述 对象关联文件夹
* @作者 Pengfei,Li
* @时间 2015-9-11上午10:58:38
*/
public
static
void
setFolder
(
String
folderName
,
WTContainerRef
containerRef
,
Persistable
persistable
)
throws
WTException
{
Folder
location
=
null
;
try
{
location
=
FolderHelper
.
service
.
getFolder
(
folderName
,
containerRef
);
}
catch
(
WTException
e
)
{
location
=
null
;
}
if
(
location
==
null
)
location
=
FolderHelper
.
service
.
saveFolderPath
(
folderName
,
containerRef
);
if
(
location
!=
null
)
{
WTValuedHashMap
map
=
new
WTValuedHashMap
();
map
.
put
(
persistable
,
location
);
FolderHelper
.
assignLocations
(
map
);
}
}
}
}
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