Java Doc for ResourcesAction.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » content » tool » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.content.tool 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.cheftool.PagedResourceHelperAction
   org.sakaiproject.content.tool.ResourcesAction

ResourcesAction
public class ResourcesAction extends PagedResourceHelperAction (Code)

ResourceAction is a ContentHosting application


author:
   University of Michigan, CHEF Software Development Team
version:
   $Revision: 33703 $

Inner Class :public class Action
Inner Class :public static class ChefPathItem
Inner Class :public enum ContentPermissions
Inner Class :public static class ElementCarrier
Inner Class :public static class MetadataGroup extends Vector

Field Summary
final public static  List<ActionType>ACTIONS_ON_FOLDERS
    
final public static  List<ActionType>ACTIONS_ON_MULTIPLE_ITEMS
    
final public static  List<ActionType>ACTIONS_ON_RESOURCES
    
final public static  List<ActionType>CONTENT_DELETE_ACTIONS
    
final public static  List<ActionType>CONTENT_MODIFY_ACTIONS
    
final public static  List<ActionType>CONTENT_NEW_ACTIONS
    
final public static  List<ActionType>CONTENT_NEW_FOR_PARENT_ACTIONS
    
final public static  List<ActionType>CONTENT_READ_ACTIONS
    
final public static  StringCOPYRIGHT_PATH
    
final public static  List<ActionType>CREATION_ACTIONS
    
final protected static  intDEFAULT_PAGE_SIZE
     The default number of site collections per page.
final public static  StringDELIM
    
final protected static  intEXPANDABLE_FOLDER_SIZE_LIMIT
     The default number of members for a collection at which this tool should refuse to expand the collection.
final public static  intMAXIMUM_ATTEMPTS_FOR_UNIQUENESS
    
final public static  StringMIME_TYPE_DOCUMENT_HTML
    
final public static  StringMIME_TYPE_DOCUMENT_PLAINTEXT
    
final public static  StringMIME_TYPE_STRUCTOBJ
    
final public static  StringMODE_ATTACHMENT_CONFIRM
    
final public static  StringMODE_ATTACHMENT_CONFIRM_INIT
    
final public static  StringMODE_ATTACHMENT_CREATE
    
final public static  StringMODE_ATTACHMENT_CREATE_INIT
    
final public static  StringMODE_ATTACHMENT_DONE
    
final public static  StringMODE_ATTACHMENT_EDIT_ITEM
    
final public static  StringMODE_ATTACHMENT_EDIT_ITEM_INIT
    
final public static  StringMODE_ATTACHMENT_NEW_ITEM
    
final public static  StringMODE_ATTACHMENT_NEW_ITEM_INIT
    
final public static  StringMODE_ATTACHMENT_SELECT
    
final public static  StringMODE_ATTACHMENT_SELECT_INIT
    
final public static  StringMODE_HELPER
    
final static  StringMODE_REVISE_METADATA
    
final protected static  longONE_WEEK
     A long representing the number of milliseconds in one week.
final protected static  StringPARAM_PAGESIZE
    
final public static  List<ActionType>PASTE_COPIED_ACTIONS
    
final public static  List<ActionType>PASTE_MOVED_ACTIONS
    
final public static  StringPREFIX
    
final protected static  StringPUBLIC_ACCESS
    
final public static  StringRESOURCES_MODE_DROPBOX
    
final public static  StringRESOURCES_MODE_HELPER
    
final public static  StringRESOURCES_MODE_RESOURCES
    
final public static  booleanSHOW_ALL_SITES_IN_FILE_PICKER
    
final public static  List<ActionType>SITE_UPDATE_ACTIONS
    
final public static  StringSTATE_COLUMN_ITEM_ID
    
final public static  StringSTATE_CREATE_COLLECTION_ID
    
final protected static  StringSTATE_CREATE_MESSAGE
    
final public static  StringSTATE_CREATE_NUMBER
    
final protected static  StringSTATE_CREATE_WIZARD_ACTION
    
final protected static  StringSTATE_CREATE_WIZARD_COLLECTION_ID
    
final protected static  StringSTATE_CREATE_WIZARD_ITEM
    
final protected static  StringSTATE_DEFAULT_RETRACT_TIME
    
final protected static  StringSTATE_DELETE_SET
    
final protected static  StringSTATE_EXPANDED_FOLDER_SORT_MAP
    
final static  StringSTATE_FILE_UPLOAD_MAX_SIZE
    
final public static  StringSTATE_HAS_ATTACHMENT_BEFORE
    
final public static  StringSTATE_HELPER_CANCELED_BY_USER
     the name of the state attribute indicating that the user canceled out of the helper.
final protected static  StringSTATE_HIGHLIGHTED_ITEMS
    
final protected static  StringSTATE_ITEMS_TO_BE_COPIED
    
final protected static  StringSTATE_ITEMS_TO_BE_MOVED
    
final protected static  StringSTATE_LIST_VIEW_SORT
    
final public static  StringSTATE_MODE_RESOURCES
     The resources, helper or dropbox mode.
final protected static  StringSTATE_NON_EMPTY_DELETE_SET
    
final protected static  StringSTATE_REMOVED_ATTACHMENTS
    
final protected static  StringSTATE_REORDER_FOLDER
    
final protected static  StringSTATE_REORDER_SORT
    
final protected static  StringSTATE_REORDER_SORT_ASC
    
final protected static  StringSTATE_REORDER_SORT_BY
    
final public static  StringSTATE_RESOURCES_HELPER_MODE
     The resources, helper or dropbox mode.
final protected static  StringSTATE_REVISE_PROPERTIES_ACTION
    
final protected static  StringSTATE_REVISE_PROPERTIES_ENTITY_ID
    
final protected static  StringSTATE_REVISE_PROPERTIES_ITEM
    
final public static  StringSTATE_SHOW_ALL_SITES
    
final protected static  StringSTATE_SHOW_COPY_ACTION
    
final protected static  StringSTATE_SHOW_MOVE_ACTION
    
final public static  StringSTATE_SHOW_OTHER_SITES
    
final protected static  StringSTATE_SHOW_REMOVE_ACTION
    
final public static  StringSTATE_STACK_CREATE_COLLECTION_ID
    
final public static  StringSTATE_STACK_CREATE_NUMBER
    
final public static  StringSTATE_STACK_CREATE_TYPE
    
final public static  StringSTATE_STACK_EDIT_COLLECTION_ID
    
final public static  StringSTATE_STACK_EDIT_ID
    
final public static  StringSTATE_STACK_STRUCTOBJ_TYPE
    
final public static  StringSTATE_SUSPENDED_OPERATIONS_STACK
    
final public static  StringSTATE_SUSPENDED_OPERATIONS_STACK_DEPTH
    
final protected static  StringSTATE_TOP_MESSAGE_INDEX
    
final protected static  StringSTATE_USING_CREATIVE_COMMONS
    
final public static  StringTYPE_HTML
    
final public static  StringTYPE_TEXT
    
final public static  StringTYPE_UPLOAD
    
final public static  StringTYPE_URL
    
final public static  StringUTF_8_ENCODING
    
final static  Loglogger
    
public static  ResourceLoadertrb
    


Method Summary
protected  booleanaddInstance(String field, List properties)
     Search a flat list of ResourcesMetadata properties for one whose localname matches "field".
public  StringbuildColumnsContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)
     Build the context to establish a custom-ordering of resources/folders within a folder.
public  StringbuildCreateWizardContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)
    
public  StringbuildDeleteConfirmContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)
    
public  StringbuildDeleteFinishContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)
    
public  StringbuildListContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)
    
public  StringbuildMainPanelContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)
    
public static  StringbuildMoreContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)
    
public  StringbuildOptionsPanelContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)
    
public  StringbuildReorderContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)
     Build the context to establish a custom-ordering of resources/folders within a folder.
public  StringbuildReviseMetadataContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)
    
public  StringbuildWebdavContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)
    
protected static  voidcapturePropertyValues(ParameterParser params, ResourcesEditItem item, List properties)
    
protected  voidcleanup(ToolSession toolSession, String prefix)
     Iterate over attributes in ToolSession and remove all attributes starting with a particular prefix.
public static  voidcopyrightChoicesIntoContext(SessionState state, Context context)
    
protected static  List<ContentCollection>createFolders(SessionState state, ResourceToolActionPipe pipe)
    
public static  List<ContentResource>createResources(ResourceToolActionPipe pipe)
    
public static  List<ContentResource>createUrls(SessionState state, ResourceToolActionPipe pipe)
    
protected  voiddeleteItem(SessionState state, String itemId)
    
protected  voiddeleteItems(SessionState state, Set deleteIdSet)
    
public  voiddoCancel(RunData data)
    
public  voiddoCancelOptions(RunData data)
    
public  voiddoCollapse_collection(RunData data)
    
public  voiddoColumns(RunData data)
    
public  voiddoCompleteCreateWizard(RunData data)
    
public  voiddoCopy(RunData data)
    
public  voiddoDeleteconfirm(RunData data)
    
public  voiddoDispatchAction(RunData data)
    
public  voiddoExpand_collection(RunData data)
    
public  voiddoExpandall(RunData data)
     Expand all the collection resources.
public  voiddoFinalizeDelete(RunData data)
    
public  voiddoHideOtherSites(RunData data)
    
public  voiddoHide_metadata(RunData data)
    
public  voiddoHierarchy(RunData data)
    
public  voiddoList(RunData data)
     Expand all the collection resources and put in EXPANDED_COLLECTIONS attribute.
