com.plumtree.portaluiinfrastructure.classtypedescriptors
Interface IPTClassTypeDesc

All Superinterfaces:
IClassTypeDesc
All Known Subinterfaces:
IPTClassTypeDesc
All Known Implementing Classes:
APTClassTypeDesc, APTClassTypeDesc, APTExtClassTypeDesc, APTExtClassTypeDesc, APTNonExtClassTypeDesc, APTNonExtClassTypeDesc, PTAdminFolders, PTAuthSources, PTCommunities, PTCommunityTemplates, PTCrawlers, PTDataSources, PTDocFolders, PTDocTypes, PTDocuments, PTExternalOperations, PTFilters, PTGlobalObjects, PTGroups, PTGuestLogins, PTInvitations, PTJobs, PTMyPages, PTNetworkedSearches, PTPages, PTPageTemplates, PTPortletBundles, PTPortlets, PTPortletTemplates, PTProfilePages, PTProfileSections, PTProfileSources, PTProperties, PTRemoteServers, PTSavedSearches, PTSiteMapFolders, PTSubPortals, PTTaxonomist, PTUsers, PTWebServices

public interface IPTClassTypeDesc
extends IClassTypeDesc

Interface for PTClassTypeDesc.

Author:
John Osborne

Method Summary
 boolean AppearsInGlobalObjPropMap()
          Returns a boolean that tells the client if this class type appears in the global object property map utility.
 boolean AppearsInMainCreateNewClassMenu()
          Returns a boolean that tells the client if this class type should appear in the main create new object menu.
 java.lang.String ConstructFriendlyURL(FriendlyURL url, AActivitySpace space)
          Generates a friendly URL to the implementing class type.
 int GetClassID()
          Returns the class ID of the class type.
 java.lang.String GetClassTypeLocalizedName(java.lang.String _strLangID)
          Returns the localized name for the class type.
 HTMLImg GetDefaultIcon()
          Returns the default icon for items of this class type.
 int[] GetDependentClassTypeIDs()
          This method lets you specify what kind of PTClassTypes depend on this PTClassType.
 java.lang.String GetObjectLockManagerLocalizedName(java.lang.String strLangID)
          Returns the localized name that will be displayed on the left navigation menu of "Admin UI->Release Item Locks" page.
 Redirect GetRedirectViewObject(IFriendlyURLParser _fURLParser, AActivitySpace _asParent, java.lang.Object _userSession)
          This method is called by the Common Opener in the view mode.
 int[] GetRelatedClassTypeIDs()
          This method lets you associate the class ID for this PTClassType with other class IDs.
 boolean HasGlobalClassTypeMap()
          Returns a boolean that tells the client if this class type is on the global class type map.
 boolean HasObjectLockManager()
          Returns a boolean that tells the client if this class included/supported on the "Admin UI->Release Item Locks" page.
 boolean IsExtensible()
          Returns a boolean that tells the client if this class type is extensible.
 
Methods inherited from interface com.plumtree.uiinfrastructure.opener.types.IClassTypeDesc
GetClassKey, GetClassType, GetDefaultOpenerMode, GetRedirectCreateNew, GetRedirectOpenObject, GetRedirectSearchBrowse, GetRedirectSearchEdit, GetRedirectViewObjectMetaData
 

Method Detail

AppearsInMainCreateNewClassMenu

boolean AppearsInMainCreateNewClassMenu()
Returns a boolean that tells the client if this class type should appear in the main create new object menu.

Returns:
A boolean that tells the client if this class type should appear in the main create new object menu.

AppearsInGlobalObjPropMap

boolean AppearsInGlobalObjPropMap()
Returns a boolean that tells the client if this class type appears in the global object property map utility.

Returns:
A boolean that tells the client if this class type appears in the global object property map utility

GetClassID

int GetClassID()
Returns the class ID of the class type. Use the PT_CLASSIDS constant to determine/reference IDs.

Returns:
The class ID of the class type.

GetClassTypeLocalizedName

java.lang.String GetClassTypeLocalizedName(java.lang.String _strLangID)
Returns the localized name for the class type. For example, the name for users is "User" in English.

Parameters:
_strLangID - The language to retrieve the name for.
Returns:
The localized name for the class type.

GetDefaultIcon

HTMLImg GetDefaultIcon()
Returns the default icon for items of this class type.

Returns:
The default icon for items of this class type.

GetRelatedClassTypeIDs

int[] GetRelatedClassTypeIDs()
This method lets you associate the class ID for this PTClassType with other class IDs. One application for this is at the end of the editor creation wizard, it provides shortcut links to create related objets. Return NULL if there are no related class types.

Returns:
An array of related class IDs. May be NULL.

GetDependentClassTypeIDs

int[] GetDependentClassTypeIDs()
This method lets you specify what kind of PTClassTypes depend on this PTClassType. One application for this is to make sure to try to delete dependent items before deleting the main item, otherwise the delete may fail because there are dependent items. This method should only return class types that are directly dependent on this class type. For example, Remote Servers should return Web Services, but not Portlets. Web Services should return Portlets. Return NULL if there are no related class types. NOTE: This does not support circular loops of dependencies (I.E. A -> B -> C -> A). This behavior is undefined, and will mostly likely cause deletes of those objects to fail.

Returns:
An array of dependent class IDs. May be NULL.

HasGlobalClassTypeMap

boolean HasGlobalClassTypeMap()
Returns a boolean that tells the client if this class type is on the global class type map.

Returns:
A boolean that tells the client if this class type is on the global class type map.

IsExtensible

boolean IsExtensible()
Returns a boolean that tells the client if this class type is extensible.

Returns:
A boolean that tells the client if this class type is extensible.

HasObjectLockManager

boolean HasObjectLockManager()
Returns a boolean that tells the client if this class included/supported on the "Admin UI->Release Item Locks" page.

Returns:
A boolean that tells the client if this class included/supported on the "Admin UI->Release Item Locks" page.

GetObjectLockManagerLocalizedName

java.lang.String GetObjectLockManagerLocalizedName(java.lang.String strLangID)
Returns the localized name that will be displayed on the left navigation menu of "Admin UI->Release Item Locks" page.

Parameters:
_strLangID - The language to retrieve the name for.
Returns:
The localized name for the class type.

GetRedirectViewObject

Redirect GetRedirectViewObject(IFriendlyURLParser _fURLParser,
                               AActivitySpace _asParent,
                               java.lang.Object _userSession)
This method is called by the Common Opener in the view mode. Depending on what class type you are dealing with, the Common Opener will invoke the correct implemented method. Some class types may need to override this so that they can put additional control arguments in.

Specified by:
GetRedirectViewObject in interface IClassTypeDesc
Parameters:
_fURLParser - contains the URL path.
_asParent - The parent activity space.
_userSession - The current session.
Returns:
A redirect that will bring you to the view activity space for the particular class/object.
Throws:
An - exception is thrown if the object to be viewed cannot be determined.

ConstructFriendlyURL

java.lang.String ConstructFriendlyURL(FriendlyURL url,
                                      AActivitySpace space)
Generates a friendly URL to the implementing class type. Ideally the object name is provided, otherwise if only the object id is provided, the method has to look up the object name. If both are provided, both the object name and object id is used in the friendly url.

Parameters:
url - FriendlyURL containing the information for the url
Returns:
Returns the friendly part of the friendly Url, that is, just the part of the Url after server.pt including leading slash.



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.