r193 - in trunk/idm-connector-core/src/main: java/org/openiam/idm java/org/openiam/idm/srvc java/org/openiam/idm/srvc/recon java/org/openiam/idm/srvc/recon/service java/org/openiam/idm/srvc/recon/ws java/org/openiam/idm/srvc/synch/service java/org/openiam/idm/srvc/synch/ws resources/org resources/org/openiam resources/org/openiam/idm resources/org/openiam/idm/srvc resources/org/openiam/idm/srvc/recon resources/org/openiam/idm/srvc/recon/service resources/org/openiam/idm/srvc/synch resources/org/openiam/idm/srvc/synch/service

1 view
Skip to first unread message

commitm...@hosted-projects.com

unread,
Jun 5, 2010, 11:05:27 PM6/5/10
to s...@openiam.com, identityman...@googlegroups.com, laszlo...@forgerock.com, jgar...@vikingstorm.com
Author: suneet_shah
Date: Sun Jun 6 05:05:27 2010
New Revision: 193

Added:
trunk/idm-connector-core/src/main/java/org/openiam/idm/
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconResultDetailDAOImpl.java
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconciliationConfigDAOImpl.java
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconciliationResultDAOImpl.java
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconciliationServiceImpl.java
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconciliationSituationDAOImpl.java
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/ws/
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/ws/ReconciliationWebServiceImpl.java
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/service/
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/service/IdentitySynchServiceImpl.java
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/service/SynchConfigDAOImpl.java
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/service/SynchConfigDataMappingDAOImpl.java
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/ws/
trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/ws/IdentitySynchWebServiceImpl.java
trunk/idm-connector-core/src/main/resources/org/
trunk/idm-connector-core/src/main/resources/org/openiam/
trunk/idm-connector-core/src/main/resources/org/openiam/idm/
trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/
trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/
trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/service/
trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/service/ReconResultDetail.hbm.xml
trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/service/ReconciliationConfig.hbm.xml
trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/service/ReconciliationResult.hbm.xml
trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/service/ReconciliationSituation.hbm.xml
trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/synch/
trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/synch/service/
trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/synch/service/SynchConfig.hbm.xml
trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/synch/service/SynchConfigDataMapping.hbm.xml

Log:


Added: trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconResultDetailDAOImpl.java
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconResultDetailDAOImpl.java Sun Jun 6 05:05:27 2010
@@ -0,0 +1,96 @@
+package org.openiam.idm.srvc.recon.service;
+
+// Generated May 29, 2010 8:20:09 PM by Hibernate Tools 3.2.2.GA
+
+import java.util.List;
+import javax.naming.InitialContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.hibernate.SessionFactory;
+import org.openiam.idm.srvc.recon.dto.ReconResultDetail;
+
+
+/**
+ * Home object for domain model class ReconResultDetail.
+ * @see org.openiam.idm.srvc.pswd.service.ReconResultDetail
+ * @author Hibernate Tools
+ */
+public class ReconResultDetailDAOImpl implements ReconResultDetailDAO {
+
+ private static final Log log = LogFactory
+ .getLog(ReconResultDetailDAO.class);
+
+ private SessionFactory sessionFactory;
+
+
+ public void setSessionFactory(SessionFactory session) {
+ this.sessionFactory = session;
+ }
+
+ protected SessionFactory getSessionFactory() {
+ try {
+ return (SessionFactory) new InitialContext()
+ .lookup("SessionFactory");
+ } catch (Exception e) {
+ log.error("Could not locate SessionFactory in JNDI", e);
+ throw new IllegalStateException(
+ "Could not locate SessionFactory in JNDI");
+ }
+ }
+
+ public void add(ReconResultDetail transientInstance) {
+ log.debug("persisting ReconResultDetail instance");
+ try {
+ sessionFactory.getCurrentSession().persist(transientInstance);
+ log.debug("persist successful");
+ } catch (RuntimeException re) {
+ log.error("persist failed", re);
+ throw re;
+ }
+ }
+
+
+ public void remove(ReconResultDetail persistentInstance) {
+ log.debug("deleting ReconResultDetail instance");
+ try {
+ sessionFactory.getCurrentSession().delete(persistentInstance);
+ log.debug("delete successful");
+ } catch (RuntimeException re) {
+ log.error("delete failed", re);
+ throw re;
+ }
+ }
+
+ public ReconResultDetail update(ReconResultDetail detachedInstance) {
+ log.debug("merging ReconResultDetail instance");
+ try {
+ ReconResultDetail result = (ReconResultDetail) sessionFactory
+ .getCurrentSession().merge(detachedInstance);
+ log.debug("merge successful");
+ return result;
+ } catch (RuntimeException re) {
+ log.error("merge failed", re);
+ throw re;
+ }
+ }
+
+ public ReconResultDetail findById(java.lang.String id) {
+ log.debug("getting ReconResultDetail instance with id: " + id);
+ try {
+ ReconResultDetail instance = (ReconResultDetail) sessionFactory
+ .getCurrentSession()
+ .get("org.openiam.idm.srvc.pswd.service.ReconResultDetail",
+ id);
+ if (instance == null) {
+ log.debug("get successful, no instance found");
+ } else {
+ log.debug("get successful, instance found");
+ }
+ return instance;
+ } catch (RuntimeException re) {
+ log.error("get failed", re);
+ throw re;
+ }
+ }
+
+}

