* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
+ * Modifications copyright (c) 2019 Nokia
+ * ================================================================================
*/
package org.openecomp.sdcrests.action.rest.services;
public class ActionsImpl implements Actions {
private static final Logger LOGGER = LoggerFactory.getLogger(ActionsImpl.class);
- @Autowired
- private ActionManager actionManager;
+
+ private final ActionManager actionManager;
+
private String whitespaceCharacters = "\\s" /* dummy empty string for homogeneity */
+ "\\u0009" // CHARACTER TABULATION
+ "\\u000A" // LINE FEED (LF)
private String whitespaceRegex = ".*[" + whitespaceCharacters + "].*";
private String invalidFilenameRegex = ".*[" + whitespaceCharacters + invalidFilenameChars + "].*";
+ @Autowired
+ public ActionsImpl(ActionManager actionManager) {
+ this.actionManager = actionManager;
+ }
+
/**
* Calculate the checksum for a given input
*
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
+ * Modifications copyright (c) 2019 Nokia
+ * ================================================================================
*/
package org.openecomp.sdcrests.applicationconfig.rest.services;
@Service("applicationConfiguration")
@Scope(value = "prototype")
public class ApplicationConfigurationImpl implements ApplicationConfiguration {
+
+ private final ApplicationConfigManager applicationConfigManager;
+
@Autowired
- private ApplicationConfigManager applicationConfigManager;
+ public ApplicationConfigurationImpl(ApplicationConfigManager applicationConfigManager) {
+ this.applicationConfigManager = applicationConfigManager;
+ }
@Override
public Response insertToTable(String namespace, String key, InputStream fileContainingSchema) {
* 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.
+ * ============LICENSE_END=========================================================
+ * Modifications copyright (c) 2019 Nokia
+ * ================================================================================
*/
package org.openecomp.sdcrests.externaltesting.rest.services;
@Scope(value = "prototype")
public class ExternalTestingImpl implements ExternalTesting {
- private ExternalTestingManager testingManager;
+ private final ExternalTestingManager testingManager;
private static final Logger logger =
LoggerFactory.getLogger(ExternalTestingImpl.class);
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
+ * Modifications copyright (c) 2019 Nokia
+ * ================================================================================
*/
package org.openecomp.sdcrests.validation.rest.services;
@Service("validation")
@Scope(value = "prototype")
public class ValidationImpl implements Validation {
+
+ private final UploadValidationManager uploadValidationManager;
+
@Autowired
- private UploadValidationManager uploadValidationManager;
+ public ValidationImpl(UploadValidationManager uploadValidationManager) {
+ this.uploadValidationManager = uploadValidationManager;
+ }
@Override
public Response validateFile(String type, InputStream fileToValidate) {
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
+ * Modifications copyright (c) 2019 Nokia
+ * ================================================================================
*/
package org.openecomp.sdcrests.vsp.rest.services;
@Scope(value = "prototype")
public class ProcessesImpl implements Processes {
+ private final ComponentProcesses componentProcesses;
+
@Autowired
- private ComponentProcesses componentProcesses;
+ public ProcessesImpl(ComponentProcesses componentProcesses) {
+ this.componentProcesses = componentProcesses;
+ }
@Override
public Response list(String vspId, String versionId, String user) {