diff --git a/ngapp/src/app/activities/shared/add-activity-form/add-activity-form.component.ts b/ngapp/src/app/activities/shared/add-activity-form/add-activity-form.component.ts index 3cc72898..3d1772a4 100644 --- a/ngapp/src/app/activities/shared/add-activity-form/add-activity-form.component.ts +++ b/ngapp/src/app/activities/shared/add-activity-form/add-activity-form.component.ts @@ -22,6 +22,7 @@ import { EventEmitter } from "@angular/core"; import { Output } from "@angular/core"; import { Router } from "@angular/router"; import { NewConnection } from "@connections/shared/new-connection.model"; +import { de } from "ngx-bootstrap/locale"; @Component({ moduleId: module.id, @@ -48,6 +49,13 @@ export class AddActivityFormComponent { return this.model.getDescription(); } + /** + * @param {string} description the new activity description + */ + public set activityDescription( description: string ) { + this.model.setDescription( description ); + } + /** * @returns {string} the activity name */ @@ -55,6 +63,13 @@ export class AddActivityFormComponent { return this.model.getName(); } + /** + * @param {string} name the new activity name + */ + public set activityName( name: string ) { + this.model.setName( name ); + } + /** * @returns {string} the activity's source connection */ @@ -62,6 +77,13 @@ export class AddActivityFormComponent { return this.model.getSourceConnection(); } + /** + * @param {string} source the new activity source + */ + public set activitySource( source: NewConnection ) { + this.model.setSourceConnection( source ); + } + /** * @returns {string} the activity's target connection */ @@ -69,6 +91,13 @@ export class AddActivityFormComponent { return this.model.getTargetConnection(); } + /** + * @param {string} target the new activity target + */ + public set activityTarget( target: NewConnection ) { + this.model.setTargetConnection( target ); + } + public get currentActivity(): string { return JSON.stringify(this.model); } diff --git a/ngapp/src/app/connections/shared/add-connection-form/add-connection-form.component.ts b/ngapp/src/app/connections/shared/add-connection-form/add-connection-form.component.ts index e1a92aab..f9e22c02 100644 --- a/ngapp/src/app/connections/shared/add-connection-form/add-connection-form.component.ts +++ b/ngapp/src/app/connections/shared/add-connection-form/add-connection-form.component.ts @@ -45,6 +45,13 @@ export class AddConnectionFormComponent { return this.model.getName(); } + /** + * @param {string} name the new connection name + */ + public set connectionName( name: string ) { + this.model.setName( name ); + } + /** * @returns {string} the driver name of the connection */ @@ -52,6 +59,13 @@ export class AddConnectionFormComponent { return this.model.getDriverName(); } + /** + * @param {string} driverName the new connection driver name + */ + public set connectionDriverName( driverName: string ) { + this.model.setDriverName( driverName ); + } + /** * @returns {boolean} true if a JDBC connection */ @@ -59,6 +73,13 @@ export class AddConnectionFormComponent { return this.model.isJdbc(); } + /** + * @param {boolean} isJdbc true if the new connection is a JDBC connection + */ + public set connectionIsJdbc( isJdbc: boolean ) { + this.model.setJdbc( isJdbc ); + } + /** * @returns {string} the JNDI name of the connection */ @@ -66,6 +87,13 @@ export class AddConnectionFormComponent { return this.model.getJndiName(); } + /** + * @param {string} jndiName the new connection JNDI name + */ + public set connectionJndiName( jndiName: string ) { + this.model.setJndiName( jndiName ); + } + public currentConnection(): string { return JSON.stringify(this.model); }