Java Doc for PersonalStoreService.java in  » IDE-Netbeans » collab » org » netbeans » lib » collab » 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 » IDE Netbeans » collab » org.netbeans.lib.collab 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.lib.collab.PersonalStoreService

All known Subclasses:   org.netbeans.lib.collab.xmpp.XMPPPersonalStoreService,
PersonalStoreService
public interface PersonalStoreService (Code)
The PersonalStore Service The service should be intialized by calling intialize() before using any of the methods.
since:
   version 0.1


Field Summary
final public static  intMAIL_ATTRIBUTE
    
final public static  intNAME_ATTRIBUTE
    
final public static  intSEARCHTYPE_CONTAINS
    
final public static  intSEARCHTYPE_ENDSWITH
    
final public static  intSEARCHTYPE_EQUALS
    
final public static  intSEARCHTYPE_STARTSWITH
    
final public static  intUID_ATTRIBUTE
    


Method Summary
public  voidaddPersonalStoreServiceListener(PersonalStoreServiceListener listener)
     Add an additional PersonalStoreServiceListener to receive the event notifications.
public  PersonalStoreEntrycreateEntry(String entryType, String displayName)
     creates a new entry This method does not necessarily commit the entry to permanent storage. The other attributes of the created entry need to be set using the methods in PersonalStoreEntry or subclass thereof.
public  PersonalStoreEntrycreateEntry(CollaborationPrincipal principal, String entryType, String displayName)
     creates a new entry on behalf of a specified user This method does not necessarily commit the entry to permanent storage. The other attributes of the created entry need to be set using the methods in PersonalStoreEntry or subclass thereof.
public  java.util.CollectiongetEntries(String entryType)
     retrieves all entries of a specific type from the personal store note: this assumes there aren't too many folders in the personal store

note: retrieves only the folders, not the entries.

public  PersonalStoreEntrygetEntry(String entryType, String entryId)
    
public  PersonalStoreEntrygetEntry(CollaborationPrincipal principal, String entryType, String entryId)
    
public  java.util.CollectiongetFolders(String entryType)
     retrieves all the folders in the personal store note: this assumes there aren't too many folders in the personal store

note: retrieves only the folders, not the entries.

public  java.util.CollectiongetFolders(CollaborationPrincipal principal, String entryType)
     retrieves all the folders in the personal store of a specified principal note: this assumes there aren't too many folders in the personal store

note: retrieves only the folders, not the entries.

public  PersonalProfilegetProfile()
    
public  PersonalProfilegetProfile(CollaborationPrincipal principal)
    
public  voidinitialize(PersonalStoreServiceListener listener)
     intialize the service by providing a PersonalStoreServiceListener.
public  voidremovePersonalStoreServiceListener(PersonalStoreServiceListener listener)
     Removes an already added ConfereneServiceListener.
public  voidsave()
    
public  PersonalStoreEntry[]search(int searchType, String pattern, String entryType)
     search directory for entry This method search the corporate directory for entries that can then be used to add as a PersonalContact to the PersonalStoreFolder. There are four types of search criteria: BYUID, CONTAINNAME, STARTNAME, ENDNAME.
public  PersonalStoreEntry[]search(int searchType, String pattern, String entryType, int attribute)
    
public  CollaborationPrincipal[]searchPrincipals(int searchType, String pattern)
     search directory for entry This method search the corporate directory for entries that can then be used to add as a PersonalContact to the PersonalStoreFolder. There are four types of search criteria: BYUID, CONTAINNAME, STARTNAME, ENDNAME.
public  CollaborationPrincipal[]searchPrincipals(int searchType, String pattern, int attribute)
     search directory for entry This method search the corporate directory for entries that can then be used to add as a PersonalContact to the PersonalStoreFolder. There are four types of search criteria: BYUID, CONTAINNAME, STARTNAME, ENDNAME.

Field Detail
MAIL_ATTRIBUTE
final public static int MAIL_ATTRIBUTE(Code)
search on mail attribute



NAME_ATTRIBUTE
final public static int NAME_ATTRIBUTE(Code)
search on name attribute



SEARCHTYPE_CONTAINS
final public static int SEARCHTYPE_CONTAINS(Code)
search by contain name



SEARCHTYPE_ENDSWITH
final public static int SEARCHTYPE_ENDSWITH(Code)
search by end with name



SEARCHTYPE_EQUALS
final public static int SEARCHTYPE_EQUALS(Code)
equals



SEARCHTYPE_STARTSWITH
final public static int SEARCHTYPE_STARTSWITH(Code)
search by start with name



UID_ATTRIBUTE
final public static int UID_ATTRIBUTE(Code)
search on uid attribute





Method Detail
addPersonalStoreServiceListener
public void addPersonalStoreServiceListener(PersonalStoreServiceListener listener)(Code)
Add an additional PersonalStoreServiceListener to receive the event notifications. To receive all the initial events the first PersonalStoreServiceListener should be added while PersonalStoreService.initialize initializing PersonalStoreService.
Parameters:
  listener - PersonalStoreServiceListener The PersonalStoreServiceListener to be added.



createEntry
public PersonalStoreEntry createEntry(String entryType, String displayName) throws CollaborationException(Code)
creates a new entry This method does not necessarily commit the entry to permanent storage. The other attributes of the created entry need to be set using the methods in PersonalStoreEntry or subclass thereof. In particular, the folder(s) referencing this entry must be specified using PersonalStoreEntry.addToFolder(). After the entry is complete, it must be committed with its save() method.
Parameters:
  entryType - type of entry as defined in PersonalStoreEntryType
Parameters:
  displayName - entry display name a new entry, which class depends on the specified type.Note that the returned entry may be a folder.



createEntry
public PersonalStoreEntry createEntry(CollaborationPrincipal principal, String entryType, String displayName) throws CollaborationException(Code)
creates a new entry on behalf of a specified user This method does not necessarily commit the entry to permanent storage. The other attributes of the created entry need to be set using the methods in PersonalStoreEntry or subclass thereof. In particular, the folder(s) referencing this entry must be specified using PersonalStoreEntry.addToFolder(). After the entry is complete, it must be committed with its save() method.
Parameters:
  principal - owner ofd the personal store in which to add thenew entry
Parameters:
  entryType - type of entry as defined in PersonalStoreEntryType
Parameters:
  displayName - entry display name a new entry, which class depends on the specified type.Note that the returned entry may be a folder.



getEntries
public java.util.Collection getEntries(String entryType) throws CollaborationException(Code)
retrieves all entries of a specific type from the personal store note: this assumes there aren't too many folders in the personal store

note: retrieves only the folders, not the entries.
Parameters:
  entryType - folderType type of folder as defined in PersonalStoreEntryType a Collection of PersonalStoreFolder objects




getEntry
public PersonalStoreEntry getEntry(String entryType, String entryId) throws CollaborationException(Code)
retrieves a personal store entry from its entry id
Parameters:
  entryType - entry type, as defined in PersonalStoreEntry
Parameters:
  entryId - entry's unique id entry if found.



getEntry
public PersonalStoreEntry getEntry(CollaborationPrincipal principal, String entryType, String entryId) throws CollaborationException(Code)
retrieves a personal store entry from its entry id
Parameters:
  entryType - entry type, as defined in PersonalStoreEntry
Parameters:
  entryId - entry's unique id
Parameters:
  principal - owner of the personal store to query entry if found.



getFolders
public java.util.Collection getFolders(String entryType) throws CollaborationException(Code)
retrieves all the folders in the personal store note: this assumes there aren't too many folders in the personal store

note: retrieves only the folders, not the entries.
Parameters:
  entryType - folderType type of folder as defined in PersonalStoreEntryType a Collection of PersonalStoreFolder objects




getFolders
public java.util.Collection getFolders(CollaborationPrincipal principal, String entryType) throws CollaborationException(Code)
retrieves all the folders in the personal store of a specified principal note: this assumes there aren't too many folders in the personal store

note: retrieves only the folders, not the entries.
Parameters:
  principal - owner of the personal store to query
Parameters:
  entryType - folderType type of folder as defined in PersonalStoreEntryType a Collection of PersonalStoreFolder objects




getProfile
public PersonalProfile getProfile() throws CollaborationException(Code)
get the profile info profile the profile info



getProfile
public PersonalProfile getProfile(CollaborationPrincipal principal) throws CollaborationException(Code)
get the profile info
Parameters:
  principal - owner of the personal store to query profile the profile info



initialize
public void initialize(PersonalStoreServiceListener listener) throws CollaborationException(Code)
intialize the service by providing a PersonalStoreServiceListener. Service should be initialized by calling this method before using any of the services of PersonalStoreService
Parameters:
  listener - PersonalStoreServiceListener



removePersonalStoreServiceListener
public void removePersonalStoreServiceListener(PersonalStoreServiceListener listener)(Code)
Removes an already added ConfereneServiceListener. To prevent loss of any event notification it is advised to have atleast one PersonalStoreServiceListener
Parameters:
  listener - PersonalStoreServiceListener The PersonalStoreServiceListener to be removed.



save
public void save() throws CollaborationException(Code)
Commit unsaved personal store changes to the server



search
public PersonalStoreEntry[] search(int searchType, String pattern, String entryType) throws CollaborationException(Code)
search directory for entry This method search the corporate directory for entries that can then be used to add as a PersonalContact to the PersonalStoreFolder. There are four types of search criteria: BYUID, CONTAINNAME, STARTNAME, ENDNAME. When a particular one is choosed to be added to a folder, pass that as the argument to the createEntry() method.
Parameters:
  searchType - type of search to perform
Parameters:
  pattern - searchName name to search for a array of principals from the search result,or null if none matched



search
public PersonalStoreEntry[] search(int searchType, String pattern, String entryType, int attribute) throws CollaborationException(Code)

Parameters:
  searchType - type of search to perform
Parameters:
  pattern - searchName name to search for
Parameters:
  entryType - type of the entry to search for
Parameters:
  attribute - Attribute on which to search for a array of principals from the search result,or null if none matched



searchPrincipals
public CollaborationPrincipal[] searchPrincipals(int searchType, String pattern) throws CollaborationException(Code)
search directory for entry This method search the corporate directory for entries that can then be used to add as a PersonalContact to the PersonalStoreFolder. There are four types of search criteria: BYUID, CONTAINNAME, STARTNAME, ENDNAME. When a particular one is choosed to be added to a folder, pass that as the argument to the createEntry() method.
Parameters:
  searchType - type of search to perform
Parameters:
  pattern - searchName name to search for a array of principals from the search result,or null if none matched



searchPrincipals
public CollaborationPrincipal[] searchPrincipals(int searchType, String pattern, int attribute) throws CollaborationException(Code)
search directory for entry This method search the corporate directory for entries that can then be used to add as a PersonalContact to the PersonalStoreFolder. There are four types of search criteria: BYUID, CONTAINNAME, STARTNAME, ENDNAME. When a particular one is choosed to be added to a folder, pass that as the argument to the createEntry() method. The attribute for the search can be NAME_ATTRIBUTE or UID_ATTRIBUTE or MAIL_ATTRIBUTE
Parameters:
  searchType - type of search to perform
Parameters:
  pattern - searchName name to search for
Parameters:
  attribute - Attribute on which to search for a array of principals from the search result,or null if none matched



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