public class EnsureEnum
extends java.lang.Object
Constructor and Description |
---|
EnsureEnum(Executor executor,
java.lang.String uuid,
Roles roles,
ReadOnlyStatus readOnly)
Construct a new enumeration ensurer.
|
Modifier and Type | Method and Description |
---|---|
<E extends IEnum & IGlobal> |
ensure(java.lang.Class<E> enumClass,
java.util.Collection<java.lang.String> enumValues)
Ensure that the given enumerations exist.
|
public EnsureEnum(Executor executor, java.lang.String uuid, Roles roles, ReadOnlyStatus readOnly)
executor
- the internal task executoruuid
- a UUID suitable for constructing a privileged principalroles
- information about the system rolesreadOnly
- the read-only statuspublic <E extends IEnum & IGlobal> java.util.List<java.lang.Long> ensure(java.lang.Class<E> enumClass, java.util.Collection<java.lang.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.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.