Added: trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconciliationConfigDAOImpl.java
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconciliationConfigDAOImpl.java Sun Jun 6 05:05:27 2010
@@ -0,0 +1,101 @@
+package org.openiam.idm.srvc.recon.service;
+
+// Generated May 29, 2010 8:20:09 PM by Hibernate Tools 3.2.2.GA
+
+import java.util.List;
+import javax.naming.InitialContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.hibernate.LockMode;
+import org.hibernate.SessionFactory;
+import org.openiam.idm.srvc.recon.dto.ReconciliationConfig;
+
+import static org.hibernate.criterion.Example.create;
+
+/**
+ * Home object for domain model class ReconiliationConfig.
+ * @see org.openiam.idm.srvc.pswd.service.ReconiliationConfig
+ * @author Hibernate Tools
+ */
+public class ReconciliationConfigDAOImpl implements ReconciliationConfigDAO {
+
+ private static final Log log = LogFactory
+ .getLog(ReconciliationConfigDAO.class);
+
+ private SessionFactory sessionFactory;
+
+
+ public void setSessionFactory(SessionFactory session) {
+ this.sessionFactory = session;
+ }
+
+ protected SessionFactory getSessionFactory() {
+ try {
+ return (SessionFactory) new InitialContext()
+ .lookup("SessionFactory");
+ } catch (Exception e) {
+ log.error("Could not locate SessionFactory in JNDI", e);
+ throw new IllegalStateException(
+ "Could not locate SessionFactory in JNDI");
+ }
+ }
+
+
+ public void add(ReconciliationConfig transientInstance) {
+ log.debug("persisting ReconiliationConfig instance");
+ try {
+ sessionFactory.getCurrentSession().persist(transientInstance);
+ log.debug("persist successful");
+ } catch (RuntimeException re) {
+ log.error("persist failed", re);
+ throw re;
+ }
+ }
+
+
+ public void remove(ReconciliationConfig persistentInstance) {
+ log.debug("deleting ReconiliationConfig instance");
+ try {
+ sessionFactory.getCurrentSession().delete(persistentInstance);
+ log.debug("delete successful");
+ } catch (RuntimeException re) {
+ log.error("delete failed", re);
+ throw re;
+ }
+ }
+
+ public ReconciliationConfig update(ReconciliationConfig detachedInstance) {
+ log.debug("merging ReconiliationConfig instance");
+ try {
+ ReconciliationConfig result = (ReconciliationConfig) sessionFactory
+ .getCurrentSession().merge(detachedInstance);
+ log.debug("merge successful");
+ return result;
+ } catch (RuntimeException re) {
+ log.error("merge failed", re);
+ throw re;
+ }
+ }
+
+ public ReconciliationConfig findById(java.lang.String id) {
+ log.debug("getting ReconiliationConfig instance with id: " + id);
+ try {
+ ReconciliationConfig instance = (ReconciliationConfig) sessionFactory
+ .getCurrentSession()
+ .get(
+ "org.openiam.idm.srvc.recon.dto.ReconciliationConfig",
+ id);
+ if (instance == null) {
+ log.debug("get successful, no instance found");
+ } else {
+ log.debug("get successful, instance found");
+ }
+ return instance;
+ } catch (RuntimeException re) {
+ log.error("get failed", re);
+ throw re;
+ }
+ }
+
+
+}

Added: trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconciliationResultDAOImpl.java
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconciliationResultDAOImpl.java Sun Jun 6 05:05:27 2010
@@ -0,0 +1,101 @@
+package org.openiam.idm.srvc.recon.service;
+
+// Generated May 29, 2010 8:20:09 PM by Hibernate Tools 3.2.2.GA
+
+import java.util.List;
+import javax.naming.InitialContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.hibernate.LockMode;
+import org.hibernate.SessionFactory;
+import org.openiam.idm.srvc.recon.dto.ReconciliationResult;
+
+import static org.hibernate.criterion.Example.create;
+
+/**
+ * Home object for domain model class ReconiliationResult.
+ * @see org.openiam.idm.srvc.pswd.service.ReconiliationResult
+ * @author Hibernate Tools
+ */
+public class ReconciliationResultDAOImpl implements ReconciliationResultDAO {
+
+ private static final Log log = LogFactory
+ .getLog(ReconciliationResultDAO.class);
+
+ private SessionFactory sessionFactory;
+
+
+ public void setSessionFactory(SessionFactory session) {
+ this.sessionFactory = session;
+ }
+
+ protected SessionFactory getSessionFactory() {
+ try {
+ return (SessionFactory) new InitialContext()
+ .lookup("SessionFactory");
+ } catch (Exception e) {
+ log.error("Could not locate SessionFactory in JNDI", e);
+ throw new IllegalStateException(
+ "Could not locate SessionFactory in JNDI");
+ }
+ }
+
+ public void add(ReconciliationResult transientInstance) {
+ log.debug("persisting ReconiliationResult instance");
+ try {
+ sessionFactory.getCurrentSession().persist(transientInstance);
+ log.debug("persist successful");
+ } catch (RuntimeException re) {
+ log.error("persist failed", re);
+ throw re;
+ }
+ }
+
+
+
+ public void remove(ReconciliationResult persistentInstance) {
+ log.debug("deleting ReconiliationResult instance");
+ try {
+ sessionFactory.getCurrentSession().delete(persistentInstance);
+ log.debug("delete successful");
+ } catch (RuntimeException re) {
+ log.error("delete failed", re);
+ throw re;
+ }
+ }
+
+ public ReconciliationResult update(ReconciliationResult detachedInstance) {
+ log.debug("merging ReconiliationResult instance");
+ try {
+ ReconciliationResult result = (ReconciliationResult) sessionFactory
+ .getCurrentSession().merge(detachedInstance);
+ log.debug("merge successful");
+ return result;
+ } catch (RuntimeException re) {
+ log.error("merge failed", re);
+ throw re;
+ }
+ }
+
+ public ReconciliationResult findById(java.lang.String id) {
+ log.debug("getting ReconiliationResult instance with id: " + id);
+ try {
+ ReconciliationResult instance = (ReconciliationResult) sessionFactory
+ .getCurrentSession()
+ .get(
+ "org.openiam.idm.srvc.recon.dto.ReconiliationResult",
+ id);
+ if (instance == null) {
+ log.debug("get successful, no instance found");
+ } else {
+ log.debug("get successful, instance found");
+ }
+ return instance;
+ } catch (RuntimeException re) {
+ log.error("get failed", re);
+ throw re;
+ }
+ }
+
+
+}

Added: trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconciliationServiceImpl.java
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconciliationServiceImpl.java Sun Jun 6 05:05:27 2010
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2009, OpenIAM LLC
+ * This file is part of the OpenIAM Identity and Access Management Suite
+ *
+ * OpenIAM Identity and Access Management Suite is free software:
+ * you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License
+ * version 3 as published by the Free Software Foundation.
+ *
+ * OpenIAM is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Lesser GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with OpenIAM. If not, see <http://www.gnu.org/licenses/>. *
+ */
+
+/**
+ *
+ */
+package org.openiam.idm.srvc.recon.service;
+
+import java.util.List;
+
+import org.openiam.idm.srvc.recon.dto.ReconciliationConfig;
+import org.openiam.idm.srvc.synch.dto.SynchConfig;
+
+/**
+ * @author suneet
+ *
+ */
+public class ReconciliationServiceImpl implements ReconciliationService {
+
+ /* (non-Javadoc)
+ * @see org.openiam.idm.srvc.recon.service.ReconciliationService#getAllConfig()
+ */
+ public List<ReconciliationConfig> getAllConfig() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+
+
+}

Added: trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconciliationSituationDAOImpl.java
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/service/ReconciliationSituationDAOImpl.java Sun Jun 6 05:05:27 2010
@@ -0,0 +1,98 @@
+package org.openiam.idm.srvc.recon.service;
+
+// Generated May 29, 2010 8:20:09 PM by Hibernate Tools 3.2.2.GA
+
+import java.util.List;
+import javax.naming.InitialContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.hibernate.LockMode;
+import org.hibernate.SessionFactory;
+import org.openiam.idm.srvc.recon.dto.ReconciliationSituation;
+
+import static org.hibernate.criterion.Example.create;
+
+/**
+ * Home object for domain model class ReconciliationSituation.
+ * @see org.openiam.idm.srvc.pswd.service.ReconciliationSituation
+ * @author Hibernate Tools
+ */
+public class ReconciliationSituationDAOImpl implements ReconciliationSituationDAO {
+
+ private static final Log log = LogFactory
+ .getLog(ReconciliationSituationDAO.class);
+
+private SessionFactory sessionFactory;
+
+
+ public void setSessionFactory(SessionFactory session) {
+ this.sessionFactory = session;
+ }
+
+ protected SessionFactory getSessionFactory() {
+ try {
+ return (SessionFactory) new InitialContext()
+ .lookup("SessionFactory");
+ } catch (Exception e) {
+ log.error("Could not locate SessionFactory in JNDI", e);
+ throw new IllegalStateException(
+ "Could not locate SessionFactory in JNDI");
+ }
+ }
+
+ public void add(ReconciliationSituation transientInstance) {
+ log.debug("persisting ReconciliationSituation instance");
+ try {
+ sessionFactory.getCurrentSession().persist(transientInstance);
+ log.debug("persist successful");
+ } catch (RuntimeException re) {
+ log.error("persist failed", re);
+ throw re;
+ }
+ }
+
+ public void remove(ReconciliationSituation persistentInstance) {
+ log.debug("deleting ReconciliationSituation instance");
+ try {
+ sessionFactory.getCurrentSession().delete(persistentInstance);
+ log.debug("delete successful");
+ } catch (RuntimeException re) {
+ log.error("delete failed", re);
+ throw re;
+ }
+ }
+
+ public ReconciliationSituation update(ReconciliationSituation detachedInstance) {
+ log.debug("merging ReconciliationSituation instance");
+ try {
+ ReconciliationSituation result = (ReconciliationSituation) sessionFactory
+ .getCurrentSession().merge(detachedInstance);
+ log.debug("merge successful");
+ return result;
+ } catch (RuntimeException re) {
+ log.error("merge failed", re);
+ throw re;
+ }
+ }
+
+ public ReconciliationSituation findById(java.lang.String id) {
+ log.debug("getting ReconciliationSituation instance with id: " + id);
+ try {
+ ReconciliationSituation instance = (ReconciliationSituation) sessionFactory
+ .getCurrentSession()
+ .get(
+ "org.openiam.idm.srvc.pswd.service.ReconciliationSituation",
+ id);
+ if (instance == null) {
+ log.debug("get successful, no instance found");
+ } else {
+ log.debug("get successful, instance found");
+ }
+ return instance;
+ } catch (RuntimeException re) {
+ log.error("get failed", re);
+ throw re;
+ }
+ }
+
+}

Added: trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/ws/ReconciliationWebServiceImpl.java
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/recon/ws/ReconciliationWebServiceImpl.java Sun Jun 6 05:05:27 2010
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2009, OpenIAM LLC
+ * This file is part of the OpenIAM Identity and Access Management Suite
+ *
+ * OpenIAM Identity and Access Management Suite is free software:
+ * you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License
+ * version 3 as published by the Free Software Foundation.
+ *
+ * OpenIAM is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Lesser GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with OpenIAM. If not, see <http://www.gnu.org/licenses/>. *
+ */
+
+/**
+ *
+ */
+package org.openiam.idm.srvc.recon.ws;
+
+import javax.jws.WebService;
+
+import org.openiam.idm.srvc.synch.ws.IdentitySynchWebService;
+import org.openiam.idm.srvc.synch.ws.SynchConfigListResponse;
+
+/**
+ * @author suneet
+ *
+ */
+@WebService(endpointInterface = "org.openiam.idm.srvc.recon.ws.ReconciliationWebService",
+ targetNamespace = "http://www.openiam.org/service/recon",
+ portName = "ReconciliationWebServicePort",
+ serviceName = "ReconciliationWebService")
+public class ReconciliationWebServiceImpl implements ReconciliationWebService {
+
+ /* (non-Javadoc)
+ * @see org.openiam.idm.srvc.recon.ws.ReconciliationWebService#getAllConfig()
+ */
+ public ReconciliationConfigListResponse getAllConfig() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}

Added: trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/service/IdentitySynchServiceImpl.java
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/service/IdentitySynchServiceImpl.java Sun Jun 6 05:05:27 2010
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2009, OpenIAM LLC
+ * This file is part of the OpenIAM Identity and Access Management Suite
+ *
+ * OpenIAM Identity and Access Management Suite is free software:
+ * you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License
+ * version 3 as published by the Free Software Foundation.
+ *
+ * OpenIAM is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Lesser GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with OpenIAM. If not, see <http://www.gnu.org/licenses/>. *
+ */
+
+/**
+ *
+ */
+package org.openiam.idm.srvc.synch.service;
+
+import java.util.List;
+
+import org.openiam.idm.srvc.synch.dto.SynchConfig;
+
+/**
+ * @author suneet
+ *
+ */
+public class IdentitySynchServiceImpl implements IdentitySynchService {
+
+ /* (non-Javadoc)
+ * @see org.openiam.idm.srvc.synch.service.IdentitySynchService#getAllConfig()
+ */
+ public List<SynchConfig> getAllConfig() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}

Added: trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/service/SynchConfigDAOImpl.java
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/service/SynchConfigDAOImpl.java Sun Jun 6 05:05:27 2010
@@ -0,0 +1,127 @@
+package org.openiam.idm.srvc.synch.service;
+
+// Generated May 29, 2010 8:20:09 PM by Hibernate Tools 3.2.2.GA
+
+import java.util.List;
+import javax.naming.InitialContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.hibernate.LockMode;
+import org.hibernate.SessionFactory;
+import org.openiam.idm.srvc.synch.dto.SynchConfig;
+
+import static org.hibernate.criterion.Example.create;
+
+/**
+ * Home object for domain model class SynchConfig.
+ * @see org.openiam.idm.srvc.pswd.service.SynchConfig
+ * @author Hibernate Tools
+ */
+public class SynchConfigDAOImpl {
+
+ private static final Log log = LogFactory.getLog(SynchConfigDAOImpl.class);
+
+ private final SessionFactory sessionFactory = getSessionFactory();
+
+ protected SessionFactory getSessionFactory() {
+ try {
+ return (SessionFactory) new InitialContext()
+ .lookup("SessionFactory");
+ } catch (Exception e) {
+ log.error("Could not locate SessionFactory in JNDI", e);
+ throw new IllegalStateException(
+ "Could not locate SessionFactory in JNDI");
+ }
+ }
+
+ public void persist(SynchConfig transientInstance) {
+ log.debug("persisting SynchConfig instance");
+ try {
+ sessionFactory.getCurrentSession().persist(transientInstance);
+ log.debug("persist successful");
+ } catch (RuntimeException re) {
+ log.error("persist failed", re);
+ throw re;
+ }
+ }
+
+ public void attachDirty(SynchConfig instance) {
+ log.debug("attaching dirty SynchConfig instance");
+ try {
+ sessionFactory.getCurrentSession().saveOrUpdate(instance);
+ log.debug("attach successful");
+ } catch (RuntimeException re) {
+ log.error("attach failed", re);
+ throw re;
+ }
+ }
+
+ public void attachClean(SynchConfig instance) {
+ log.debug("attaching clean SynchConfig instance");
+ try {
+ sessionFactory.getCurrentSession().lock(instance, LockMode.NONE);
+ log.debug("attach successful");
+ } catch (RuntimeException re) {
+ log.error("attach failed", re);
+ throw re;
+ }
+ }
+
+ public void delete(SynchConfig persistentInstance) {
+ log.debug("deleting SynchConfig instance");
+ try {
+ sessionFactory.getCurrentSession().delete(persistentInstance);
+ log.debug("delete successful");
+ } catch (RuntimeException re) {
+ log.error("delete failed", re);
+ throw re;
+ }
+ }
+
+ public SynchConfig merge(SynchConfig detachedInstance) {
+ log.debug("merging SynchConfig instance");
+ try {
+ SynchConfig result = (SynchConfig) sessionFactory
+ .getCurrentSession().merge(detachedInstance);
+ log.debug("merge successful");
+ return result;
+ } catch (RuntimeException re) {
+ log.error("merge failed", re);
+ throw re;
+ }
+ }
+
+ public SynchConfig findById(java.lang.String id) {
+ log.debug("getting SynchConfig instance with id: " + id);
+ try {
+ SynchConfig instance = (SynchConfig) sessionFactory
+ .getCurrentSession()
+ .get("org.openiam.idm.srvc.pswd.service.SynchConfig", id);
+ if (instance == null) {
+ log.debug("get successful, no instance found");
+ } else {
+ log.debug("get successful, instance found");
+ }
+ return instance;
+ } catch (RuntimeException re) {
+ log.error("get failed", re);
+ throw re;
+ }
+ }
+
+ public List<SynchConfig> findByExample(SynchConfig instance) {
+ log.debug("finding SynchConfig instance by example");
+ try {
+ List<SynchConfig> results = (List<SynchConfig>) sessionFactory
+ .getCurrentSession().createCriteria(
+ "org.openiam.idm.srvc.pswd.service.SynchConfig")
+ .add(create(instance)).list();
+ log.debug("find by example successful, result size: "
+ + results.size());
+ return results;
+ } catch (RuntimeException re) {
+ log.error("find by example failed", re);
+ throw re;
+ }
+ }
+}

Added: trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/service/SynchConfigDataMappingDAOImpl.java
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/service/SynchConfigDataMappingDAOImpl.java Sun Jun 6 05:05:27 2010
@@ -0,0 +1,132 @@
+package org.openiam.idm.srvc.synch.service;
+
+// Generated May 29, 2010 8:20:09 PM by Hibernate Tools 3.2.2.GA
+
+import java.util.List;
+import javax.naming.InitialContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.hibernate.LockMode;
+import org.hibernate.SessionFactory;
+import org.openiam.idm.srvc.synch.dto.SynchConfigDataMapping;
+
+import static org.hibernate.criterion.Example.create;
+
+/**
+ * Home object for domain model class SynchConfigDataMapping.
+ * @see org.openiam.idm.srvc.pswd.service.SynchConfigDataMapping
+ * @author Hibernate Tools
+ */
+public class SynchConfigDataMappingDAOImpl {
+
+ private static final Log log = LogFactory
+ .getLog(SynchConfigDataMappingDAOImpl.class);
+
+ private final SessionFactory sessionFactory = getSessionFactory();
+
+ protected SessionFactory getSessionFactory() {
+ try {
+ return (SessionFactory) new InitialContext()
+ .lookup("SessionFactory");
+ } catch (Exception e) {
+ log.error("Could not locate SessionFactory in JNDI", e);
+ throw new IllegalStateException(
+ "Could not locate SessionFactory in JNDI");
+ }
+ }
+
+ public void persist(SynchConfigDataMapping transientInstance) {
+ log.debug("persisting SynchConfigDataMapping instance");
+ try {
+ sessionFactory.getCurrentSession().persist(transientInstance);
+ log.debug("persist successful");
+ } catch (RuntimeException re) {
+ log.error("persist failed", re);
+ throw re;
+ }
+ }
+
+ public void attachDirty(SynchConfigDataMapping instance) {
+ log.debug("attaching dirty SynchConfigDataMapping instance");
+ try {
+ sessionFactory.getCurrentSession().saveOrUpdate(instance);
+ log.debug("attach successful");
+ } catch (RuntimeException re) {
+ log.error("attach failed", re);
+ throw re;
+ }
+ }
+
+ public void attachClean(SynchConfigDataMapping instance) {
+ log.debug("attaching clean SynchConfigDataMapping instance");
+ try {
+ sessionFactory.getCurrentSession().lock(instance, LockMode.NONE);
+ log.debug("attach successful");
+ } catch (RuntimeException re) {
+ log.error("attach failed", re);
+ throw re;
+ }
+ }
+
+ public void delete(SynchConfigDataMapping persistentInstance) {
+ log.debug("deleting SynchConfigDataMapping instance");
+ try {
+ sessionFactory.getCurrentSession().delete(persistentInstance);
+ log.debug("delete successful");
+ } catch (RuntimeException re) {
+ log.error("delete failed", re);
+ throw re;
+ }
+ }
+
+ public SynchConfigDataMapping merge(SynchConfigDataMapping detachedInstance) {
+ log.debug("merging SynchConfigDataMapping instance");
+ try {
+ SynchConfigDataMapping result = (SynchConfigDataMapping) sessionFactory
+ .getCurrentSession().merge(detachedInstance);
+ log.debug("merge successful");
+ return result;
+ } catch (RuntimeException re) {
+ log.error("merge failed", re);
+ throw re;
+ }
+ }
+
+ public SynchConfigDataMapping findById(java.lang.String id) {
+ log.debug("getting SynchConfigDataMapping instance with id: " + id);
+ try {
+ SynchConfigDataMapping instance = (SynchConfigDataMapping) sessionFactory
+ .getCurrentSession()
+ .get(
+ "org.openiam.idm.srvc.pswd.service.SynchConfigDataMapping",
+ id);
+ if (instance == null) {
+ log.debug("get successful, no instance found");
+ } else {
+ log.debug("get successful, instance found");
+ }
+ return instance;
+ } catch (RuntimeException re) {
+ log.error("get failed", re);
+ throw re;
+ }
+ }
+
+ public List<SynchConfigDataMapping> findByExample(
+ SynchConfigDataMapping instance) {
+ log.debug("finding SynchConfigDataMapping instance by example");
+ try {
+ List<SynchConfigDataMapping> results = (List<SynchConfigDataMapping>) sessionFactory
+ .getCurrentSession()
+ .createCriteria(
+ "org.openiam.idm.srvc.pswd.service.SynchConfigDataMapping")
+ .add(create(instance)).list();
+ log.debug("find by example successful, result size: "
+ + results.size());
+ return results;
+ } catch (RuntimeException re) {
+ log.error("find by example failed", re);
+ throw re;
+ }
+ }
+}

