Package org.graylog2.contentpacks
Class ContentPackService
java.lang.Object
org.graylog2.contentpacks.ContentPackService
-
Constructor Summary
ConstructorDescriptionContentPackService
(ContentPackInstallationPersistenceService contentPackInstallationPersistenceService, Set<ConstraintChecker> constraintCheckers, Map<ModelType, EntityWithExcerptFacade<?, ?>> entityFacades) -
Method Summary
Modifier and TypeMethodDescriptioncheckConstraints
(ContentPack contentPack) com.google.common.collect.ImmutableSet<Entity>
collectEntities
(Collection<EntityDescriptor> resolvedEntities) getUninstallDetails
(ContentPack contentPack, ContentPackInstallation installation) installContentPack
(ContentPack contentPack, Map<String, ValueReference> parameters, String comment, String user) resolveEntities
(Collection<EntityDescriptor> unresolvedEntities) uninstallContentPack
(ContentPack contentPack, ContentPackInstallation installation)
-
Constructor Details
-
ContentPackService
@Inject public ContentPackService(ContentPackInstallationPersistenceService contentPackInstallationPersistenceService, Set<ConstraintChecker> constraintCheckers, Map<ModelType, EntityWithExcerptFacade<?, ?>> entityFacades)
-
-
Method Details
-
installContentPack
public ContentPackInstallation installContentPack(ContentPack contentPack, Map<String, ValueReference> parameters, String comment, String user) -
getUninstallDetails
public ContentPackUninstallDetails getUninstallDetails(ContentPack contentPack, ContentPackInstallation installation) -
uninstallContentPack
public ContentPackUninstallation uninstallContentPack(ContentPack contentPack, ContentPackInstallation installation) -
listAllEntityExcerpts
-
getEntityExcerpts
-
resolveEntities
-
collectEntities
public com.google.common.collect.ImmutableSet<Entity> collectEntities(Collection<EntityDescriptor> resolvedEntities) -
checkConstraints
-