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


org.netbeans.lib.cvsclient.ClientServices

All known Subclasses:   org.netbeans.lib.cvsclient.Client,
ClientServices
public interface ClientServices (Code)
Clients that provide the ability to execute commands must implement this interface. All commands use this interface to get details about the environment in which it is being run, and to perform administrative functions such as obtaining Entry lines for specified files.
author:
   Robert Greig




Method Summary
 voidensureConnection()
     Ensures, that the connection is open.
 booleanexists(File file)
     Tests for existence of the given file.
 SetgetAllFiles(File directory)
     Get all the files contained within a given directory that are known to CVS.
 IteratorgetEntries(File directory)
     Get the entries for a specified directory.
 EntrygetEntry(File file)
     Get the Entry for the specified file, if one exists.
 GlobalOptionsgetGlobalOptions()
     Get the global options that are set to this client.
 IgnoreFileFiltergetIgnoreFileFilter()
     Returns the IgnoreFileFilter used to ignore non-cvs files.
 StringgetLocalPath()
     Get the local path that the command is executing in.
 StringgetRepository()
     Get the repository used for this connection.
 StringgetRepositoryForDirectory(String directory)
     Get the repository path for a given directory, for example in the directory /home/project/foo/bar, the repository directory might be /usr/cvs/foo/bar.
 StringgetRepositoryForDirectory(File directory)
     Semantically equivalent to ClientServices.getRepositoryForDirectory(String) but does not try to recover from missing CVS/Repository file.
 StringgetStickyTagForDirectory(File directory)
     Checks for presence of CVS/Tag file and returns it's value.
 MapgetWrappersMap()
    
 booleanisAborted()
     Tests whether command execution should be aborted.
 booleanisFirstCommand()
     Returns true if no command was sent before.
 voidprocessRequests(List requests)
     Process all the requests.
 voidremoveEntry(File file)
     Removes the Entry for the specified file.
 voidsetGzipFileHandler(FileHandler handler)
     Set the handler for Gzip data.
 voidsetIgnoreFileFilter(IgnoreFileFilter filter)
     Sets the specified IgnoreFileFilter to use to ignore non-cvs files.
 voidsetIsFirstCommand(boolean first)
     Set whether this is the first command.
 voidsetUncompressedFileHandler(FileHandler handler)
     Set the uncompressed file handler.
 booleanshouldBeIgnored(File directory, String nonCvsFile)
     Returnes true to indicate, that the file specified by directory and nonCvsFile should be ignored.
 voidupdateAdminData(String localDirectory, String repositoryPath, Entry entry)
     Create or update the administration files for a particular file This will create the CVS directory if necessary, and the Root and Repository files if necessary.



Method Detail
ensureConnection
void ensureConnection() throws AuthenticationException(Code)
Ensures, that the connection is open.
throws:
  AuthenticationException - if it wasn't possible to connect



exists
boolean exists(File file)(Code)
Tests for existence of the given file. Normally this method delegates to File.exists() but it may also return true for files that exists only virtually (in memory). Is such case the file/directory will not exist on disk but its metadata will be available via getEntries() methods.
Parameters:
  file - file to test for existence true if the file exists, false otherwise



getAllFiles
Set getAllFiles(File directory) throws IOException(Code)
Get all the files contained within a given directory that are known to CVS.
Parameters:
  directory - the directory to look in a set of all files.



getEntries
Iterator getEntries(File directory) throws IOException(Code)
Get the entries for a specified directory.
Parameters:
  directory - the directory for which to get the entries an iterator of Entry objects



getEntry
Entry getEntry(File file) throws IOException(Code)
Get the Entry for the specified file, if one exists.
Parameters:
  file - the file
throws:
  IOException - if the Entries file cannot be read



getGlobalOptions
GlobalOptions getGlobalOptions()(Code)
Get the global options that are set to this client. Individual commands can get the global options via this method.



getIgnoreFileFilter
IgnoreFileFilter getIgnoreFileFilter()(Code)
Returns the IgnoreFileFilter used to ignore non-cvs files. TS, 2001-11-23: really needed in the interface (it's never used)?



getLocalPath
String getLocalPath()(Code)
Get the local path that the command is executing in. the local path



getRepository
String getRepository()(Code)
Get the repository used for this connection. the repository, for example /home/bob/cvs



getRepositoryForDirectory
String getRepositoryForDirectory(String directory) throws IOException(Code)
Get the repository path for a given directory, for example in the directory /home/project/foo/bar, the repository directory might be /usr/cvs/foo/bar. The repository directory is commonly stored in the file
Repository
in the CVS directory on the client. (This is the case in the standard CVS command-line tool)
Parameters:
  directory - the directory



getRepositoryForDirectory
String getRepositoryForDirectory(File directory) throws IOException(Code)
Semantically equivalent to ClientServices.getRepositoryForDirectory(String) but does not try to recover from missing CVS/Repository file.
Parameters:
  directory - the directory to get repository for repository path that corresponds to the given local working directory or null if local directoryis not versioned or does not exist
throws:
  IOException - if the repository cannot be determined by reading CVS/Repository file



getStickyTagForDirectory
String getStickyTagForDirectory(File directory)(Code)
Checks for presence of CVS/Tag file and returns it's value. the value of CVS/Tag file for the specified directorynull if file doesn't exist



getWrappersMap
Map getWrappersMap() throws CommandException(Code)
Returns the wrappers map associated with the CVS server The map is valid only after the connection is established



isAborted
boolean isAborted()(Code)
Tests whether command execution should be aborted. Commands are encouraged to regulary poll this value if they expect to block for a long time in their code. true if currently running command should abort, false otherwise



isFirstCommand
boolean isFirstCommand()(Code)
Returns true if no command was sent before. This is used, because the server rejects some doubled commands.



processRequests
void processRequests(List requests) throws IOException, UnconfiguredRequestException, ResponseException, CommandAbortedException(Code)
Process all the requests.
Parameters:
  requests - the requets to process



removeEntry
void removeEntry(File file) throws IOException(Code)
Removes the Entry for the specified file.



setGzipFileHandler
void setGzipFileHandler(FileHandler handler)(Code)
Set the handler for Gzip data.



setIgnoreFileFilter
void setIgnoreFileFilter(IgnoreFileFilter filter)(Code)
Sets the specified IgnoreFileFilter to use to ignore non-cvs files. TS, 2001-11-23: really needed in the interface (it's never used)?



setIsFirstCommand
void setIsFirstCommand(boolean first)(Code)
Set whether this is the first command. Normally you do not need to set this yourself - after execution the first command will have set this to false.



setUncompressedFileHandler
void setUncompressedFileHandler(FileHandler handler)(Code)
Set the uncompressed file handler.



shouldBeIgnored
boolean shouldBeIgnored(File directory, String nonCvsFile)(Code)
Returnes true to indicate, that the file specified by directory and nonCvsFile should be ignored.



updateAdminData
void updateAdminData(String localDirectory, String repositoryPath, Entry entry) throws IOException(Code)
Create or update the administration files for a particular file This will create the CVS directory if necessary, and the Root and Repository files if necessary. It will also update the Entries file with the new entry
Parameters:
  localDirectory - the local directory, relative to the directoryin which the command was given, where the file inquestion lives
Parameters:
  entry - the entry object for that file
throws:
  IOException - if there is an error writing the files



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