|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicRequestContext @WebServlet(value="/ws/level-0/packages") public interface PublicPackageService
Defines package related web services, accessible to the outside world.
Method Summary | |
---|---|
NamedFileIdentifierListPage |
getFilesContainedInPackageById(FileIdentifier packageFile,
int pageNumber)
Returns the ids of all files contained inside the given package. |
NamedFileIdentifierListPage |
getFilesContainedInPackageByName(String packageName,
int pageNumber)
Returns the ids of all files contained inside the given package. |
NameListPage |
getMatchingPackageNames(String tagExpression,
String tagExpressionVersion,
int pageNumber)
Returns all known packages that are matched by the given tag expression. |
NameListPage |
getMatchingPackageNamesInRange(String tagExpression,
String tagExpressionVersion,
Range range,
int pageNumber)
Returns all known packages that are matched by the given tag expression and are in the given range. |
PackageDetails |
getPackageDetailsById(FileIdentifier file)
Returns the package details on the given package file id. |
PackageDetails |
getPackageDetailsByName(String packageName)
Returns the package details on the given package name. |
Collection<PackageDetails> |
getPackageDetailsListById(BatchCollection<FileIdentifier> files)
Returns the package details on the given package file ids. |
Collection<PackageDetails> |
getPackageDetailsListByName(BatchCollection<String> packageNames)
Returns the package details on the given package names. |
Collection<String> |
getPackageDisplayNames(BatchCollection<String> packageNames)
Returns the displaynames for the given reference names. |
PackageFamily |
getPackageFamily(String basename)
Returns the package family on the given basename. |
Collection<String> |
getPackageFamilyDisplayNames(BatchCollection<String> packageFamilyNames)
Returns the displaynames for the given reference names. |
NameListPage |
getPackageFamilyNames(int pageNumber)
Returns all known package family names. |
NameListPage |
getPackageFamilyNamesForVendor(String vendorName,
int pageNumber)
Returns all known package family names for the given vendor. |
Collection<FileIdentifier> |
getPackageFileIdentifiersByName(BatchCollection<String> packageNames)
Returns the file ID of the file that is associated with the given package. |
PackageInformation |
getPackageInformationById(FileIdentifier file)
Returns the package information of the given package. |
PackageInformation |
getPackageInformationByName(String packageName)
Returns the package information of the given package. |
Collection<PackageInformation> |
getPackageInformationListById(BatchCollection<FileIdentifier> files)
Returns the package information list of the given packages. |
Collection<PackageInformation> |
getPackageInformationListByName(BatchCollection<String> packageNames)
Returns the package information list of the given packages. |
NameListPage |
getPackageNamesInFamily(String packageFamilyName,
int pageNumber)
Returns all package names that are members of the given package family. |
NameListPage |
getPackageNamesTaggedWith(String[] tags,
int pageNumber)
Returns all known package names that are tagged with the given list of tags. |
NameListPage |
getPackagesContainedInPackageById(FileIdentifier packageFile,
int pageNumber)
Returns the names of all packages contained inside the given package. |
NameListPage |
getPackagesContainedInPackageByName(String packageName,
int pageNumber)
Returns the names of all packages contained inside the given package. |
NameListPage |
getReferencingPackageNames(String packageName,
int pageNumber)
Returns the names of all packages that reference the given package directly. |
NameListPage |
getReferencingPackageNamesById(FileIdentifier file,
int pageNumber)
Returns the names of all packages that reference the given file directly. |
Vendor |
getVendor(String name)
Returns the vendor information for the given vendor name. |
Collection<String> |
getVendorDisplayNames(BatchCollection<String> vendorNames)
Returns the displaynames for the given reference names. |
NameListPage |
getVendorNames(int pageNumber)
Returns all known vendor names. |
Collection<IsTrueResult> |
isPackagesTaggedWithAllById(BatchCollection<FileIdentifier> files,
String[] tags)
Returns 'Yes' if the given packages are tagged with the specified tags. |
Collection<IsTrueResult> |
isPackagesTaggedWithAllByName(BatchCollection<String> packageNames,
String[] tags)
Returns 'Yes' if the given packages are tagged with the specified tags. |
Collection<Boolean> |
isPackagesTaggedWithById(BatchCollection<FileIdentifier> files,
String[] tags)
Deprecated. Please use isPackagesTaggedWithAllById(BatchCollection, String[]) instead. |
Collection<Boolean> |
isPackagesTaggedWithByName(BatchCollection<String> packageNames,
String[] tags)
Deprecated. Please use isPackagesTaggedWithAllByName(BatchCollection, String[]) instead. |
IsTrueResult |
isPackageTaggedWithAllById(FileIdentifier file,
String[] tags)
Returns 'Yes' if the given package is tagged with the specified tags. |
IsTrueResult |
isPackageTaggedWithAllByName(String packageName,
String[] tags)
Returns 'Yes' if the given package is tagged with the specified tags. |
Boolean |
isPackageTaggedWithById(FileIdentifier file,
String[] tags)
Deprecated. Please use isPackageTaggedWithAllById(FileIdentifier, String[]) instead. |
Boolean |
isPackageTaggedWithByName(String packageName,
String[] tags)
Deprecated. Please use isPackageTaggedWithAllByName(String, String[]) instead. |
Method Detail |
---|
@RequiredRoles(value="run.package.queries") NameListPage getVendorNames(int pageNumber) throws AuthenticationException
pageNumber
- The number of the list page to return, starting from 0 for the first chunk.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value="run.package.queries") Collection<String> getVendorDisplayNames(BatchCollection<String> vendorNames) throws AuthenticationException
vendorNames
- the names of the vendors to return the display names for.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value="run.package.queries") NameListPage getPackageFamilyNames(int pageNumber) throws AuthenticationException
pageNumber
- The number of the list page to return, starting from 0 for the first chunk.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value="run.package.queries") Collection<String> getPackageFamilyDisplayNames(BatchCollection<String> packageFamilyNames) throws AuthenticationException
packageFamilyNames
- the names of the package families to return the display names for.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value="run.package.queries") NameListPage getPackageFamilyNamesForVendor(String vendorName, int pageNumber) throws AuthenticationException
vendorName
- the name of the vendor to query package families from.pageNumber
- The number of the list page to return, starting from 0 for the first chunk.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value="run.package.queries") NameListPage getPackageNamesInFamily(String packageFamilyName, int pageNumber) throws AuthenticationException
packageFamilyName
- the name of the package family to query package names from.pageNumber
- The number of the list page to return, starting from 0 for the first chunk.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value="run.package.queries") Collection<String> getPackageDisplayNames(BatchCollection<String> packageNames) throws AuthenticationException
packageNames
- the names of the packages to return the display names for.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@Deprecated @RequiredRoles(value="run.package.queries") Boolean isPackageTaggedWithById(FileIdentifier file, String[] tags) throws AuthenticationException
isPackageTaggedWithAllById(FileIdentifier, String[])
instead.
file
- The package file to verify.tags
- The tags to check against.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@Deprecated @RequiredRoles(value="run.package.queries") Collection<Boolean> isPackagesTaggedWithById(BatchCollection<FileIdentifier> files, String[] tags) throws AuthenticationException
isPackagesTaggedWithAllById(BatchCollection, String[])
instead.
isPackageTaggedWithById(FileIdentifier, String[])
.
Important Note: This method returned incorrect data when 'null' values were contained in the result.
'Null' values are swallowed by the XML serialization framework, because it considers the booleans
as primitive types. Therefore starting from GACL 1.2, this method substitutes 'null' with 'false'.
Use isPackagesTaggedWithAllById(BatchCollection, String[])
instead, to get a 3-way result.
files
- The package files to verify.tags
- The tags to check against.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value="run.package.queries") IsTrueResult isPackageTaggedWithAllById(FileIdentifier file, String[] tags) throws AuthenticationException
isPackagesTaggedWithAllById(BatchCollection, String[])
, may
be more efficient.
Note: This method is a replacement for isPackageTaggedWithById(FileIdentifier, String[])
as a 3-way
boolean is not obvious and not supported in all programming languages.
file
- The package file to verify.tags
- The tags to check against.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.isPackageTaggedWithAllByName(String, String[])
@RequiredRoles(value="run.package.queries") Collection<IsTrueResult> isPackagesTaggedWithAllById(BatchCollection<FileIdentifier> files, String[] tags) throws AuthenticationException
isPackageTaggedWithAllById(FileIdentifier, String[])
.
Note: This method is a replacement for isPackagesTaggedWithById(BatchCollection, String[])
as
a 3-way boolean is not obvious and not supported in all programming languages.
files
- The package files to verify.tags
- The tags to check against.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.isPackagesTaggedWithAllByName(BatchCollection, String[])
@Deprecated @RequiredRoles(value="run.package.queries") Boolean isPackageTaggedWithByName(String packageName, String[] tags) throws AuthenticationException
isPackageTaggedWithAllByName(String, String[])
instead.
packageName
- The package to verify.tags
- The tags to check against.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@Deprecated @RequiredRoles(value="run.package.queries") Collection<Boolean> isPackagesTaggedWithByName(BatchCollection<String> packageNames, String[] tags) throws AuthenticationException
isPackagesTaggedWithAllByName(BatchCollection, String[])
instead.
isPackageTaggedWithByName(String, String[])
.
Important Note: This method returned incorrect data when 'null' values were contained in the result.
'Null' values are swallowed by the XML serialization framework, because it considers the booleans
as primitive types. Therefore starting from GACL 1.2, this method substitutes 'null' with 'false'.
Use isPackagesTaggedWithAllByName(BatchCollection, String[])
instead, to get a 3-way result.
packageNames
- The package to verify.tags
- The tags to check against.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value="run.package.queries") IsTrueResult isPackageTaggedWithAllByName(String packageName, String[] tags) throws AuthenticationException
isPackagesTaggedWithAllByName(BatchCollection, String[])
, may
be more efficient.
Note: This method is a replacement for isPackageTaggedWithByName(String, String[])
as a 3-way boolean
is not obvious and not supported in all programming languages.
packageName
- The package to verify.tags
- The tags to check against.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.isPackageTaggedWithAllById(com.trendmicro.grid.acl.l0.datatypes.FileIdentifier, String[])
@RequiredRoles(value="run.package.queries") Collection<IsTrueResult> isPackagesTaggedWithAllByName(BatchCollection<String> packageNames, String[] tags) throws AuthenticationException
isPackageTaggedWithAllByName(String, String[])
.
Note: This method is a replacement for isPackagesTaggedWithByName(BatchCollection, String[])
as
a 3-way boolean is not obvious and not supported in all programming languages.
packageNames
- The package to verify.tags
- The tags to check against.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.isPackagesTaggedWithAllById(BatchCollection, String[])
@PublicRequestContext(value="tag-matching-query") @RequiredRoles(value={"run.package.queries","run.tag.matching.queries"}) NameListPage getPackageNamesTaggedWith(String[] tags, int pageNumber) throws AuthenticationException
tags
- The tags to get the files for.pageNumber
- The number of the list page to return, starting from 0 for the first chunk.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@PublicRequestContext(value="tag-matching-query") @RequiredRoles(value={"run.package.queries","run.tag.matching.queries"}) NameListPage getMatchingPackageNames(String tagExpression, String tagExpressionVersion, int pageNumber) throws AuthenticationException
(mustbe1Group1 -mustnotbe1Group1) (mustbe1Group2 -mustnotbe1Group2 mustbe2Group2)
tagExpression
- An expression following the tag query grammar used to identify packages.tagExpressionVersion
- The version of the expression (the most recent version is assumed if ommitted).pageNumber
- The number of the list page to return, starting from 0 for the first chunk.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@PublicRequestContext(value="tag-matching-query") @RequiredRoles(value={"run.package.queries","run.tag.matching.queries"}) NameListPage getMatchingPackageNamesInRange(String tagExpression, String tagExpressionVersion, Range range, int pageNumber) throws AuthenticationException
tagExpression
- An expression following the tag query grammar used to identify packages.tagExpressionVersion
- The version of the expression (the most recent version is assumed if ommitted).range
- The range limiting the output.pageNumber
- The number of the list page to return, starting from 0 for the first chunk.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value={"run.package.queries","run.complex.queries"}) NameListPage getReferencingPackageNamesById(FileIdentifier file, int pageNumber) throws AuthenticationException
file
- The file to return the referencing package names for.pageNumber
- The number of the list page to return, starting from 0 for the first page.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value={"run.package.queries","run.complex.queries"}) NameListPage getReferencingPackageNames(String packageName, int pageNumber) throws AuthenticationException
packageName
- The package name to return the names of referencing packages.pageNumber
- The number of the list page to return, starting from 0 for the first page.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value={"run.package.queries","run.complex.queries"}) NamedFileIdentifierListPage getFilesContainedInPackageById(FileIdentifier packageFile, int pageNumber) throws AuthenticationException
packageFile
- The id of the package file to look for its children.pageNumber
- The number of the list page to return, starting from 0 for the first page.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value={"run.package.queries","run.complex.queries"}) NamedFileIdentifierListPage getFilesContainedInPackageByName(String packageName, int pageNumber) throws AuthenticationException
packageName
- The name of the package to look for its children.pageNumber
- The number of the list page to return, starting from 0 for the first page.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value={"run.package.queries","run.complex.queries"}) NameListPage getPackagesContainedInPackageById(FileIdentifier packageFile, int pageNumber) throws AuthenticationException
packageFile
- The id of the package file to look for its children.pageNumber
- The number of the list page to return, starting from 0 for the first page.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value={"run.package.queries","run.complex.queries"}) NameListPage getPackagesContainedInPackageByName(String packageName, int pageNumber) throws AuthenticationException
packageName
- The name of the package to look for its children.pageNumber
- The number of the list page to return, starting from 0 for the first page.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value="run.package.queries") PackageInformation getPackageInformationById(FileIdentifier file) throws AuthenticationException
file
- The id of the package file to look for.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@ResponseWrapper(className="com.trendmicro.grid.acl.l0.wrappers.GetPackageInformationListByIdResponse") @RequiredRoles(value="run.package.queries") Collection<PackageInformation> getPackageInformationListById(BatchCollection<FileIdentifier> files) throws AuthenticationException
files
- The ids of the package files to look for.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value="run.package.queries") PackageInformation getPackageInformationByName(String packageName) throws AuthenticationException
packageName
- The name of the package to look for.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@ResponseWrapper(className="com.trendmicro.grid.acl.l0.wrappers.GetPackageInformationListByNameResponse") @RequiredRoles(value="run.package.queries") Collection<PackageInformation> getPackageInformationListByName(BatchCollection<String> packageNames) throws AuthenticationException
packageNames
- The names of the packages to look for.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@ResponseWrapper(className="com.trendmicro.grid.acl.l0.wrappers.GetPackageFileIdentifiersByNameResponse") @RequiredRoles(value="run.package.queries") Collection<FileIdentifier> getPackageFileIdentifiersByName(BatchCollection<String> packageNames) throws AuthenticationException
packageNames
- The names of the packages to look for.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value={"run.package.queries","access.details"}) Vendor getVendor(String name) throws AuthenticationException
name
- the name of the vendor to return.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value={"run.package.queries","access.details"}) PackageFamily getPackageFamily(String basename) throws AuthenticationException
basename
- the name of the package family.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value={"run.package.queries","access.details"}) PackageDetails getPackageDetailsById(FileIdentifier file) throws AuthenticationException
file
- The SHA1 hash of the package file.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@ResponseWrapper(className="com.trendmicro.grid.acl.l0.wrappers.GetPackageDetailsListByIdResponse") @RequiredRoles(value={"run.package.queries","access.details"}) Collection<PackageDetails> getPackageDetailsListById(BatchCollection<FileIdentifier> files) throws AuthenticationException
files
- The SHA1 hashes of the package files.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@RequiredRoles(value={"run.package.queries","access.details"}) PackageDetails getPackageDetailsByName(String packageName) throws AuthenticationException
packageName
- The name the package.
AuthenticationException
- In case of this service requires authentication and the current user session
is not authenticated or doesn't have the right to access the service.@ResponseWrapper(className="com.trendmicro.grid.acl.l0.wrappers.GetPackageDetailsListByNameResponse") @RequiredRoles(value={"run.package.queries","access.details"}) Collection<PackageDetails> getPackageDetailsListByName(BatchCollection<String> packageNames) throws AuthenticationException
packageNames
- The names the packages to lookup.
AuthenticationException
- In case of this service requires authentication and the current user session
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 |