public  voiddoMove(RunData data)
     Handle user's selection of items to be moved.
public static  voiddoMoveitems(RunData data)
    
public  voiddoMultiItemDispatch(RunData data)
    
public  voiddoNavigate(RunData data)
    
public static  voiddoPasteitem(RunData data)
    
public static  voiddoPasteitems(RunData data)
    
public  voiddoPermissions(RunData data, Context context)
    
public  voiddoReorder(RunData data)
    
public  voiddoReviseProperties(RunData data)
    
public  voiddoSaveOrder(RunData data)
    
public  voiddoShowMembers(RunData data)
    
public  voiddoShowOtherSites(RunData data)
    
public  voiddoShow_metadata(RunData data)
    
public  voiddoShow_webdav(RunData data)
    
public  voiddoSort(RunData data)
    
public  voiddoUnexpandall(RunData data)
    
public  voiddoUpdateOptions(RunData data)
    
protected static  StringduplicateItem(SessionState state, String itemId, String collectionId)
    
protected  intfindResourceInList(List resources, String id)
     Find the resource with this id in the list.
Parameters:
  messages - The list of messages.
Parameters:
  id - The message id.
protected  voidfinishAction(SessionState state, ToolSession toolSession, ResourceToolActionPipe pipe)
    
protected static  List<ResourceToolAction>getActions(ContentEntity selectedItem, Set<ContentPermissions> permissions, ResourceTypeRegistry registry)
    
protected static  List<ResourceToolAction>getAddActions(ContentEntity selectedItem, Set<ContentPermissions> permissions, ResourceTypeRegistry registry)
    
public static  ListgetCollectionPath(SessionState state)
    
public static  ResourcesEditItemgetEditItem(String id, String collectionId, RunData data)
    
public static  StringgetFileSizeString(long size_long, ResourceLoader rl)
    
protected  ListItemgetListItem(SessionState state)
    
protected static  ListgetListView(String collectionId, Set highlightedItems, ResourcesBrowseItem parent, boolean isLocal, SessionState state)
     Get the items in this folder that should be seen.
public static  List<ResourceToolAction>getPasteActions(ContentEntity selectedItem, Set<ContentPermissions> permissions, ResourceTypeRegistry registry, List<String> items_to_be_moved, List<String> items_to_be_copied)
    
protected static  Collection<ContentPermissions>getPermissions(String id, Collection<ContentPermissions> inheritedPermissions)
    
protected  ResourceTypegetResourceType(String id, SessionState state)
    
protected static  UsergetUserProperty(ResourceProperties props, String name)
    
protected  voidinitState(SessionState state, VelocityPortlet portlet, JetspeedRunData data)
    
public  voidinitStateAttributes(SessionState state, VelocityPortlet portlet)
    
protected static  StringisolateName(String id)
     Find the resource name of a given resource id or filepath.
Parameters:
  id - The resource id.
protected static  ListnewEditItems(String collectionId, String itemtype, String encoding, String defaultCopyrightStatus, boolean preventPublicDisplay, Time defaultRetractDate, int number)
    
protected  booleannotificationEnabled(SessionState state)
    
protected  voidpasteItem(SessionState state, String collectionId)
    
protected  List<ListItem>prepPage(SessionState state)
     Prepare the current page of site collections to display.
public static  voidpublicDisplayChoicesIntoContext(SessionState state, Context context)
    
protected  List<ListItem>readAllResources(SessionState state)
     Develop a list of all the site collections that there are to page.
protected  voidreplaceContent(ResourceToolActionPipe pipe)
    
public static  voidreviseContent(ResourceToolActionPipe pipe)
    
protected static  StringvalidateURL(String url)
    

Field Detail
ACTIONS_ON_FOLDERS
final public static List<ActionType> ACTIONS_ON_FOLDERS(Code)



ACTIONS_ON_MULTIPLE_ITEMS
final public static List<ActionType> ACTIONS_ON_MULTIPLE_ITEMS(Code)



ACTIONS_ON_RESOURCES
final public static List<ActionType> ACTIONS_ON_RESOURCES(Code)



CONTENT_DELETE_ACTIONS
final public static List<ActionType> CONTENT_DELETE_ACTIONS(Code)



CONTENT_MODIFY_ACTIONS
final public static List<ActionType> CONTENT_MODIFY_ACTIONS(Code)



CONTENT_NEW_ACTIONS
final public static List<ActionType> CONTENT_NEW_ACTIONS(Code)



CONTENT_NEW_FOR_PARENT_ACTIONS
final public static List<ActionType> CONTENT_NEW_FOR_PARENT_ACTIONS(Code)



CONTENT_READ_ACTIONS
final public static List<ActionType> CONTENT_READ_ACTIONS(Code)



COPYRIGHT_PATH
final public static String COPYRIGHT_PATH(Code)
copyright path -- MUST have same value as AccessServlet.COPYRIGHT_PATH



