|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.uwgm.common.container.ContainerUtilities
Windchill container relater utilities and container types
Field Summary | |
private static Log |
log
logging |
Constructor Summary | |
private |
ContainerUtilities()
private default construct to prevent accidental instantiation |
Method Summary | |
static WTContainer[] |
getAllProjectLinkContainers()
private query for getting all project link containers |
static WTContainer |
getContainerByName(WTPrincipal principal,
String containerName,
ContainerType containerType)
gets container by container name and type where principal is a member |
static WTContainer |
getContainerByOrganizationAndName(WTPrincipal principal,
WTPrincipalReference organizationReference,
String containerName,
ContainerType containerType)
gets container by organization, container name and type where principal is a member Use OrganizationHelper.getUserOrganizationReference(principal) to get Organization reference |
static WTContainer |
getContainerForPersistable(Persistable businessObject)
Get owning container for the specified Persistable business object. |
static WTContainer[] |
getContainers(WTPrincipal principal)
gets all containers where user is invited to |
static WTContainer[] |
getContainers(WTPrincipal principal,
ContainerType containerType)
gets all containers of given type where user is invited to |
static WTContainer[] |
getContainersByName(WTPrincipal principal,
String containerName)
gets container(s) by container name where principal is a member this method may return more than one container (currently up to 3) since a project, product and library may have the same name |
static WTContainer[] |
getContainersByName(WTPrincipal principal,
String containerName,
ContainerType containerType)
gets containers by container name and type where principal is a member |
static WTContainer[] |
getPDMLinkContainers(WTPrincipal principal)
gets all PDMLink containers (prodicts and libraries) where user is invited to |
static WTContainer[] |
getRegisteredContainers(WTPrincipal principal,
ContainerType containerType)
gets "registered" user containers of given container type container is registered by the user, when at least one user workspace is associated with this container |
private static WTContainer[] |
getUserContainers(WTPrincipal principal,
ContainerType containerType,
String containerName)
private query for getting user containers Site and Organization only available for their administators |
static WTContainer |
getWTContainer(String containerOid)
For the specified container oid, return back the WTContainer object. |
static boolean |
isActive(WTContainer container)
returns "true" if container is active container is active if the user has at least "read" permissions and for PL containers project is active |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static Log log
Constructor Detail |
private ContainerUtilities()
Method Detail |
public static WTContainer[] getContainersByName(WTPrincipal principal, String containerName) throws WTException
WTException
public static WTContainer getContainerByOrganizationAndName(WTPrincipal principal, WTPrincipalReference organizationReference, String containerName, ContainerType containerType) throws WTException
OrganizationHelper.getUserOrganizationReference(principal)
to get Organization reference
null
if none available
WTException
public static WTContainer getContainerByName(WTPrincipal principal, String containerName, ContainerType containerType) throws WTException
null
if none available
WTException
public static WTContainer[] getContainersByName(WTPrincipal principal, String containerName, ContainerType containerType) throws WTException
WTException
public static WTContainer[] getContainers(WTPrincipal principal, ContainerType containerType) throws WTException
principal
- WTPrincipalcontainerType
- ContainerType
WTException
public static WTContainer[] getPDMLinkContainers(WTPrincipal principal) throws WTException
principal
- WTPrincipal
WTException
public static WTContainer[] getContainers(WTPrincipal principal) throws WTException
principal
- WTPrincipal
WTException
public static WTContainer[] getRegisteredContainers(WTPrincipal principal, ContainerType containerType) throws WTException
WTException
public static WTContainer getContainerForPersistable(Persistable businessObject) throws WTException
null
if none available
WTException
public static WTContainer getWTContainer(String containerOid) throws WTException
WTException
public static boolean isActive(WTContainer container) throws WTException
container
- WTContainer
WTException
private static WTContainer[] getUserContainers(WTPrincipal principal, ContainerType containerType, String containerName) throws WTException
principal
- WTPrincipal usercontainerType
- ContainerType any ContainerType.XXX. use ANY to get ALL avalable and PDMLINK for both
product and librariescontainerName
- String optional name. If null, all container will be returned
null
WTException
public static WTContainer[] getAllProjectLinkContainers() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |