Commit 00dc34d0 authored by Gianluca Filippone's avatar Gianluca Filippone
Browse files

Add of persistence API and JPA modules

parent bf41723e
......@@ -19,7 +19,7 @@ import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.syncope.common.lib.AbstractBaseBean;
@XmlRootElement(name = "EndRequest")
@XmlRootElement(name = "endRequest")
@XmlType
public class EndRequestTO extends AbstractBaseBean {
......
......@@ -19,7 +19,7 @@ import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.syncope.common.lib.AbstractBaseBean;
@XmlRootElement(name = "ForwardResponse")
@XmlRootElement(name = "forwardResponse")
@XmlType
public class ForwardResponseTO extends AbstractBaseBean {
......
......@@ -19,7 +19,7 @@ import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.syncope.common.lib.AbstractBaseBean;
@XmlRootElement(name = "numberCoordinationMessage")
@XmlRootElement(name = "numberCoordMessage")
@XmlType
public class NumberCoordMessageTO extends AbstractBaseBean {
......
......@@ -19,7 +19,7 @@ import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.syncope.common.lib.AbstractBaseBean;
@XmlRootElement(name = "StartRequestTO")
@XmlRootElement(name = "startRequest")
@XmlType
public class StartRequestTO extends AbstractBaseBean {
......
......@@ -25,7 +25,7 @@ import org.apache.syncope.common.lib.AbstractBaseBean;
import org.springframework.stereotype.Component;
@Component
public class CollectorLogic extends AbstractTransactionalLogic<AbstractBaseBean> {
public class MonitorLogic extends AbstractTransactionalLogic<AbstractBaseBean> {
@Override
protected AbstractBaseBean resolveReference(final Method method, final Object... args)
......
......@@ -21,7 +21,7 @@ import org.apache.syncope.core.persistence.api.SyncopeLoader;
import org.springframework.stereotype.Component;
@Component
public class CollectorLoader implements SyncopeLoader {
public class MonitorLoader implements SyncopeLoader {
@Override
public Integer getPriority() {
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>eu.chorevolution.idm.ext</groupId>
<artifactId>syncope-ext-choreography</artifactId>
<version>0.1-SNAPSHOT</version>
</parent>
<name>CHOReVOLUTION IdM Extensions: Choreography Persistence API</name>
<description>CHOReVOLUTION IdM Extensions: Choreography Persistence API</description>
<groupId>org.apache.syncope.ext.choreography</groupId>
<artifactId>syncope-ext-choreography-persistence-api</artifactId>
<packaging>jar</packaging>
<properties>
<rootpom.basedir>${basedir}/../../..</rootpom.basedir>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.syncope.core</groupId>
<artifactId>syncope-core-persistence-api</artifactId>
<version>${syncope.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
/*
* Copyright 2016 The CHOReVOLUTION project.
*
* 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.apache.syncope.core.persistence.api.dao;
import java.util.List;
import org.apache.syncope.core.persistence.api.entity.EndRequest;
public interface EndRequestDAO extends DAO<EndRequest, Long> {
EndRequest find(String cdName, String operationName, String instanceName);
List<EndRequest> findAll();
EndRequest save(EndRequest response);
void delete(String key);
}
/*
* Copyright 2016 The CHOReVOLUTION project.
*
* 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.apache.syncope.core.persistence.api.dao;
import java.util.List;
import org.apache.syncope.core.persistence.api.entity.ForwardRequest;
public interface ForwardRequestDAO extends DAO<ForwardRequest, Long> {
ForwardRequest find(String cdName, String operationName, String instanceName);
List<ForwardRequest> findAll();
ForwardRequest save(ForwardRequest request);
void delete(String key);
}
/*
* Copyright 2016 The CHOReVOLUTION project.
*
* 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.apache.syncope.core.persistence.api.dao;
import java.util.List;
import org.apache.syncope.core.persistence.api.entity.ForwardResponse;
public interface ForwardResponseDAO extends DAO<ForwardResponse, Long> {
ForwardResponse find(String cdName, String operationName, String instanceName);
List<ForwardResponse> findAll();
ForwardResponse save(ForwardResponse response);
void delete(String key);
}
/*
* Copyright 2016 The CHOReVOLUTION project.
*
* 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.apache.syncope.core.persistence.api.dao;
import java.util.List;
import org.apache.syncope.core.persistence.api.entity.NumberCoordMessage;
public interface NumberCoordMessageDAO extends DAO<NumberCoordMessage, Long> {
NumberCoordMessage find(String cdName, String operationName, String instanceName);
List<NumberCoordMessage> findAll();
NumberCoordMessage save(NumberCoordMessage response);
void delete(String key);
}
/*
* Copyright 2016 The CHOReVOLUTION project.
*
* 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.apache.syncope.core.persistence.api.dao;
import java.util.List;
import org.apache.syncope.core.persistence.api.entity.StartRequest;
public interface StartRequestDAO extends DAO<StartRequest, Long> {
StartRequest find(String cdName, String operationName, String instanceName);
List<StartRequest> findAll();
StartRequest save(StartRequest request);
void delete(String key);
}
/*
* Copyright 2016 The CHOReVOLUTION project.
*
* 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.apache.syncope.core.persistence.api.entity;
public interface ChoreographyEntityFactory {
StartRequest newStartRequest();
ForwardRequest newForwardRequest();
ForwardResponse newForwardResponse();
EndRequest newEndRequest();
NumberCoordMessage newNumberCoordMessage();
}
/*
* Copyright 2016 The CHOReVOLUTION project.
*
* 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.apache.syncope.core.persistence.api.entity;
public interface EndRequest extends Entity<Long> {
void setChoreographyName(String choreographyName);
String getChoreographyName();
void setInstanceName(String instanceName);
String getInstanceName();
void setCdName(String cdName);
String getCdName();
void setOperationName(String operationName);
String getOperationName();
void setRecordTime(long time);
long getRecordTime();
}
/*
* Copyright 2016 The CHOReVOLUTION project.
*
* 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.apache.syncope.core.persistence.api.entity;
public interface ForwardRequest extends Entity<Long> {
void setChoreographyName(String choreographyName);
String getChoreographyName();
void setInstanceName(String instanceName);
String getInstanceName();
void setCdName(String cdName);
String getCdName();
void setOperationName(String operationName);
String getOperationName();
void setRecordTime(long time);
long getRecordTime();
}
/*
* Copyright 2016 The CHOReVOLUTION project.
*
* 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.apache.syncope.core.persistence.api.entity;
public interface ForwardResponse extends Entity<Long> {
void setChoreographyName(String choreographyName);
String getChoreographyName();
void setInstanceName(String instanceName);
String getInstanceName();
void setCdName(String cdName);
String getCdName();
void setOperationName(String operationName);
String getOperationName();
void setRecordTime(long time);
long getRecordTime();
}
/*
* Copyright 2016 The CHOReVOLUTION project.
*
* 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.apache.syncope.core.persistence.api.entity;
public interface NumberCoordMessage extends Entity<Long> {
void setChoreographyName(String choreographyName);
String getChoreographyName();
void setInstanceName(String instanceName);
String getInstanceName();
void setCdName(String cdName);
String getCdName();
void setOperationName(String operationName);
String getOperationName();
void setNumMessages(int messages);
int getNumMessages();
}
/*
* Copyright 2016 The CHOReVOLUTION project.
*
* 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.apache.syncope.core.persistence.api.entity;
public interface StartRequest extends Entity<Long> {
void setChoreographyName(String choreographyName);
String getChoreographyName();
void setInstanceName(String instanceName);
String getInstanceName();
void setCdName(String cdName);
String getCdName();
void setOperationName(String operationName);
String getOperationName();
void setRecordTime(long recordTime);
long getRecordTime();
}
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>eu.chorevolution.idm.ext</groupId>
<artifactId>syncope-ext-choreography</artifactId>
<version>0.1-SNAPSHOT</version>
</parent>
<name>CHOReVOLUTION IdM Estensions: Choreography Persistence JPA</name>
<description>CHOReVOLUTION IdM Estensions: Choreography Persistence JPA</description>
<groupId>org.apache.syncope.ext.choreography</groupId>
<artifactId>syncope-ext-choreography-persistence-jpa</artifactId>
<packaging>jar</packaging>
<properties>
<rootpom.basedir>${basedir}/../../..</rootpom.basedir>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.syncope.core</groupId>
<artifactId>syncope-core-persistence-jpa</artifactId>
<version>${syncope.version}</version>
</dependency>
<dependency>
<groupId>org.apache.syncope.ext.choreography</groupId>
<artifactId>syncope-ext-choreography-persistence-api</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<!--
<plugin>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa-maven-plugin</artifactId>
<inherited>true</inherited>