|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.uwgm.common.folder.VirtualPathParser
Virtual Folder path parser
Field Summary | |
private WTContainer |
container
|
private Object |
folderObject
|
private FolderHelper.FolderType |
folderType
|
private Locale |
locale
|
private static Log |
log
logging |
private WTPrincipal |
principal
|
Constructor Summary | |
VirtualPathParser(String virtualPath,
WTPrincipal principal,
Locale locale)
constructor |
|
VirtualPathParser(String virtualPath,
WTPrincipal principal,
Locale locale,
WTContainer container)
constructor |
Method Summary | |
Object |
getFolderObject()
returns folder object folder object is either FakeFolder , WTContainer , EPMWorkspace or Folder
and needs to be casted according to getFolderObjectType() . |
FolderHelper.FolderType |
getFolderObjectType()
returns folder object type as FolderHelper.FolderType or null if folder is not found |
private String |
makeFullPath(String cabinetPath,
List pathElements)
makes folder full path from Cabinet folderPath and subfolders path elements |
private void |
parseVirtualPath(String virtualPath)
internal method to parse virtual path and set folderType and folderObject |
private void |
setFolderObject(WTPrincipal principal,
WTContainer container,
List pathElements)
sets FolderObject and FolderType base on container and list of subfolder names |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final WTPrincipal principal
private final Locale locale
private final WTContainer container
private FolderHelper.FolderType folderType
private Object folderObject
private static Log log
Constructor Detail |
public VirtualPathParser(String virtualPath, WTPrincipal principal, Locale locale) throws WTException
virtualPath
- Stringprincipal
- WTPrincipallocale
- Locale
WTException
public VirtualPathParser(String virtualPath, WTPrincipal principal, Locale locale, WTContainer container) throws WTException
virtualPath
- Stringprincipal
- WTPrincipallocale
- Localecontainer
- WTContainer
WTException
Method Detail |
public FolderHelper.FolderType getFolderObjectType()
FolderHelper.FolderType
or null
if folder is not found
public Object getFolderObject()
FakeFolder
, WTContainer
, EPMWorkspace
or Folder
and needs to be casted according to getFolderObjectType()
.
null
if no object was foundprivate void parseVirtualPath(String virtualPath) throws WTException
virtualPath
- String
WTException
private void setFolderObject(WTPrincipal principal, WTContainer container, List pathElements) throws WTException
principal
- WTPrincipalcontainer
- WTContainerpathElements
- List
WTException
private String makeFullPath(String cabinetPath, List pathElements)
cabinetPath
- String or nullpathElements
- List
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |