com.ptc.windchill.uwgm.common.folder
Class FakeFolderHelper

java.lang.Object
  extended bycom.ptc.windchill.uwgm.common.folder.FakeFolderHelper

public class FakeFolderHelper
extends Object


Nested Class Summary
private static class FakeFolderHelper.TopFolderDefinition
          internal data structure to make top folders
 
Field Summary
private static FakeFolderHelper.TopFolderDefinition[] FOLDER_DEFINITIONS
          top folder definition table
private static Log log
          logging
 
Constructor Summary
FakeFolderHelper()
           
 
Method Summary
static String getPropertyPageURL(FakeFolder fakeFolder, WTPrincipal principal)
          returns PropertyPageURL for FakeFolder
static FakeFolder[] getTopFolders(WTPrincipal principal)
          returns an array of FakeFolders to represent TopFolders
private static boolean isTopFolderNeeded(WTPrincipal principal, ContainerType containerType)
          checks whether FakeFolder is needed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOLDER_DEFINITIONS

private static final FakeFolderHelper.TopFolderDefinition[] FOLDER_DEFINITIONS
top folder definition table


log

private static Log log
logging

Constructor Detail

FakeFolderHelper

public FakeFolderHelper()
Method Detail

getTopFolders

public static FakeFolder[] getTopFolders(WTPrincipal principal)
returns an array of FakeFolders to represent TopFolders

Parameters:
principal - WTPrincipal
Returns:
FakeFolder[]

isTopFolderNeeded

private static boolean isTopFolderNeeded(WTPrincipal principal,
                                         ContainerType containerType)
checks whether FakeFolder is needed

TopFolder is needed when user has access to at least one container of that type or has created at least one workspace for Workspaces top folder

Parameters:
principal - WTPrincipal
containerType - ContainerType
Returns:
boolean

getPropertyPageURL

public static String getPropertyPageURL(FakeFolder fakeFolder,
                                        WTPrincipal principal)
                                 throws WTException
returns PropertyPageURL for FakeFolder

Parameters:
fakeFolder - FakeFolder
principal - WTPrincipal
Returns:
String
Throws:
WTException