CREATION_ACTIONS
final public static List<ActionType> CREATION_ACTIONS(Code)



DEFAULT_PAGE_SIZE
final protected static int DEFAULT_PAGE_SIZE(Code)
The default number of site collections per page.



DELIM
final public static String DELIM(Code)



EXPANDABLE_FOLDER_SIZE_LIMIT
final protected static int EXPANDABLE_FOLDER_SIZE_LIMIT(Code)
The default number of members for a collection at which this tool should refuse to expand the collection. Used only if value can't be read from config service.



MAXIMUM_ATTEMPTS_FOR_UNIQUENESS
final public static int MAXIMUM_ATTEMPTS_FOR_UNIQUENESS(Code)



MIME_TYPE_DOCUMENT_HTML
final public static String MIME_TYPE_DOCUMENT_HTML(Code)



MIME_TYPE_DOCUMENT_PLAINTEXT
final public static String MIME_TYPE_DOCUMENT_PLAINTEXT(Code)



MIME_TYPE_STRUCTOBJ
final public static String MIME_TYPE_STRUCTOBJ(Code)



MODE_ATTACHMENT_CONFIRM
final public static String MODE_ATTACHMENT_CONFIRM(Code)



MODE_ATTACHMENT_CONFIRM_INIT
final public static String MODE_ATTACHMENT_CONFIRM_INIT(Code)



MODE_ATTACHMENT_CREATE
final public static String MODE_ATTACHMENT_CREATE(Code)



MODE_ATTACHMENT_CREATE_INIT
final public static String MODE_ATTACHMENT_CREATE_INIT(Code)



MODE_ATTACHMENT_DONE
final public static String MODE_ATTACHMENT_DONE(Code)



MODE_ATTACHMENT_EDIT_ITEM
final public static String MODE_ATTACHMENT_EDIT_ITEM(Code)



MODE_ATTACHMENT_EDIT_ITEM_INIT
final public static String MODE_ATTACHMENT_EDIT_ITEM_INIT(Code)



MODE_ATTACHMENT_NEW_ITEM
final public static String MODE_ATTACHMENT_NEW_ITEM(Code)



MODE_ATTACHMENT_NEW_ITEM_INIT
final public static String MODE_ATTACHMENT_NEW_ITEM_INIT(Code)



MODE_ATTACHMENT_SELECT
final public static String MODE_ATTACHMENT_SELECT(Code)
modes for attachment helper



MODE_ATTACHMENT_SELECT_INIT
final public static String MODE_ATTACHMENT_SELECT_INIT(Code)



MODE_HELPER
final public static String MODE_HELPER(Code)



MODE_REVISE_METADATA
final static String MODE_REVISE_METADATA(Code)



ONE_WEEK
final protected static long ONE_WEEK(Code)
A long representing the number of milliseconds in one week. Used for date calculations



PARAM_PAGESIZE
final protected static String PARAM_PAGESIZE(Code)



PASTE_COPIED_ACTIONS
final public static List<ActionType> PASTE_COPIED_ACTIONS(Code)



PASTE_MOVED_ACTIONS
final public static List<ActionType> PASTE_MOVED_ACTIONS(Code)



PREFIX
final public static String PREFIX(Code)



PUBLIC_ACCESS
final protected static String PUBLIC_ACCESS(Code)
string used to represent "public" access mode in UI elements



RESOURCES_MODE_DROPBOX
final public static String RESOURCES_MODE_DROPBOX(Code)



RESOURCES_MODE_HELPER
final public static String RESOURCES_MODE_HELPER(Code)



RESOURCES_MODE_RESOURCES
final public static String RESOURCES_MODE_RESOURCES(Code)



SHOW_ALL_SITES_IN_FILE_PICKER
final public static boolean SHOW_ALL_SITES_IN_FILE_PICKER(Code)
The default value for whether to show all sites in file-picker (used if global value can't be read from server config service)



SITE_UPDATE_ACTIONS
final public static List<ActionType> SITE_UPDATE_ACTIONS(Code)



STATE_COLUMN_ITEM_ID
final public static String STATE_COLUMN_ITEM_ID(Code)



STATE_CREATE_COLLECTION_ID
final public static String STATE_CREATE_COLLECTION_ID(Code)



STATE_CREATE_MESSAGE
final protected static String STATE_CREATE_MESSAGE(Code)



STATE_CREATE_NUMBER
final public static String STATE_CREATE_NUMBER(Code)



STATE_CREATE_WIZARD_ACTION
final protected static String STATE_CREATE_WIZARD_ACTION(Code)



STATE_CREATE_WIZARD_COLLECTION_ID
final protected static String STATE_CREATE_WIZARD_COLLECTION_ID(Code)



STATE_CREATE_WIZARD_ITEM
final protected static String STATE_CREATE_WIZARD_ITEM(Code)



STATE_DEFAULT_RETRACT_TIME
final protected static String STATE_DEFAULT_RETRACT_TIME(Code)
name of state attribute for the default retract time



STATE_DELETE_SET
final protected static String STATE_DELETE_SET(Code)



STATE_EXPANDED_FOLDER_SORT_MAP
final protected static String STATE_EXPANDED_FOLDER_SORT_MAP(Code)



STATE_FILE_UPLOAD_MAX_SIZE
final static String STATE_FILE_UPLOAD_MAX_SIZE(Code)
state attribute for the maximum size for file upload



STATE_HAS_ATTACHMENT_BEFORE
final public static String STATE_HAS_ATTACHMENT_BEFORE(Code)
State attribute for where there is at least one attachment before invoking attachment tool



STATE_HELPER_CANCELED_BY_USER
final public static String STATE_HELPER_CANCELED_BY_USER(Code)
the name of the state attribute indicating that the user canceled out of the helper. Is set only if the user canceled out of the helper.



STATE_HIGHLIGHTED_ITEMS
final protected static String STATE_HIGHLIGHTED_ITEMS(Code)



STATE_ITEMS_TO_BE_COPIED
final protected static String STATE_ITEMS_TO_BE_COPIED(Code)



STATE_ITEMS_TO_BE_MOVED
final protected static String STATE_ITEMS_TO_BE_MOVED(Code)



STATE_LIST_VIEW_SORT
final protected static String STATE_LIST_VIEW_SORT(Code)



STATE_MODE_RESOURCES
final public static String STATE_MODE_RESOURCES(Code)
The resources, helper or dropbox mode.



STATE_NON_EMPTY_DELETE_SET
final protected static String STATE_NON_EMPTY_DELETE_SET(Code)



STATE_REMOVED_ATTACHMENTS
final protected static String STATE_REMOVED_ATTACHMENTS(Code)



STATE_REORDER_FOLDER
final protected static String STATE_REORDER_FOLDER(Code)



STATE_REORDER_SORT
final protected static String STATE_REORDER_SORT(Code)



STATE_REORDER_SORT_ASC
final protected static String STATE_REORDER_SORT_ASC(Code)
The sort ascending or decending for the reorder context



STATE_REORDER_SORT_BY
final protected static String STATE_REORDER_SORT_BY(Code)
The property (column) to sort by in the reorder context



STATE_RESOURCES_HELPER_MODE
final public static String STATE_RESOURCES_HELPER_MODE(Code)
The resources, helper or dropbox mode.



STATE_REVISE_PROPERTIES_ACTION
final protected static String STATE_REVISE_PROPERTIES_ACTION(Code)



STATE_REVISE_PROPERTIES_ENTITY_ID
final protected static String STATE_REVISE_PROPERTIES_ENTITY_ID(Code)



STATE_REVISE_PROPERTIES_ITEM
final protected static String STATE_REVISE_PROPERTIES_ITEM(Code)



STATE_SHOW_ALL_SITES
final public static String STATE_SHOW_ALL_SITES(Code)
The name of a state attribute indicating whether the resources tool/helper is allowed to show all sites the user has access to



STATE_SHOW_COPY_ACTION
final protected static String STATE_SHOW_COPY_ACTION(Code)



STATE_SHOW_MOVE_ACTION
final protected static String STATE_SHOW_MOVE_ACTION(Code)



STATE_SHOW_OTHER_SITES
final public static String STATE_SHOW_OTHER_SITES(Code)
The name of a state attribute indicating whether the wants to see other sites if that is enabled



STATE_SHOW_REMOVE_ACTION
final protected static String STATE_SHOW_REMOVE_ACTION(Code)



STATE_STACK_CREATE_COLLECTION_ID
final public static String STATE_STACK_CREATE_COLLECTION_ID(Code)



STATE_STACK_CREATE_NUMBER
final public static String STATE_STACK_CREATE_NUMBER(Code)



STATE_STACK_CREATE_TYPE
final public static String STATE_STACK_CREATE_TYPE(Code)



STATE_STACK_EDIT_COLLECTION_ID
final public static String STATE_STACK_EDIT_COLLECTION_ID(Code)



STATE_STACK_EDIT_ID
final public static String STATE_STACK_EDIT_ID(Code)



STATE_STACK_STRUCTOBJ_TYPE
final public static String STATE_STACK_STRUCTOBJ_TYPE(Code)



STATE_SUSPENDED_OPERATIONS_STACK
final public static String STATE_SUSPENDED_OPERATIONS_STACK(Code)



STATE_SUSPENDED_OPERATIONS_STACK_DEPTH
final public static String STATE_SUSPENDED_OPERATIONS_STACK_DEPTH(Code)



STATE_TOP_MESSAGE_INDEX
final protected static String STATE_TOP_MESSAGE_INDEX(Code)



STATE_USING_CREATIVE_COMMONS
final protected static String STATE_USING_CREATIVE_COMMONS(Code)
state attribute indicating whether we're using the Creative Commons dialog instead of the "old" copyright dialog



TYPE_HTML
final public static String TYPE_HTML(Code)



TYPE_TEXT
final public static String TYPE_TEXT(Code)



TYPE_UPLOAD
final public static String TYPE_UPLOAD(Code)



TYPE_URL
final public static String TYPE_URL(Code)



UTF_8_ENCODING
final public static String UTF_8_ENCODING(Code)



logger
final static Log logger(Code)



trb
public static ResourceLoader trb(Code)
Resource bundle using current language locale





Method Detail
addInstance
protected boolean addInstance(String field, List properties)(Code)
Search a flat list of ResourcesMetadata properties for one whose localname matches "field". If found and the field can have additional instances, increment the count for that item.
Parameters:
  field -
Parameters:
  properties - true if the field is found, false otherwise.



buildColumnsContext
public String buildColumnsContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)(Code)
Build the context to establish a custom-ordering of resources/folders within a folder.



