|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.trendmicro.grid.acl.l0.PublicPackageRestService
@Service public class PublicPackageRestService
Implements a REST styled interface on top of the SOAP api using JAX-RS
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.trendmicro.grid.acl.l0.Level0RestService |
---|
Level0RestService.RestUtil |
Constructor Summary | |
---|---|
PublicPackageRestService()
|
Method Summary | |
---|---|
static PackageDetails |
convertJpaPackageDetails(PackageDetails pd)
|
static PackageInformation |
convertJpaPackageInformation(PackageInformation pf)
|
NamedFileIdentifierListPage |
getFilesContainedInPackageById(String sha1OrMd5Hash,
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(int pageNumber,
String tagExpression,
String tagExpressionVersion)
Returns all known packages that are matched by the given tag expression. |
PackageDetails |
getPackageDetailsById(String sha1OrMd5Hash)
Returns the package details of the given package. |
PackageDetails |
getPackageDetailsByName(String packageName)
Returns the package details of the given package. |
String |
getPackageDisplayName(String packageName)
Returns the displayname for the given reference name. |
String |
getPackageFamilyDisplayName(String packageFamilyName)
Returns the displayname for the given reference name. |
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. |
PackageInformation |
getPackageInformationById(String sha1OrMd5Hash)
Returns the package information of the given package. |
PackageInformation |
getPackageInformationByName(String packageName)
Returns the package information of the given package. |
NameListPage |
getPackageNamesInFamily(String packageFamilyName,
int pageNumber)
Returns all package names that are members of the given package family. |
NameListPage |
getPackageNamesTaggedWith(int pageNumber,
List<String> tags)
Returns all known files that are tagged with the given list of tags. |
NameListPage |
getPackagesContainedInPackageById(String sha1OrMd5Hash,
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(String sha1OrMd5Hash,
int pageNumber)
Returns the names of all packages that reference the given file directly. |
String |
getVendorDisplayName(String vendorName)
Returns the displayname for the given reference name. |
NameListPage |
getVendorNames(int pageNumber)
Returns all known vendor names. |
String |
isPackageTaggedWithById(String sha1OrMd5Hash,
List<String> tags)
Returns true if the given package is tagged with the specified tags. |
String |
isPackageTaggedWithByName(String packageName,
List<String> tags)
Returns true if the given package is tagged with the specified tags. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PublicPackageRestService()
Method Detail |
---|
public static PackageInformation convertJpaPackageInformation(PackageInformation pf)
public static PackageDetails convertJpaPackageDetails(PackageDetails pd)
public 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.public String getVendorDisplayName(String vendorName) throws AuthenticationException
vendorName
- the name of the vendor to return the display name 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.public 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.public String getPackageFamilyDisplayName(String packageFamilyName) throws AuthenticationException
packageFamilyName
- the name of the package family to return the display name 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.public 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.public 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.public String getPackageDisplayName(String packageName) throws AuthenticationException
packageName
- the name of the package to return the display name 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.public String isPackageTaggedWithById(String sha1OrMd5Hash, List<String> tags) throws AuthenticationException
sha1OrMd5Hash
- 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.public String isPackageTaggedWithByName(String packageName, List<String> tags) throws AuthenticationException
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.public NameListPage getPackageNamesTaggedWith(int pageNumber, List<String> tags) 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.public NameListPage getMatchingPackageNames(int pageNumber, String tagExpression, String tagExpressionVersion) 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).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.public NameListPage getReferencingPackageNamesById(String sha1OrMd5Hash, int pageNumber) throws AuthenticationException
sha1OrMd5Hash
- 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.public 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.public NamedFileIdentifierListPage getFilesContainedInPackageById(String sha1OrMd5Hash, int pageNumber) throws AuthenticationException
sha1OrMd5Hash
- 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.public 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.public NameListPage getPackagesContainedInPackageById(String sha1OrMd5Hash, int pageNumber) throws AuthenticationException
sha1OrMd5Hash
- 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.public 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.public PackageInformation getPackageInformationById(String sha1OrMd5Hash) throws AuthenticationException
sha1OrMd5Hash
- 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.public 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.public PackageDetails getPackageDetailsById(String sha1OrMd5Hash) throws AuthenticationException
sha1OrMd5Hash
- 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.public PackageDetails getPackageDetailsByName(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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |