public class IacucProtocolAttachmentTypeByGroupValuesFinder<T extends ProtocolAttachmentBase & TypedAttachment>
extends org.kuali.rice.krad.keyvalues.KeyValuesBase
| Constructor and Description |
|---|
IacucProtocolAttachmentTypeByGroupValuesFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
containsType(String typeCode)
Checks if a type code matches a type code contained in
filterTypes. |
protected org.kuali.rice.krad.keyvalues.KeyValuesFinder |
createKeyValuesFinder()
Creates the
KeyValuesFinder that is used by this finder. |
protected List<org.kuali.rice.core.api.util.KeyValue> |
filterUsedTypes(List<org.kuali.rice.core.api.util.KeyValue> unfiltered)
returns a KeyValue list removing all items with type codes matching the type codes contained in
filterTypes. |
Collection<T> |
getFilterTypes()
Gets the types to filter.
|
String |
getGroupCode()
Gets the group code.
|
List<org.kuali.rice.core.api.util.KeyValue> |
getKeyValues()
Gets the keyvalue pair for
ProtocolAttachmentTypeGroup. |
void |
setFilterTypes(Collection<T> filterTypes)
Sets the types to filter.
|
void |
setGroupCode(String groupCode)
Sets the group code.
|
protected void |
validateRequiredProperties()
Validates the the proper fields have been set on this object.
|
public IacucProtocolAttachmentTypeByGroupValuesFinder()
public List<org.kuali.rice.core.api.util.KeyValue> getKeyValues()
ProtocolAttachmentTypeGroup.
The key is the typeCode and the value is the type description.
setGroupCode(String)
must be called with valid values before calling this method.
KeyValueprotected org.kuali.rice.krad.keyvalues.KeyValuesFinder createKeyValuesFinder()
KeyValuesFinder that is used by this finder.
Default visibility for easier testing.
KeyValuesFinderprotected List<org.kuali.rice.core.api.util.KeyValue> filterUsedTypes(List<org.kuali.rice.core.api.util.KeyValue> unfiltered)
filterTypes.unfiltered - the unfiltered list.protected boolean containsType(String typeCode)
filterTypes.typeCode - the typeCodepublic String getGroupCode()
public void setGroupCode(String groupCode)
groupCode - the group codepublic Collection<T> getFilterTypes()
public void setFilterTypes(Collection<T> filterTypes)
filterTypes - the types to filterprotected void validateRequiredProperties()
IllegalStateException - if this properties are invalidCopyright © 2013 The Kuali Foundation. All Rights Reserved.