buildCreateWizardContext
public String buildCreateWizardContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)(Code)



buildDeleteConfirmContext
public String buildDeleteConfirmContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)(Code)
Build the context for delete confirmation page



buildDeleteFinishContext
public String buildDeleteFinishContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)(Code)

Parameters:
  portlet -
Parameters:
  context -
Parameters:
  data -
Parameters:
  state -



buildListContext
public String buildListContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)(Code)
Build the context for the new list view, which uses the resources type registry



buildMainPanelContext
public String buildMainPanelContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)(Code)
Build the context for normal display



buildMoreContext
public static String buildMoreContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)(Code)
Build the context to show the list of resource properties



buildOptionsPanelContext
public String buildOptionsPanelContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)(Code)
Setup for customization



buildReorderContext
public String buildReorderContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)(Code)
Build the context to establish a custom-ordering of resources/folders within a folder.



buildReviseMetadataContext
public String buildReviseMetadataContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)(Code)

Parameters:
  portlet -
Parameters:
  context -
Parameters:
  data -
Parameters:
  state -



buildWebdavContext
public String buildWebdavContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)(Code)
Build the context for add display



capturePropertyValues
protected static void capturePropertyValues(ParameterParser params, ResourcesEditItem item, List properties)(Code)



cleanup
protected void cleanup(ToolSession toolSession, String prefix)(Code)
Iterate over attributes in ToolSession and remove all attributes starting with a particular prefix.
Parameters:
  toolSession -
Parameters:
  prefix -



copyrightChoicesIntoContext
public static void copyrightChoicesIntoContext(SessionState state, Context context)(Code)
put copyright info into context



createFolders
protected static List<ContentCollection> createFolders(SessionState state, ResourceToolActionPipe pipe)(Code)

Parameters:
  pipe -
Parameters:
  state -



createResources
public static List<ContentResource> createResources(ResourceToolActionPipe pipe)(Code)

Parameters:
  pipe -



createUrls
public static List<ContentResource> createUrls(SessionState state, ResourceToolActionPipe pipe)(Code)



deleteItem
protected void deleteItem(SessionState state, String itemId)(Code)

Parameters:
  state -
Parameters:
  deleteIdSet -



deleteItems
protected void deleteItems(SessionState state, Set deleteIdSet)(Code)

Parameters:
  state -
Parameters:
  deleteIdSet -
Parameters:
  deleteIds -



doCancel
public void doCancel(RunData data)(Code)
doCancel to return to the previous state



doCancelOptions
public void doCancelOptions(RunData data)(Code)
cancel out of options mode



doCollapse_collection
public void doCollapse_collection(RunData data)(Code)
Remove the collection id from the expanded collection list



doColumns
public void doColumns(RunData data)(Code)



doCompleteCreateWizard
public void doCompleteCreateWizard(RunData data)(Code)

Parameters:
  data -



doCopy
public void doCopy(RunData data)(Code)
set the state name to be "copy" if any item has been selected for copying



doDeleteconfirm
public void doDeleteconfirm(RunData data)(Code)
set the state name to be "deletecofirm" if any item has been selected for deleting



doDispatchAction
public void doDispatchAction(RunData data)(Code)



doExpand_collection
public void doExpand_collection(RunData data) throws IdUnusedException, TypeException, PermissionException(Code)
Add the collection id into the expanded collection list
throws:
  PermissionException -
throws:
  TypeException -
throws:
  IdUnusedException -



doExpandall
public void doExpandall(RunData data)(Code)
Expand all the collection resources.



doFinalizeDelete
public void doFinalizeDelete(RunData data)(Code)
doDelete to delete the selected collection or resource items



doHideOtherSites
public void doHideOtherSites(RunData data)(Code)

Parameters:
  data -



doHide_metadata
public void doHide_metadata(RunData data)(Code)

Parameters:
  data -



doHierarchy
public void doHierarchy(RunData data)(Code)



doList
public void doList(RunData data)(Code)
Expand all the collection resources and put in EXPANDED_COLLECTIONS attribute.



doMove
public void doMove(RunData data)(Code)
Handle user's selection of items to be moved.



doMoveitems
public static void doMoveitems(RunData data)(Code)
Paste the item(s) selected to be moved



doMultiItemDispatch
public void doMultiItemDispatch(RunData data)(Code)



doNavigate
public void doNavigate(RunData data)(Code)
Navigate in the resource hireachy



doPasteitem
public static void doPasteitem(RunData data)(Code)
Paste the previously copied item(s)



doPasteitems
public static void doPasteitems(RunData data)(Code)
Paste the previously copied item(s)



doPermissions
public void doPermissions(RunData data, Context context)(Code)
Fire up the permissions editor for the tool's permissions



doReorder
public void doReorder(RunData data)(Code)
Sort based on the given property



doReviseProperties
public void doReviseProperties(RunData data)(Code)



doSaveOrder
public void doSaveOrder(RunData data)(Code)
Sort based on the given property



doShowMembers
public void doShowMembers(RunData data)(Code)



doShowOtherSites
public void doShowOtherSites(RunData data)(Code)

Parameters:
  data -



doShow_metadata
public void doShow_metadata(RunData data)(Code)

Parameters:
  data -



doShow_webdav
public void doShow_webdav(RunData data)(Code)
Show information about WebDAV



doSort
public void doSort(RunData data)(Code)
Sort based on the given property



doUnexpandall
public void doUnexpandall(RunData data)(Code)
Unexpand all the collection resources



doUpdateOptions
public void doUpdateOptions(RunData data)(Code)
Read user inputs from options form and update accordingly



duplicateItem
protected static String duplicateItem(SessionState state, String itemId, String collectionId)(Code)

Parameters:
  state -
Parameters:
  itemId -
Parameters:
  collectionId -



findResourceInList
protected int findResourceInList(List resources, String id)(Code)
Find the resource with this id in the list.
Parameters:
  messages - The list of messages.
Parameters:
  id - The message id. The index position in the list of the message with this id, or -1 if not found.



finishAction
protected void finishAction(SessionState state, ToolSession toolSession, ResourceToolActionPipe pipe)(Code)

Parameters:
  state -
Parameters:
  toolSession -
Parameters:
  pipe -



getActions
protected static List<ResourceToolAction> getActions(ContentEntity selectedItem, Set<ContentPermissions> permissions, ResourceTypeRegistry registry)(Code)

Parameters:
  selectedItem -
Parameters:
  permissions - TODO
Parameters:
  registry -



getAddActions
protected static List<ResourceToolAction> getAddActions(ContentEntity selectedItem, Set<ContentPermissions> permissions, ResourceTypeRegistry registry)(Code)

Parameters:
  selectedItem -
Parameters:
  permissions - TODO
Parameters:
  registry -



getCollectionPath
public static List getCollectionPath(SessionState state)(Code)

Parameters:
  state -
Parameters:
  homeCollectionId -
Parameters:
  currentCollectionId -



getEditItem
public static ResourcesEditItem getEditItem(String id, String collectionId, RunData data)(Code)



getFileSizeString
public static String getFileSizeString(long size_long, ResourceLoader rl)(Code)

Parameters:
  size_long -
Parameters:
  rl -



getListItem
protected ListItem getListItem(SessionState state)(Code)

Parameters:
  state -



getListView
protected static List getListView(String collectionId, Set highlightedItems, ResourcesBrowseItem parent, boolean isLocal, SessionState state)(Code)
Get the items in this folder that should be seen.
Parameters:
  collectionId - - String version of
Parameters:
  expandedCollections - - Hash of collection resources
Parameters:
  sortedBy - - pass through to ContentHostingComparator
Parameters:
  sortedAsc - - pass through to ContentHostingComparator
Parameters:
  parent - - The folder containing this item
Parameters:
  isLocal - - true if navigation root and home collection id of site are the same, false otherwise
Parameters:
  state - - The session state a List of ResourcesBrowseItem objects



getPasteActions
public static List<ResourceToolAction> getPasteActions(ContentEntity selectedItem, Set<ContentPermissions> permissions, ResourceTypeRegistry registry, List<String> items_to_be_moved, List<String> items_to_be_copied)(Code)



getPermissions
protected static Collection<ContentPermissions> getPermissions(String id, Collection<ContentPermissions> inheritedPermissions)(Code)

Parameters:
  inheritedPermissions - TODO
Parameters:
  context -



getResourceType
protected ResourceType getResourceType(String id, SessionState state)(Code)



