Package org.graylog2.contentpacks
Class ContentPackInstallationPersistenceService
java.lang.Object
org.graylog2.contentpacks.ContentPackInstallationPersistenceService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContentPackInstallationPersistenceService(MongoJackObjectMapperProvider mapperProvider, MongoConnection mongoConnection) -
Method Summary
Modifier and TypeMethodDescriptionlongcountInstallationOfEntityById(ModelId entityId) Returns the number of installations the given content pack entity ID is used in.longintdeleteById(org.bson.types.ObjectId id) findByContentPackIdAndRevision(ModelId id, int revision) findByContentPackIds(Set<ModelId> ids) findById(org.bson.types.ObjectId id) insert(ContentPackInstallation installation) loadAll()
-
Field Details
-
COLLECTION_NAME
- See Also:
-
-
Constructor Details
-
ContentPackInstallationPersistenceService
@Inject public ContentPackInstallationPersistenceService(MongoJackObjectMapperProvider mapperProvider, MongoConnection mongoConnection)
-
-
Method Details
-
loadAll
-
findByContentPackIds
-
findById
-
findByContentPackIdAndRevision
-
findByContentPackId
-
insert
-
deleteById
public int deleteById(org.bson.types.ObjectId id) -
getInstallationMetadata
-
countInstallationOfEntityById
Returns the number of installations the given content pack entity ID is used in.- Parameters:
entityId- the native entity ID- Returns:
- number of installations
-
countInstallationOfEntityByIdAndFoundOnSystem
-