Added missing annotations

deploy_packages_to_gitea
Jens Pelzetter 2022-11-07 20:07:06 +01:00
parent cbca30d705
commit b2eca5232d
3 changed files with 13 additions and 7 deletions

View File

@ -21,14 +21,15 @@ package org.librecms.contentsection;
import org.libreccm.categorization.CategorizationImExporter;
import org.libreccm.categorization.Category;
import org.libreccm.imexport.AbstractEntityImExporter;
import org.libreccm.imexport.Exportable;
import org.libreccm.imexport.Processes;
import org.libreccm.security.Permission;
import org.libreccm.security.PermissionImExporter;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
import javax.annotation.PostConstruct;
import javax.enterprise.inject.Any;
import javax.inject.Inject;
import javax.transaction.Transactional;
@ -47,6 +48,8 @@ public abstract class AbstractContentItemImExporter<T extends ContentItem>
private CategorizationImExporter categorizationImExporter;
@Inject
@Any
@Processes(Permission.class)
private PermissionImExporter permissionImExporter;
@PostConstruct

View File

@ -33,10 +33,14 @@ import javax.inject.Qualifier;
*/
@Retention(RetentionPolicy.RUNTIME)
@Qualifier
@Target({ElementType.TYPE,
@Target(
{
ElementType.TYPE,
ElementType.PARAMETER,
ElementType.FIELD,
ElementType.METHOD})
ElementType.METHOD
}
)
public @interface Processes {
Class<? extends Exportable> value();

View File

@ -19,7 +19,6 @@
package org.libreccm.security;
import org.libreccm.imexport.AbstractEntityImExporter;
import org.libreccm.imexport.Exportable;
import org.libreccm.imexport.Processes;
import java.util.Objects;