* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.be.model;
import java.util.List;
public ComponentParametersView(List<String> filters) {
this(true);
-
for (String fieldName : filters) {
switch (ComponentFieldsEnum.findByValue(fieldName)) {
case PROPERTIES:
default:
break;
}
-
}
}
-
///////////////////////////////////////////////////////////////
+
// When adding new member, please update the filter method.
+
///////////////////////////////////////////////////////////////
public Component filter(Component component, ComponentTypeEnum componentType) {
-
if (ignoreUsers) {
component.setCreatorUserId(null);
component.setCreatorFullName(null);
if (ignoreNodeFilterRequirements) {
component.setNodeFilterComponents(null);
}
- if (ignoreInterfaces && ignoreInterfaceInstances &&
- componentType == ComponentTypeEnum.RESOURCE) {
+ if (ignoreInterfaces && ignoreInterfaceInstances && componentType == ComponentTypeEnum.RESOURCE) {
component.setInterfaces(null);
}
if (ignoreDerivedFrom && componentType == ComponentTypeEnum.RESOURCE) {
}
return parseFlag;
}
-
}