|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SourceRepository
Defines a repository of sources for content stored inside the GRID.
| Method Summary | |
|---|---|
com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier |
createIdentifier(URI remoteURI,
URI internalURI)
Creates a plain identifier for the given URL. |
SharedSource |
createSource(URI remoteURI,
URI internalURI,
com.trendmicro.grid.acl.l0.datatypes.SourceInformation sourceInformation,
com.trendmicro.grid.acl.metadata.Metadata metadata)
Creates the source with the given Metadata and returns the created source. |
com.trendmicro.grid.acl.l0.datatypes.FileIdentiferListPage |
getReferencedFiles(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier sourceIdentifier,
int pageNumber)
Returns all files that are referenced by the specified source. |
com.trendmicro.grid.acl.l0.datatypes.NameListPage |
getReferencedPackages(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier sourceIdentifier,
int pageNumber)
Returns all package names that are referenced by the specified source. |
com.trendmicro.grid.acl.l0.datatypes.SourceIdentiferListPage |
getReferencingSources(com.trendmicro.grid.acl.l0.datatypes.FileIdentifier file,
int pageNumber)
Returns the source identifiers of all sources that are known for the given file. |
Collection<SharedSourceInformation> |
getSourceInformationList(Collection<com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier> identifiers)
Returns the lightweight source-information list for the given source identifiers. |
Collection<SharedSource> |
getSources(Collection<com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier> identifiers)
Returns the sources for the given source identifier. |
com.trendmicro.grid.acl.l0.datatypes.SourceIdentiferListPage |
getSourcesOfDomainInRange(String domainName,
Date modifiedFromDate,
Date modifiedToDate,
int pageNumber)
Returns the source identifiers of all sources that belong to a certain domain and were last modified in a specifeid time range. |
void |
setInternalURI(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier identifier,
URI internalURI)
Sets the internal URI on a source with a non-null remote URI. |
SharedSource |
updateSource(com.trendmicro.grid.acl.l0.datatypes.SourceInformation sourceInformation,
com.trendmicro.grid.acl.metadata.Metadata metadata)
Updates the remote source with the given Metadata and returns the updated source. |
| Method Detail |
|---|
com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier createIdentifier(URI remoteURI,
URI internalURI)
remoteURI - The remote URL to create the identifier for.internalURI - The internal URL to create the identifier for.
com.trendmicro.grid.acl.l0.datatypes.FileIdentiferListPage getReferencedFiles(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier sourceIdentifier,
int pageNumber)
sourceIdentifier - the identifier of the source to query.pageNumber - The number of the list page to return, starting from 0 for the first chunk.
com.trendmicro.grid.acl.l0.datatypes.NameListPage getReferencedPackages(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier sourceIdentifier,
int pageNumber)
sourceIdentifier - the identifier of the source to query.pageNumber - The number of the list page to return, starting from 0 for the first chunk.
com.trendmicro.grid.acl.l0.datatypes.SourceIdentiferListPage getReferencingSources(com.trendmicro.grid.acl.l0.datatypes.FileIdentifier file,
int pageNumber)
file - The file to return the sources for.pageNumber - The number of the list page to return, starting from 0 for the first chunk.
com.trendmicro.grid.acl.l0.datatypes.SourceIdentiferListPage getSourcesOfDomainInRange(String domainName,
Date modifiedFromDate,
Date modifiedToDate,
int pageNumber)
domainName - The domain to return the sources for.modifiedFromDate - The inclusive lower bound for the last-modified date value
or 'null' if there is no lower bound.modifiedToDate - The exclusive upper bound for the last-modified date value
or 'null' if there is no upper bound.pageNumber - The number of the list page to return, starting from 0 for the first chunk.
Collection<SharedSourceInformation> getSourceInformationList(Collection<com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier> identifiers)
identifiers - The identifiers of the sources.
Collection<SharedSource> getSources(Collection<com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier> identifiers)
identifiers - The identifiers of the sources.
SharedSource createSource(URI remoteURI,
URI internalURI,
com.trendmicro.grid.acl.l0.datatypes.SourceInformation sourceInformation,
com.trendmicro.grid.acl.metadata.Metadata metadata)
remoteURI - The remote URI.internalURI - The internal URI.sourceInformation - The source information of the source to create.metadata - The metadata to store with the source.
SharedSource updateSource(com.trendmicro.grid.acl.l0.datatypes.SourceInformation sourceInformation,
com.trendmicro.grid.acl.metadata.Metadata metadata)
sourceInformation - The source information of the source to update.metadata - The metadata to store with the source.
void setInternalURI(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier identifier,
URI internalURI)
throws IllegalStateException
identifier - The source to update set the internal URI for.internalURI - The internal URI to set.
IllegalStateException - In case of the source, idenfitied by the id does not define a remote URI.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||