getUserProperty
protected static User getUserProperty(ResourceProperties props, String name)(Code)



initState
protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData data)(Code)
Populate the state object, if needed - override to do something!



initStateAttributes
public void initStateAttributes(SessionState state, VelocityPortlet portlet)(Code)



isolateName
protected static String isolateName(String id)(Code)
Find the resource name of a given resource id or filepath.
Parameters:
  id - The resource id. the resource name.



newEditItems
protected static List newEditItems(String collectionId, String itemtype, String encoding, String defaultCopyrightStatus, boolean preventPublicDisplay, Time defaultRetractDate, int number)(Code)



notificationEnabled
protected boolean notificationEnabled(SessionState state)(Code)
is notification enabled?



pasteItem
protected void pasteItem(SessionState state, String collectionId)(Code)

Parameters:
  state -



prepPage
protected List<ListItem> prepPage(SessionState state)(Code)
Prepare the current page of site collections to display. List of ListItem objects to display on this page.



publicDisplayChoicesIntoContext
public static void publicDisplayChoicesIntoContext(SessionState state, Context context)(Code)



readAllResources
protected List<ListItem> readAllResources(SessionState state)(Code)
Develop a list of all the site collections that there are to page. Sort them as appropriate, and apply search criteria.



replaceContent
protected void replaceContent(ResourceToolActionPipe pipe)(Code)



reviseContent
public static void reviseContent(ResourceToolActionPipe pipe)(Code)

Parameters:
  pipe -
Parameters:
  action -



validateURL
protected static String validateURL(String url) throws MalformedURLException(Code)

Parameters:
  url -
throws:
  MalformedURLException -



Fields inherited from org.sakaiproject.cheftool.PagedResourceHelperAction
final protected static int DEFAULT_PAGE_SIZE(Code)(Java Doc)
final protected static String FORM_SEARCH(Code)(Java Doc)
final protected static String PARAM_PAGESIZE(Code)(Java Doc)
final protected static String STATE_GO_FIRST_PAGE(Code)(Java Doc)
final protected static String STATE_GO_LAST_PAGE(Code)(Java Doc)
final protected static String STATE_GO_NEXT(Code)(Java Doc)
final protected static String STATE_GO_NEXT_PAGE(Code)(Java Doc)
final protected static String STATE_GO_PREV(Code)(Java Doc)
final protected static String STATE_GO_PREV_PAGE(Code)(Java Doc)
final protected static String STATE_MANUAL_REFRESH(Code)(Java Doc)
final protected static String STATE_NEXT_EXISTS(Code)(Java Doc)
final protected static String STATE_NEXT_PAGE_EXISTS(Code)(Java Doc)
final protected static String STATE_NUM_MESSAGES(Code)(Java Doc)
final protected static String STATE_PAGESIZE(Code)(Java Doc)
final protected static String STATE_PREV_EXISTS(Code)(Java Doc)
final protected static String STATE_PREV_PAGE_EXISTS(Code)(Java Doc)
final protected static String STATE_SEARCH(Code)(Java Doc)
final protected static String STATE_TOP_PAGE_MESSAGE_ID(Code)(Java Doc)
final protected static String STATE_VIEW_ID(Code)(Java Doc)
protected static ResourceBundle rb(Code)(Java Doc)

Methods inherited from org.sakaiproject.cheftool.PagedResourceHelperAction
protected void addListPagingMenus(Menu bar, SessionState state)(Code)(Java Doc)
protected void addRefreshMenus(Menu bar, SessionState state)(Code)(Java Doc)
protected void addSearchMenus(Menu bar, SessionState state)(Code)(Java Doc)
protected void addViewPagingMenus(Menu bar, SessionState state)(Code)(Java Doc)
public void doAuto(RunData data, Context context)(Code)(Java Doc)
public void doChange_pagesize(RunData runData)(Code)(Java Doc)
public void doList_first(RunData runData)(Code)(Java Doc)
public void doList_last(RunData runData)(Code)(Java Doc)
public void doList_next(RunData runData)(Code)(Java Doc)
public void doList_prev(RunData runData)(Code)(Java Doc)
public void doRefresh(RunData data, Context context)(Code)(Java Doc)
public void doSearch(RunData runData)(Code)(Java Doc)
public void doSearch_clear(RunData runData)(Code)(Java Doc)
public void doView_next(RunData runData)(Code)(Java Doc)
public void doView_prev(RunData runData)(Code)(Java Doc)
public void enableObserver(SessionState state)(Code)(Java Doc)
protected int findResourceInList(List resources, String id)(Code)(Java Doc)
protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata)(Code)(Java Doc)
protected List prepPage(SessionState state)(Code)(Java Doc)
protected List readAllResources(SessionState state)(Code)(Java Doc)
protected void resetPaging(SessionState state)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.