|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.federation.DelegateUtilities
DelegateUtilities provides class methods to retrieve delegates related information (e.g repository, repository type and Windchill type associated to the delegate ).
Field Summary | |
private static String |
CLASSNAME
|
static String |
DELEGATE_KEY
|
static String |
DELEGATE_SOURCE_URL
|
static String |
DESCRIPTION
|
static String |
DISPLAY_NAME
|
static String |
DN
|
private static DirectoryService |
ds
|
private static String |
provider
|
static String |
REPOSITORY_TYPE
|
static String |
repositorySearchFilter
|
static String |
reposTypeSearchFilter
|
private static String |
searchBase
|
private static boolean |
VERBOSE
|
static String |
WCTYPEID
|
static String |
wcTypeSearchFilter
|
Constructor Summary | |
DelegateUtilities()
|
Method Summary | |
static void |
debug(Group grp)
debug for testing |
static Element |
findObject(String dn)
Find an object in the directory, return null instead of throwing exception if javax.naming.NameNotFoundException is caught |
static String |
getAttValue(String searchFilter,
String dspName,
String att_name)
Return the attribute value |
static String |
getDisplayName(String dn)
Return repository type display name |
static Enumeration |
getDisplayNames(Group grp)
Populates display names with 'ptcDisplayName' |
static String |
getDN(String dspName,
Group grp)
Returns dn |
static String |
getProvider()
Returns the reference of default JNDI Adapter |
static String |
getRepositoryDN(String dspName)
Returns repository dn. |
static Enumeration |
getRepositoryNames()
Return all the repository display names |
static String |
getRepositoryTypeDN(String dspName)
return attibute value /** Returns repository type dn. |
static Enumeration |
getRepositoryTypeNames()
Return all the repositoryType display names |
static String |
getReposTypeValue(String dspName,
String att_name)
To help 'jsp clients' to retrieve attribute values based on the display name from UI. |
static String |
getReposValue(String dspName,
String att_name)
To help 'jsp clients' to retrieve attribute values based on the display name from UI. |
static String |
getSearchBase(String jndiAdapter)
Returns search base |
private static void |
init()
Initialization based on the default JNDI Adapter which is set by Info*Engine |
static boolean |
isEntryExist(String dn)
Checks if the object exist on the provider |
static void |
main(String[] args)
test driver |
static Group |
queryRepositories()
find all entries registered with 'objectclass=ptcRepositoryDefinition' |
static Group |
queryRepositoryTypes()
Find all entries registered with 'objectclass=ptcRepositoryTypeDefinition' |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String reposTypeSearchFilter
public static String repositorySearchFilter
public static String wcTypeSearchFilter
public static final String DELEGATE_KEY
public static final String DELEGATE_SOURCE_URL
public static final String DESCRIPTION
public static final String DISPLAY_NAME
public static final String WCTYPEID
public static final String REPOSITORY_TYPE
public static final String DN
private static String provider
private static String searchBase
private static DirectoryService ds
private static boolean VERBOSE
private static final String CLASSNAME
Constructor Detail |
public DelegateUtilities()
Method Detail |
private static void init() throws IOException, IEException
IOException
IEException
public static String getProvider() throws IOException, IEException
IOException
IEException
public static String getSearchBase(String jndiAdapter) throws IOException, IEException
jndiAdapter
- The reference of LDAP directory
IOException
IEException
public static boolean isEntryExist(String dn) throws IOException, IEException
dn
- The distinguish name
IOException
IEException
public static String getDN(String dspName, Group grp) throws IOException, IEException
dspName
- The display namegrp
- The Info*Engine Group
IOException
IEException
public static Element findObject(String dn) throws IOException, IEException
dn
-
IOException
IEException
public static String getRepositoryDN(String dspName) throws IOException, IEException
dspName
- The repository display name
IOException
IEException
public static String getReposValue(String dspName, String att_name) throws IOException, IEException
dspName
- The display name for the repositoryatt_name
- The attribute name in the repository
IOException
IEException
public static String getReposTypeValue(String dspName, String att_name) throws IOException, IEException
dspName
- The display name for the repository typeatt_name
- The attribute name in the repository type
IOException
IEException
public static String getAttValue(String searchFilter, String dspName, String att_name) throws IOException, IEException
searchFilter
- The basic filter(e.g "(objectclass=ptcRepositoryDefinition)" )dspName
- The display nameatt_name
- The attribute name
IOException
IEException
public static String getRepositoryTypeDN(String dspName) throws IOException, IEException
IOException
IEException
public static Group queryRepositoryTypes() throws IEException, IOException
IEException
IOException
public static Group queryRepositories() throws IEException, IOException
IEException
IOException
public static String getDisplayName(String dn) throws IEException, IOException
dn
-
IEException
IOException
public static Enumeration getDisplayNames(Group grp) throws IEException, IOException
grp
- The Group
IEException
IOException
public static Enumeration getRepositoryNames() throws IEException, IOException
IEException
IOException
public static Enumeration getRepositoryTypeNames() throws IEException, IOException
IEException
IOException
public static void debug(Group grp)
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |