Class PkgService
java.lang.Object
org.ctan.site.services.texarchive.PkgService
The class
TexarchiveService
contains the service to access the
TeX
archive directory.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The classPkgTo
contains a transport object for the package. -
Constructor Summary
ConstructorsConstructorDescriptionPkgService
(@NonNull CtanConfiguration config, @NonNull ContentService contentService, @NonNull PkgStore pkgStore) This is the constructor for the classPkgService
. -
Method Summary
Modifier and TypeMethodDescriptiongetPkgByKey
(String key, String lang) The methodgetPkgByKey
provides means to retrieve a package by its key.getPkgByPath
(String path, String lang) The methodgetPkgByPath
provides means to retrieve a package by its CTAN path.
-
Constructor Details
-
PkgService
public PkgService(@NonNull @NonNull CtanConfiguration config, @NonNull @NonNull ContentService contentService, @NonNull @NonNull PkgStore pkgStore) This is the constructor for the classPkgService
.- Parameters:
config
- the CTAN configurationcontentService
- the content servicepkgStore
- the package store
-
-
Method Details
-
getPkgByKey
The methodgetPkgByKey
provides means to retrieve a package by its key.- Parameters:
key
- the package keylang
- the language for the notes- Returns:
- the transport object or
null
-
getPkgByPath
The methodgetPkgByPath
provides means to retrieve a package by its CTAN path.- Parameters:
path
- the CTAN path of the packagelang
- the language for the notes- Returns:
- the transport object or
null
-