|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConnectorContext
Connector context class. This class is used to store some common information for all connectors as well as some common methods. It is also used as a 'bridge' between the runtime system and a connector implementation. For instance guessMIMEType() method is used to retrieve item's MIME type based on the file name.
Method Summary | |
---|---|
java.lang.String |
getAgentID()
Retrieves the unique Agent identifier. |
java.lang.String |
getAgentUrl()
Retrieves a URL which could be used to access the Web server hosted by the Agent runtime (if any). |
java.lang.String |
getDataDir()
Retrieves data directory. |
int |
getHearbeatInterval()
Retrieves heartbeat interval. |
java.lang.String |
guessMIMEType(java.lang.String ext)
Tries to 'guess' a MIME type using a file extension. |
void |
itemCreated(ItemEventArgs e)
This method is used by the content providers which support the incremental synchronization. |
void |
itemDeleted(ItemEventArgs e)
This method is used by the content providers which support the incremental synchronization. |
void |
itemRenamed(ItemEventArgs e)
This method is used by the content providers which support the incremental synchronization. |
void |
itemUpdated(ItemEventArgs e)
This method is used by the content providers which support the incremental synchronization. |
void |
repositoryCreated(RepositoryEventArgs e)
This method is invoked by the connector's code to notify the Agent runtime system that a new repository has been created. |
void |
repositoryDeleted(RepositoryEventArgs e)
This method is invoked by the connector's code to notify the Agent runtime system that a new repository has been deleted. |
void |
repositoryResync(RepositoryEventArgs e)
This method is invoked by the connector's code to notify the Agent runtime system that the repository should be resynchronized, i.e. |
void |
repositoryUpdated(RepositoryEventArgs e)
This method is invoked by the connector's code to notify the Agent runtime system that the repository has been updated, i.e its name or other parameters are changed. |
Method Detail |
---|
java.lang.String getAgentID()
java.lang.String getAgentUrl()
int getHearbeatInterval()
HeartbeatInfo
for details.
java.lang.String getDataDir()
java.lang.String guessMIMEType(java.lang.String ext)
ext
- file extension.
void repositoryCreated(RepositoryEventArgs e)
e
- repository event arguments.void repositoryUpdated(RepositoryEventArgs e)
e
- repository event arguments.void repositoryDeleted(RepositoryEventArgs e)
e
- repository event arguments.void repositoryResync(RepositoryEventArgs e)
e
- repository event arguments.void itemCreated(ItemEventArgs e)
void itemRenamed(ItemEventArgs e)
void itemUpdated(ItemEventArgs e)
void itemDeleted(ItemEventArgs e)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |