|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object BaseSearchFormHandler atg.epub.servlet.SearchFormHandler atg.epub.servlet.AssetSearchFormHandler
public class AssetSearchFormHandler
Search form handler for assets. Works for both repository and virtual file assets, by treating VF assets as repository items.
Field Summary | |
---|---|
static int |
ACTION_CHANGE_CURRENT_DIRECTORY
|
static int |
ACTION_CHANGE_TYPE
|
static int |
ACTION_CLICK_FOLDER
|
static int |
ACTION_SEARCH
|
static int |
ACTION_SORT_ORDER
|
static java.lang.String |
CLASS_VERSION
|
static int |
NAME_SEARCH_TYPE_BEGINS_WITH
|
static int |
NAME_SEARCH_TYPE_CONTAINS
|
static int |
NAME_SEARCH_TYPE_NONE
|
Fields inherited from class atg.epub.servlet.SearchFormHandler |
---|
GENERATE_VALUES_BY_TYPE_FAILED, INVALID_KEYWORD_SEARCH_STRING, INVALID_PROP_COMBINATION, INVALID_SEARCH_PROPERTY_NAMES, NO_PROPERTY_NAMES_FOR_ITEM, UNMATCHED_QUOTES |
Constructor Summary | |
---|---|
AssetSearchFormHandler()
|
Method Summary | |
---|---|
protected java.util.ArrayList |
findChildFolders(VirtualFile pFolder)
Finds the subfolders for a given VirtualFile. |
protected java.util.ArrayList |
findParentFolders(VirtualFile pFolder)
Finds the parents of a given folder (inluding current folder) The list is in reverse tree order (i.e. |
int |
getACTION_CHANGE_CURRENT_DIRECTORY()
|
int |
getACTION_CHANGE_TYPE()
|
int |
getACTION_CLICK_FOLDER()
|
int |
getACTION_SEARCH()
|
int |
getACTION_SORT_ORDER()
|
int |
getAction()
Returns property Action |
java.util.ArrayList |
getChildFolders()
Returns property ChildFolders |
java.lang.String |
getClickedFolder()
Returns property ClickedFolder |
java.lang.String |
getComponentPath()
Returns property ComponentPath |
VirtualFile |
getCurrentFile()
Returns property CurrentFile |
protected java.lang.String |
getDisplayNameProperty(Repository pRepository,
java.lang.String pTypeName)
Repository items that implement 'getItemDisplayNameProperty()' ought to do so via an interface. |
java.lang.String |
getItemType()
Returns property ItemType |
int |
getNameSearchType()
Return the name search type |
java.util.ArrayList |
getParentFolders()
Returns property ParentFolders |
VirtualFile |
getRootFile(VirtualFileSystem pVFS)
|
java.lang.String |
getRootFolderName()
Returns property RootFolderName |
boolean |
handleChangeCurrentDirectory(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Handle method to update form elements when current directory is changed |
void |
handleChangeCurrentDirectory(javax.portlet.PortletRequest pRequest,
javax.portlet.PortletResponse pResponse)
Handle method to update form elements when current directory is changed |
boolean |
handleChangeType(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Handle method to update form elements when type is changed |
void |
handleChangeType(javax.portlet.PortletRequest pRequest,
javax.portlet.PortletResponse pResponse)
Handle method to update form elements when type is changed |
boolean |
handleClickFolder(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Handle method to |
void |
handleClickFolder(javax.portlet.PortletRequest pRequest,
javax.portlet.PortletResponse pResponse)
Handle method to update form elements when a folder is clicked |
boolean |
handlePerformAction(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Handle the type of action specified in actionType |
void |
handlePerformAction(javax.portlet.PortletRequest pRequest,
javax.portlet.PortletResponse pResponse)
Handle the type of action |
boolean |
isIncludeSubFolders()
Returns property IncludeSubFolders |
protected boolean |
prepareSearch(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Prepare for special asset type searches. |
void |
setAction(int pAction)
Sets property Action |
void |
setChildFolders(java.util.ArrayList pChildFolders)
Sets property ChildFolders |
void |
setClickedFolder(java.lang.String pClickedFolder)
Sets property ClickedFolder |
void |
setComponentPath(java.lang.String pComponentPath)
Sets property ComponentPath |
void |
setCurrentFile(VirtualFile pCurrentFile)
Sets property CurrentFile |
void |
setIncludeSubFolders(boolean pIncludeSubFolders)
Sets property IncludeSubFolders |
void |
setItemType(java.lang.String pItemType)
Sets property ItemType |
void |
setNameSearchType(int pType)
Set name search type to either NAME_SEARCH_TYPE_CONTAINS, NAME_SEARCH_TYPE_BEGINS_WITH, or NAME_SEARCH_TYPE_NONE to disable this type of search. |
void |
setParentFolders(java.util.ArrayList pParentFolders)
Sets property ParentFolders |
void |
setRootFolderName(java.lang.String pRootFolderName)
Sets property RootFolderName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final int NAME_SEARCH_TYPE_NONE
public static final int NAME_SEARCH_TYPE_BEGINS_WITH
public static final int NAME_SEARCH_TYPE_CONTAINS
public static final int ACTION_CHANGE_TYPE
public static final int ACTION_CHANGE_CURRENT_DIRECTORY
public static final int ACTION_CLICK_FOLDER
public static final int ACTION_SEARCH
public static final int ACTION_SORT_ORDER
Constructor Detail |
---|
public AssetSearchFormHandler()
Method Detail |
---|
public int getACTION_CHANGE_TYPE()
public int getACTION_CHANGE_CURRENT_DIRECTORY()
public int getACTION_CLICK_FOLDER()
public int getACTION_SEARCH()
public int getACTION_SORT_ORDER()
public void setNameSearchType(int pType)
name
- search typepublic int getNameSearchType()
public void setIncludeSubFolders(boolean pIncludeSubFolders)
setIncludeSubFolders
in class SearchFormHandler
public boolean isIncludeSubFolders()
isIncludeSubFolders
in class SearchFormHandler
public void setAction(int pAction)
public int getAction()
public void setClickedFolder(java.lang.String pClickedFolder)
public java.lang.String getClickedFolder()
public void setChildFolders(java.util.ArrayList pChildFolders)
public java.util.ArrayList getChildFolders()
public void setParentFolders(java.util.ArrayList pParentFolders)
public java.util.ArrayList getParentFolders()
public void setRootFolderName(java.lang.String pRootFolderName)
public java.lang.String getRootFolderName()
public void setCurrentFile(VirtualFile pCurrentFile)
public VirtualFile getCurrentFile()
public VirtualFile getRootFile(VirtualFileSystem pVFS)
public void setComponentPath(java.lang.String pComponentPath)
public java.lang.String getComponentPath()
public void setItemType(java.lang.String pItemType)
public java.lang.String getItemType()
public void handleChangeType(javax.portlet.PortletRequest pRequest, javax.portlet.PortletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public boolean handleChangeType(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void handleChangeCurrentDirectory(javax.portlet.PortletRequest pRequest, javax.portlet.PortletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public boolean handleChangeCurrentDirectory(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void handleClickFolder(javax.portlet.PortletRequest pRequest, javax.portlet.PortletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public boolean handleClickFolder(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void handlePerformAction(javax.portlet.PortletRequest pRequest, javax.portlet.PortletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public boolean handlePerformAction(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
protected java.util.ArrayList findParentFolders(VirtualFile pFolder)
protected java.util.ArrayList findChildFolders(VirtualFile pFolder)
protected boolean prepareSearch(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest
- the portal requestpResponse
- the portal response
protected java.lang.String getDisplayNameProperty(Repository pRepository, java.lang.String pTypeName)
pRepository
- the repositorypTypeName
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |