Package org.projectnessie.services.impl
Class ContentApiImpl
- java.lang.Object
-
- org.projectnessie.services.impl.BaseApiImpl
-
- org.projectnessie.services.impl.ContentApiImpl
-
- All Implemented Interfaces:
ContentService
public class ContentApiImpl extends BaseApiImpl implements ContentService
-
-
Field Summary
-
Fields inherited from class org.projectnessie.services.impl.BaseApiImpl
ACCESS_CHECK_BATCH_SIZE
-
-
Constructor Summary
Constructors Constructor Description ContentApiImpl(ServerConfig config, org.projectnessie.versioned.VersionStore store, Authorizer authorizer, java.util.function.Supplier<java.security.Principal> principal)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.projectnessie.model.ContentResponsegetContent(org.projectnessie.model.ContentKey key, java.lang.String namedRef, java.lang.String hashOnRef)org.projectnessie.model.GetMultipleContentsResponsegetMultipleContents(java.lang.String namedRef, java.lang.String hashOnRef, java.util.List<org.projectnessie.model.ContentKey> externalKeys)static org.projectnessie.model.ContentKeytoContentKey(org.projectnessie.versioned.Key key)-
Methods inherited from class org.projectnessie.services.impl.BaseApiImpl
commitMetaUpdate, createAccessContext, getAuthorizer, getConfig, getPrincipal, getStore, startAccessCheck
-
-
-
-
Constructor Detail
-
ContentApiImpl
public ContentApiImpl(ServerConfig config, org.projectnessie.versioned.VersionStore store, Authorizer authorizer, java.util.function.Supplier<java.security.Principal> principal)
-
-
Method Detail
-
getContent
public org.projectnessie.model.ContentResponse getContent(org.projectnessie.model.ContentKey key, java.lang.String namedRef, java.lang.String hashOnRef) throws org.projectnessie.error.NessieNotFoundException- Specified by:
getContentin interfaceContentService- Throws:
org.projectnessie.error.NessieNotFoundException
-
getMultipleContents
public org.projectnessie.model.GetMultipleContentsResponse getMultipleContents(java.lang.String namedRef, java.lang.String hashOnRef, java.util.List<org.projectnessie.model.ContentKey> externalKeys) throws org.projectnessie.error.NessieNotFoundException- Specified by:
getMultipleContentsin interfaceContentService- Throws:
org.projectnessie.error.NessieNotFoundException
-
toContentKey
public static org.projectnessie.model.ContentKey toContentKey(org.projectnessie.versioned.Key key)
-
-