Skip to content

Commit

Permalink
SWITCHYARD-2562 Update camel-sap binding to support camel-sap 6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
igarashitm committed Mar 3, 2015
1 parent 3c1cd1e commit 469071e
Show file tree
Hide file tree
Showing 46 changed files with 2,225 additions and 208 deletions.
4 changes: 4 additions & 0 deletions camel/camel-sap/pom.xml
Expand Up @@ -34,6 +34,10 @@
</switchyard.osgi.import>
</properties>
<dependencies>
<dependency>
<groupId>org.switchyard</groupId>
<artifactId>switchyard-config</artifactId>
</dependency>
<dependency>
<groupId>org.switchyard.components</groupId>
<artifactId>switchyard-component-common-camel</artifactId>
Expand Down
Expand Up @@ -14,7 +14,7 @@
package org.switchyard.component.camel.sap.deploy;

import org.switchyard.component.camel.common.deploy.BaseBindingComponent;
import org.switchyard.component.camel.sap.model.v2.V2CamelSapBindingModel;
import org.switchyard.component.camel.sap.model.v2.Constants;

/**
* Camel sap component.
Expand All @@ -25,7 +25,7 @@ public class CamelSapComponent extends BaseBindingComponent {
* Creates new component.
*/
public CamelSapComponent() {
super("CamelSapComponent", V2CamelSapBindingModel.SAP);
super("CamelSapComponent", Constants.SAP);
}

}
Expand Up @@ -19,55 +19,18 @@
* Camel SAP binding model.
*/
public interface CamelSapBindingModel extends CamelBindingModel {

/**
* Gets server.
* Gets endpoint.
* @return server
*/
String getServer();
EndpointModel getEndpointModel();

/**
* Sets server.
* @param server server
* Sets endpoint.
* @param endpoint endpoint
* @return this BindingModel (useful for chaining)
*/
CamelSapBindingModel setServer(String server);
CamelSapBindingModel setEndpointModel(EndpointModel endpoint);

/**
* Gets destination.
* @return destination
*/
String getDestination();

/**
* Sets destination.
* @param destination destination
* @return this BindingModel (useful for chaining)
*/
CamelSapBindingModel setDestination(String destination);

/**
* Gets RFC name.
* @return RFC name
*/
String getRfcName();

/**
* Sets RFC name.
* @param rfcName RFC name
* @return this BindingModel (useful for chaining)
*/
CamelSapBindingModel setRfcName(String rfcName);

/**
* Gets if it's transacted.
* @return true if it's transacted
*/
Boolean isTransacted();

/**
* Sets if it's transacted.
* @param transacted true if it's transacted
* @return this BindingModel (useful for chaining)
*/
CamelSapBindingModel setTransacted(Boolean transacted);
}
@@ -0,0 +1,32 @@
/*
* Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.switchyard.component.camel.sap.model;

/**
* camel-sap destination model.
*/
public interface DestinationModel extends EndpointModel {
/**
* Gets destination name.
* @return destination name
*/
public String getDestinationName();

/**
* Sets destination name.
* @param destination destination
* @return this model (useful for chaining)
*/
public DestinationModel setDestinationName(String destination);
}
@@ -0,0 +1,48 @@
/*
* Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.switchyard.component.camel.sap.model;

import org.switchyard.component.camel.common.QueryString;
import org.switchyard.config.model.Model;

/**
* camel-sap endpoint model.
*/
public interface EndpointModel extends Model {
/**
* Gets schema.
* @return schema
*/
public String getSchema();

/**
* Gets name.
* @return name
*/
public String getName();

/**
* Sets name.
* @param name name
* @return this model (useful for chaining)
*/
public EndpointModel setName(String name);

/**
* Gets base URI string.
* @param queryString query string
* @return base URI string
*/
public StringBuilder createBaseURIString(QueryString queryString);
}
@@ -0,0 +1,71 @@
/*
* Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.switchyard.component.camel.sap.model;

/**
* camel-sap IDoc destination model.
*/
public interface IDocDestinationModel extends DestinationModel {
/**
* Gets IDoc type.
* @return IDoc type
*/
public String getIdocType();

/**
* Sets IDoc type.
* @param idoc IDoc type
* @return this model (useful for chaining)
*/
public IDocDestinationModel setIdocType(String idoc);

/**
* Gets IDoc type extension.
* @return IDoc type extension
*/
public String getIdocTypeExtension();

/**
* Sets IDoc type extension.
* @param idocExt IDoc type extension
* @return this model (useful for chaiming)
*/
public IDocServerModel setIdocTypeExtension(String idocExt);

/**
* Gets system release.
* @return system release
*/
public String getSystemRelease();

/**
* Sets system release.
* @param sysRelease system release
* @return this model (useful for chaining)
*/
public IDocDestinationModel setSystemRelease(String sysRelease);

/**
* Gets application release.
* @return application release
*/
public String getApplicationRelease();

/**
* Sets application release.
* @param appRelease application release
* @return this model (useful for chaining)
*/
public IDocDestinationModel setApplicationRelease(String appRelease);
}
@@ -0,0 +1,71 @@
/*
* Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.switchyard.component.camel.sap.model;

/**
* camel-sap IDoc server model.
*/
public interface IDocServerModel extends ServerModel {
/**
* Gets IDoc type.
* @return IDoc type.
*/
public String getIdocType();

/**
* Sets IDoc type.
* @param idoc IDoc type
* @return this model (useful for chaining)
*/
public IDocServerModel setIdocType(String idoc);

/**
* Gets IDoc type extension.
* @return IDoc type extension
*/
public String getIdocTypeExtension();

/**
* Sets IDoc type extension.
* @param idocExt IDoc type extension
* @return this model (useful for chaiming)
*/
public IDocServerModel setIdocTypeExtension(String idocExt);

/**
* Gets system release.
* @return system release
*/
public String getSystemRelease();

/**
* Sets system release.
* @param sysRelease system release
* @return this model (useful for chaining)
*/
public IDocServerModel setSystemRelease(String sysRelease);

/**
* Gets application release.
* @return application release
*/
public String getApplicationRelease();

/**
* Sets application release.
* @param appRelease application release
* @return this model (useful for chaining)
*/
public IDocServerModel setApplicationRelease(String appRelease);
}
@@ -0,0 +1,32 @@
/*
* Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.switchyard.component.camel.sap.model;

/**
* camel-sap queued IDoc destination model.
*/
public interface QIDocDestinationModel extends IDocDestinationModel {
/**
* Gets queue name.
* @return destination name
*/
public String getQueueName();

/**
* Sets queue name.
* @param queue queue name
* @return this model (useful for chaining)
*/
public QIDocDestinationModel setQueueName(String queue);
}
@@ -0,0 +1,32 @@
/*
* Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.switchyard.component.camel.sap.model;

/**
* camel-sap destination model.
*/
public interface QRfcDestinationModel extends RfcDestinationModel {
/**
* Gets queue name.
* @return destination name
*/
public String getQueueName();

/**
* Sets queue name.
* @param queue queue name
* @return this model (useful for chaining)
*/
public QRfcDestinationModel setQueueName(String queue);
}

0 comments on commit 469071e

Please sign in to comment.