Added missing annotations
parent
cbca30d705
commit
b2eca5232d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -33,10 +33,14 @@ import javax.inject.Qualifier;
|
|||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Qualifier
|
||||
@Target({ElementType.TYPE,
|
||||
ElementType.PARAMETER,
|
||||
ElementType.FIELD,
|
||||
ElementType.METHOD})
|
||||
@Target(
|
||||
{
|
||||
ElementType.TYPE,
|
||||
ElementType.PARAMETER,
|
||||
ElementType.FIELD,
|
||||
ElementType.METHOD
|
||||
}
|
||||
)
|
||||
public @interface Processes {
|
||||
|
||||
Class<? extends Exportable> value();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue