|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ProtectedRequestContext @WebServlet(value="/ws/level-0/internal/sources") public interface SourceService
Defines TM reachable services to work with sources.
| Method Summary | |
|---|---|
SourceIdentifier |
createIdentifierForURL(URI remoteSourceURL)
Creates a plain identifier for the given URL. |
SourceIdentifier |
createSource(URI remoteSourceURI,
Date lastModified,
String contentTag,
com.trendmicro.grid.acl.metadata.Metadata metadata)
Creates a new remote source with the given values. |
SourceIdentifier |
createTemporarySource(URI internalSourceURI,
Date lastModified,
String contentTag,
com.trendmicro.grid.acl.metadata.Metadata metadata)
Creates a new internal temporary source with the given values. |
FileIdentiferListPage |
getFilesReferencedBySource(SourceIdentifier sourceIdentifier,
int pageNumber)
Returns the identifiers of all files that are referenced by the specified source. |
NameListPage |
getPackagesReferencedBySource(SourceIdentifier sourceIdentifier,
int pageNumber)
Returns all package names that are referenced by the specified source. |
SourceIdentiferListPage |
getReferencingSources(FileIdentifier file,
int pageNumber)
Returns the source identifiers of all sources that are known for the given file. |
Source |
getSource(SourceIdentifier identifier)
Returns the source for the given source identifier. |
SourceDomain |
getSourceDomain(String domainName)
Returns the stored domain information on the given domain name. |
SourceDomain |
getSourceDomainForURL(URI sourceURL)
Returns the stored domain information on the given URL. |
SourceDomainListPage |
getSourceDomains(int pageNumber)
Returns the a list of all stored domains. |
Source |
getSourceForURL(URI remoteSourceURL)
Returns the source for the given remote URL. |
SourceInformation |
getSourceInformation(SourceIdentifier identifier)
Returns the lightweight source-information for the given source identifier. |
SourceInformation |
getSourceInformationForURL(URI remoteSourceURL)
Returns the lightweight source-information for the given remote URL. |
Collection<SourceInformation> |
getSourceInformationList(BatchCollection<SourceIdentifier> identifiers)
Returns the lightweight source-information list for the given source identifiers. |
Collection<Source> |
getSources(BatchCollection<SourceIdentifier> identifiers)
Returns the sources for the given source identifier. |
SourceIdentiferListPage |
getSourcesOfDomain(String domainName,
int pageNumber)
Returns the source identifiers of all sources that belong to a certain domain. |
SourceIdentiferListPage |
getSourcesOfDomainInRange(String domainName,
DaysRange lastModifiedRange,
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 |
updateSource(SourceInformation sourceInformation,
com.trendmicro.grid.acl.metadata.Metadata metadata)
Updates the source with the given Metadata without requiring to trigger a process. |
void |
updateSourceDomain(SourceDomain domain)
Updates the given domain information inside the persitence store. |
| Method Detail |
|---|
@RequiredRoles(value={"access.protected.services","run.complex.queries"})
FileIdentiferListPage getFilesReferencedBySource(SourceIdentifier sourceIdentifier,
int pageNumber)
throws AuthenticationException
sourceIdentifier - the identifier of the source to query.pageNumber - The number of the list page to return, starting from 0 for the first chunk.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@RequiredRoles(value={"access.protected.services","run.complex.queries"})
NameListPage getPackagesReferencedBySource(SourceIdentifier sourceIdentifier,
int pageNumber)
throws AuthenticationException
sourceIdentifier - the identifier of the source to query.pageNumber - The number of the list page to return, starting from 0 for the first chunk.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@RequiredRoles(value={"access.protected.services","run.complex.queries"})
SourceIdentiferListPage getReferencingSources(FileIdentifier file,
int pageNumber)
throws AuthenticationException
file - The file to return the sources for.pageNumber - The number of the list page to return, starting from 0 for the first chunk.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@RequiredRoles(value={"access.protected.services","run.complex.queries"})
SourceIdentifier createIdentifierForURL(URI remoteSourceURL)
throws AuthenticationException
remoteSourceURL - The remote URL to create the identifier for.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@RequiredRoles(value={"access.protected.services","run.complex.queries"})
SourceInformation getSourceInformationForURL(URI remoteSourceURL)
throws AuthenticationException
remoteSourceURL - the remote url to search the source for.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@RequiredRoles(value={"access.protected.services","run.complex.queries"})
SourceInformation getSourceInformation(SourceIdentifier identifier)
throws AuthenticationException
identifier - The identifier of the source.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@ResponseWrapper(className="com.trendmicro.grid.acl.l0.wrappers.GetSourceInformationListResponse")
@RequiredRoles(value={"access.protected.services","run.complex.queries"})
Collection<SourceInformation> getSourceInformationList(BatchCollection<SourceIdentifier> identifiers)
throws AuthenticationException
identifiers - The identifiers of the sources.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@RequiredRoles(value={"access.protected.services","run.complex.queries","access.details"})
Source getSourceForURL(URI remoteSourceURL)
throws AuthenticationException
remoteSourceURL - the remote url to search the source for.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@RequiredRoles(value={"access.protected.services","run.complex.queries","access.details"})
Source getSource(SourceIdentifier identifier)
throws AuthenticationException
identifier - The identifier of the source.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@ResponseWrapper(className="com.trendmicro.grid.acl.l0.wrappers.GetSourcesResponse")
@RequiredRoles(value={"access.protected.services","run.complex.queries","access.details"})
Collection<Source> getSources(BatchCollection<SourceIdentifier> identifiers)
throws AuthenticationException
identifiers - The identifiers of the sources.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@RequiredRoles(value={"access.protected.services","process.content"})
SourceIdentifier createSource(URI remoteSourceURI,
Date lastModified,
String contentTag,
com.trendmicro.grid.acl.metadata.Metadata metadata)
throws AuthenticationException,
IllegalRequestException
remoteSourceURI - The remote URI of the source.lastModified - The remote last modified date of the source, if known (may be set to 'null').contentTag - The remote content tag (e.g. ETAG) of the source, if known (may be set to 'null').metadata - The metadata to store with the source.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
IllegalRequestException - In case of the URI exists already inside the CoreDB.
@RequiredRoles(value={"access.protected.services","process.content"})
SourceIdentifier createTemporarySource(URI internalSourceURI,
Date lastModified,
String contentTag,
com.trendmicro.grid.acl.metadata.Metadata metadata)
throws AuthenticationException,
IllegalRequestException
internalSourceURI - The internal URI of the temporary source.lastModified - The remote last modified date of the source, if known (may be set to 'null').contentTag - The remote content tag (e.g. ETAG) of the source, if known (may be set to 'null').metadata - The metadata to store with the source.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
IllegalRequestException - In case of the URI exists already inside the CoreDB.
@RequiredRoles(value={"access.protected.services","process.content"})
void updateSource(SourceInformation sourceInformation,
com.trendmicro.grid.acl.metadata.Metadata metadata)
throws AuthenticationException,
IllegalRequestException
sourceInformation - The source information of the source to update.metadata - The metadata to store with the source.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
IllegalRequestException - In case of the source that is identified by the SourceIdentifier,
doesn't exist inside the CoreDB.
@RequiredRoles(value={"access.protected.services","run.complex.queries"})
SourceIdentiferListPage getSourcesOfDomain(String domainName,
int pageNumber)
throws AuthenticationException
domainName - The domain to return the sources for.pageNumber - The number of the list page to return, starting from 0 for the first chunk.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@RequiredRoles(value={"access.protected.services","run.complex.queries"})
SourceIdentiferListPage getSourcesOfDomainInRange(String domainName,
DaysRange lastModifiedRange,
int pageNumber)
throws AuthenticationException
getSourcesOfDomain(String, int))}
in case of both date values are set to null inside the given range.
domainName - The domain to return the sources for.lastModifiedRange - A DaysRange of type "LAST_MODIFIED".pageNumber - The number of the list page to return, starting from 0 for the first chunk.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@RequiredRoles(value={"access.protected.services","run.complex.queries","access.details"})
SourceDomain getSourceDomain(String domainName)
throws AuthenticationException
domainName - the domain name to look for.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@RequiredRoles(value={"access.protected.services","run.complex.queries","access.details"})
SourceDomainListPage getSourceDomains(int pageNumber)
throws AuthenticationException
pageNumber - The number of the list page to return, starting from 0 for the first chunk.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@RequiredRoles(value={"access.protected.services","run.complex.queries","access.details"})
SourceDomain getSourceDomainForURL(URI sourceURL)
throws AuthenticationException
sourceURL - the url to lookup the domain of.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
@RequiredRoles(value={"access.protected.services","process.content"})
void updateSourceDomain(SourceDomain domain)
throws AuthenticationException
domain - the domain info to update.
AuthenticationException - In case of the current user is not
authenticated or doesn't have the right to access the service.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||