Added: trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/ws/IdentitySynchWebServiceImpl.java
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/java/org/openiam/idm/srvc/synch/ws/IdentitySynchWebServiceImpl.java Sun Jun 6 05:05:27 2010
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2009, OpenIAM LLC
+ * This file is part of the OpenIAM Identity and Access Management Suite
+ *
+ * OpenIAM Identity and Access Management Suite is free software:
+ * you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License
+ * version 3 as published by the Free Software Foundation.
+ *
+ * OpenIAM is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Lesser GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with OpenIAM. If not, see <http://www.gnu.org/licenses/>. *
+ */
+
+/**
+ *
+ */
+package org.openiam.idm.srvc.synch.ws;
+
+import javax.jws.WebService;
+
+import org.openiam.idm.srvc.synch.ws.IdentitySynchWebService;
+import org.openiam.idm.srvc.synch.ws.SynchConfigListResponse;
+
+/**
+ * @author suneet
+ *
+ */
+@WebService(endpointInterface = "org.openiam.idm.srvc.synch.ws.IdentitySynchWebService",
+ targetNamespace = "http://www.openiam.org/service/synch",
+ portName = "IdentitySynchWebServicePort",
+ serviceName = "IdentitySynchWebService")
+public class IdentitySynchWebServiceImpl implements IdentitySynchWebService {
+
+ /* (non-Javadoc)
+ * @see org.openiam.idm.srvc.sync.ws.IdentitySynchWebService#getAllConfig()
+ */
+ public SynchConfigListResponse getAllConfig() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}

Added: trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/service/ReconResultDetail.hbm.xml
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/service/ReconResultDetail.hbm.xml Sun Jun 6 05:05:27 2010
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<!-- Generated May 29, 2010 8:20:09 PM by Hibernate Tools 3.2.2.GA -->
+<hibernate-mapping>
+ <class name="org.openiam.idm.srvc.recon.dto.ReconResultDetail" table="RECON_RESULT_DETAIL">
+ <id name="reconResultDetailId" type="string">
+ <column name="RECON_RESULT_DETAIL_ID" length="32" />
+ <generator class="assigned" />
+ </id>
+ <property name="reconResultId" type="string">
+ <column name="RECON_RESULT_ID" length="32" />
+ </property>
+ <property name="objectKey" type="string">
+ <column name="OBJECT_KEY" length="320" />
+ </property>
+ <property name="situation" type="date">
+ <column name="SITUATION" length="10" />
+ </property>
+ <property name="result" type="string">
+ <column name="RESULT" length="20" />
+ </property>
+ </class>
+</hibernate-mapping>

Added: trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/service/ReconciliationConfig.hbm.xml
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/service/ReconciliationConfig.hbm.xml Sun Jun 6 05:05:27 2010
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<!-- Generated May 29, 2010 8:20:09 PM by Hibernate Tools 3.2.2.GA -->
+<hibernate-mapping>
+ <class name="org.openiam.idm.srvc.recon.dto.ReconciliationConfig" table="RECONCILIATION_CONFIG" >
+ <id name="reconConfigId" type="string">
+ <column name="RECON_CONFIG_ID" length="32" />
+ <generator class="assigned" />
+ </id>
+ <property name="resourceId" type="string">
+ <column name="RESOURCE_ID" length="32" />
+ </property>
+ <property name="mode" type="string">
+ <column name="MODE" length="20" />
+ </property>
+ <property name="frequency" type="string">
+ <column name="FREQUENCY" length="20" />
+ </property>
+ <property name="status" type="string">
+ <column name="STATUS" length="20" />
+ </property>
+ <property name="attributeLevelCheck" type="java.lang.Integer">
+ <column name="ATTRIBUTE_LEVEL_CHECK" />
+ </property>
+ <property name="updateChangedAttribute" type="java.lang.Integer">
+ <column name="UPDATE_CHANGED_ATTRIBUTE" />
+ </property>
+ </class>
+</hibernate-mapping>

Added: trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/service/ReconciliationResult.hbm.xml
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/service/ReconciliationResult.hbm.xml Sun Jun 6 05:05:27 2010
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<!-- Generated May 29, 2010 8:20:09 PM by Hibernate Tools 3.2.2.GA -->
+<hibernate-mapping>
+ <class name="org.openiam.idm.srvc.recon.dto.ReconciliationResult" table="RECONCILIATION_RESULT" >
+ <id name="reconResultId" type="string">
+ <column name="RECON_RESULT_ID" length="32" />
+ <generator class="assigned" />
+ </id>
+ <property name="reconConfigId" type="string">
+ <column name="RECON_CONFIG_ID" length="32" />
+ </property>
+ <property name="executionStartDate" type="date">
+ <column name="EXECUTION_START_DATE" length="10" />
+ </property>
+ <property name="executionEndDate" type="date">
+ <column name="EXECUTION_END_DATE" length="10" />
+ </property>
+ <property name="mode" type="string">
+ <column name="MODE" length="20" />
+ </property>
+ </class>
+</hibernate-mapping>

Added: trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/service/ReconciliationSituation.hbm.xml
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/recon/service/ReconciliationSituation.hbm.xml Sun Jun 6 05:05:27 2010
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<!-- Generated May 29, 2010 8:20:09 PM by Hibernate Tools 3.2.2.GA -->
+<hibernate-mapping>
+ <class name="org.openiam.idm.srvc.recon.dto.ReconciliationSituation" table="RECONCILIATION_SITUATION" >
+ <id name="reconSituationId" type="string">
+ <column name="RECON_SITUATION_ID" length="32" />
+ <generator class="assigned" />
+ </id>
+ <property name="reconConfigId" type="string">
+ <column name="RECON_CONFIG_ID" length="32" />
+ </property>
+ <property name="situation" type="string">
+ <column name="SITUATION" length="40" />
+ </property>
+ <property name="situationResp" type="string">
+ <column name="SITUATION_RESP" length="40" />
+ </property>
+ <property name="respScript" type="string">
+ <column name="RESP_SCRIPT" length="40" />
+ </property>
+ </class>
+</hibernate-mapping>

Added: trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/synch/service/SynchConfig.hbm.xml
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/synch/service/SynchConfig.hbm.xml Sun Jun 6 05:05:27 2010
@@ -0,0 +1,59 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<!-- Generated May 29, 2010 8:20:09 PM by Hibernate Tools 3.2.2.GA -->
+<hibernate-mapping>
+ <class name="org.openiam.idm.srvc.synch.dto.SynchConfig" table="SYNCH_CONFIG" >
+ <id name="synchConfigId" type="string">
+ <column name="SYNCH_CONFIG_ID" length="32" />
+ <generator class="assigned" />
+ </id>
+ <property name="name" type="string">
+ <column name="NAME" length="60" />
+ </property>
+ <property name="status" type="string">
+ <column name="STATUS" length="20" />
+ </property>
+ <property name="synchSrc" type="string">
+ <column name="SYNCH_SRC" length="20" />
+ </property>
+ <property name="fileName" type="string">
+ <column name="FILE_NAME" length="80" />
+ </property>
+ <property name="managedSysId" type="string">
+ <column name="MANAGED_SYS_ID" length="32" />
+ </property>
+ <property name="loadMatchOnly" type="java.lang.Integer">
+ <column name="LOAD_MATCH_ONLY" />
+ </property>
+ <property name="updateAttribute" type="java.lang.Integer">
+ <column name="UPDATE_ATTRIBUTE" />
+ </property>
+ <property name="synchFrequency" type="string">
+ <column name="SYNCH_FREQUENCY" length="20" />
+ </property>
+ <property name="deleteRule" type="string">
+ <column name="DELETE_RULE" length="80" />
+ </property>
+ <property name="processRule" type="string">
+ <column name="PROCESS_RULE" length="80" />
+ </property>
+ <property name="rejectRule" type="string">
+ <column name="REJECT_RULE" length="80" />
+ </property>
+ <property name="transformationRule" type="string">
+ <column name="TRANSFORMATION_RULE" length="80" />
+ </property>
+ <property name="matchFieldName" type="string">
+ <column name="MATCH_FIELD_NAME" length="40" />
+ </property>
+ <property name="matchSrcFieldName" type="string">
+ <column name="MATCH_SRC_FIELD_NAME" length="40" />
+ </property>
+ <property name="matchManagedSysId" type="string">
+ <column name="MATCH_MANAGED_SYS_ID" length="32" />
+ </property>
+ </class>
+</hibernate-mapping>
+
+

Added: trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/synch/service/SynchConfigDataMapping.hbm.xml
==============================================================================
--- (empty file)
+++ trunk/idm-connector-core/src/main/resources/org/openiam/idm/srvc/synch/service/SynchConfigDataMapping.hbm.xml Sun Jun 6 05:05:27 2010
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<!-- Generated May 29, 2010 8:20:09 PM by Hibernate Tools 3.2.2.GA -->
+<hibernate-mapping>
+ <class name="org.openiam.idm.srvc.synch.dto.SynchConfigDataMapping" table="SYNCH_CONFIG_DATA_MAPPING" >
+ <id name="mappingId" type="string">
+ <column name="MAPPING_ID" length="32" />
+ <generator class="assigned" />
+ </id>
+ <property name="synchConfigId" type="string">
+ <column name="SYNCH_CONFIG_ID" length="32" />
+ </property>
+ <property name="idmFieldName" type="string">
+ <column name="IDM_FIELD_NAME" length="40" />
+ </property>
+ <property name="srcFieldName" type="string">
+ <column name="SRC_FIELD_NAME" length="40" />
+ </property>
+ </class>
+</hibernate-mapping>

Reply all
Reply to author
Forward
0 new messages