public class EnsureEnum extends Object
Constructor and Description |
---|
EnsureEnum(Executor executor,
String uuid,
Roles roles)
Construct a new enumeration ensurer.
|
Modifier and Type | Method and Description |
---|---|
<E extends IEnum & IGlobal> |
ensure(Class<E> enumClass,
Collection<String> enumValues)
Ensure that the given enumerations exist.
|
public EnsureEnum(Executor executor, String uuid, Roles roles)
executor
- the internal task executoruuid
- a UUID suitable for constructing a privileged principalroles
- information about the system rolespublic <E extends IEnum & IGlobal> List<Long> ensure(Class<E> enumClass, Collection<String> enumValues)
enumClass
- the model class of the enumerationenumValues
- the names of the enumerations (case-sensitive)null
for any that did not exist and could not be created
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.