Java Doc for FileItemManager.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » lenya » ac » file » 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 » Content Management System » apache lenya 2.0 » org.apache.lenya.ac.file 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.lenya.ac.file.FileItemManager

All known Subclasses:   org.apache.lenya.ac.file.FileIPRangeManager,  org.apache.lenya.ac.file.FileRoleManager,  org.apache.lenya.ac.file.FileUserManager,  org.apache.lenya.ac.file.FileGroupManager,
FileItemManager
abstract public class FileItemManager extends AbstractLogEnabled implements ItemManager(Code)
Abstract superclass for classes that manage items loaded from configuration files.

Inner Class :public static class DirectoryChangeNotifier extends AbstractLogEnabled


Constructor Summary
protected  FileItemManager(AccreditableManager accreditableManager)
     Create a new ItemManager.

Method Summary
public  voidadd(Item item)
    
public  voidaddItemManagerListener(ItemManagerListener listener)
     Attaches an item manager listener to this item manager.
public  voidconfigure(File _configurationDirectory)
     Configures the item manager.
public  booleancontains(Item item)
     Returns if the ItemManager contains an object.
Parameters:
  item - The object.
public  AccreditableManagergetAccreditableManager()
    
public  FilegetConfigurationDirectory()
     Get the directory where the items are located.
protected  FileFiltergetFileFilter()
     Get a file filter which filters for files containing items.
public  ItemgetItem(String id)
     Returns an item for a given ID.
Parameters:
  id - The id.
protected  ConfigurationgetItemConfiguration(File file)
     Loads teh configuration of an item from a file.
Parameters:
  file - The file.
public  Item[]getItems()
    
abstract protected  StringgetSuffix()
     Returns the file extension to be used.
protected  ItemloadItem(File file)
     Loads an item from a file.
Parameters:
  file - The file.
protected  voidloadItems()
     Reloads the items if an item was changed / added / removed.
protected  voidnotifyAdded(Item item)
     Notifies the listeners that an item was added.
protected  voidnotifyRemoved(Item item)
     Notifies the listeners that an item was removed.
public  voidremove(Item item)
    
protected  voidremoveItem(File file)
    
public  voidremoveItemManagerListener(ItemManagerListener listener)
     Removes an item manager listener from this item manager.
public  voidupdate(Item newItem)
     Update an item.


Constructor Detail
FileItemManager
protected FileItemManager(AccreditableManager accreditableManager)(Code)
Create a new ItemManager.
Parameters:
  accreditableManager - The AccreditableManager.




Method Detail
add
public void add(Item item) throws AccessControlException(Code)
Add an Item to this manager
Parameters:
  item - to be added
throws:
  AccessControlException - when the notification threw thisexception.



addItemManagerListener
public void addItemManagerListener(ItemManagerListener listener)(Code)
Attaches an item manager listener to this item manager.
Parameters:
  listener - An item manager listener.



configure
public void configure(File _configurationDirectory) throws AccessControlException(Code)
Configures the item manager.
Parameters:
  _configurationDirectory - where the items are fetched from
throws:
  AccessControlException - if the item manager cannot be instantiated



contains
public boolean contains(Item item)(Code)
Returns if the ItemManager contains an object.
Parameters:
  item - The object. A boolean value.



getAccreditableManager
public AccreditableManager getAccreditableManager()(Code)



getConfigurationDirectory
public File getConfigurationDirectory()(Code)
Get the directory where the items are located. a File



getFileFilter
protected FileFilter getFileFilter()(Code)
Get a file filter which filters for files containing items. a FileFilter



getItem
public Item getItem(String id)(Code)
Returns an item for a given ID.
Parameters:
  id - The id. An item.



getItemConfiguration
protected Configuration getItemConfiguration(File file) throws AccessControlException(Code)
Loads teh configuration of an item from a file.
Parameters:
  file - The file. A configuration.
throws:
  AccessControlException - when something went wrong.



getItems
public Item[] getItems()(Code)
get all items an array of items



getSuffix
abstract protected String getSuffix()(Code)
Returns the file extension to be used. A string.



loadItem
protected Item loadItem(File file) throws AccessControlException(Code)
Loads an item from a file.
Parameters:
  file - The file. An item.
throws:
  AccessControlException - when something went wrong.



loadItems
protected void loadItems() throws AccessControlException(Code)
Reloads the items if an item was changed / added / removed.
throws:
  AccessControlException - when something went wrong.



notifyAdded
protected void notifyAdded(Item item) throws AccessControlException(Code)
Notifies the listeners that an item was added.
Parameters:
  item - The item that was added.
throws:
  AccessControlException - if an error occurs.



notifyRemoved
protected void notifyRemoved(Item item) throws AccessControlException(Code)
Notifies the listeners that an item was removed.
Parameters:
  item - The item that was removed.
throws:
  AccessControlException - if an error occurs.



remove
public void remove(Item item) throws AccessControlException(Code)
Remove an item from this manager
Parameters:
  item - to be removed
throws:
  AccessControlException - when the notification threw thisexception.



removeItem
protected void removeItem(File file)(Code)



removeItemManagerListener
public void removeItemManagerListener(ItemManagerListener listener)(Code)
Removes an item manager listener from this item manager.
Parameters:
  listener - An item manager listener.



update
public void update(Item newItem) throws AccessControlException(Code)
Update an item.
Parameters:
  newItem - The new version of the item.
throws:
  AccessControlException - when the notification threw thisexception.



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