* limitations under the License.
* ============LICENSE_END=========================================================
*/
-package org.openecomp.sdc.activitylog;
-import org.openecomp.core.factory.api.AbstractComponentFactory;
-import org.openecomp.core.factory.api.AbstractFactory;
+import { Pipe, PipeTransform } from '@angular/core';
-public abstract class ActivityLogManagerFactory extends AbstractComponentFactory<ActivityLogManager> {
- public static ActivityLogManagerFactory getInstance() {
- return AbstractFactory.getInstance(ActivityLogManagerFactory.class);
+@Pipe({name: 'resourceName'})
+export class ResourceNamePipe implements PipeTransform {
+ transform(value) : any {
+ if (value) {
+ //newName = _.last(newName.split('.'));
+ const newName:string =
+ _.last(value.split(/tosca\.nodes\..*network\..*relationships\..*org\.openecomp\..*resource\.nfv\..*nodes\.module\..*cp\..*vl\./));
+ return (newName) ? newName : value;
+ }
}
}