Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: src/main/java/com/netiq/arc/persistence/service/DataCollectionService.java
- ===================================================================
- --- src/main/java/com/netiq/arc/persistence/service/DataCollectionService.java (revision 164)
- +++ src/main/java/com/netiq/arc/persistence/service/DataCollectionService.java (working copy)
- @@ -46,7 +46,7 @@
- }
- }
- - @Override
- +
- public IDataCollection startDataCollection(IDataCollector dataCollector)
- throws DataCollectionException
- {
- @@ -55,7 +55,7 @@
- return null;
- }
- - @Override
- +
- public int stopDataCollection(IDataCollection dataCollection)
- throws DataCollectionException
- {
- @@ -63,7 +63,7 @@
- return 0;
- }
- - @Override
- +
- public String testConnection(String serviceConfig)
- throws DataCollectionException
- {
- @@ -71,7 +71,7 @@
- return null;
- }
- - @Override
- +
- public IMappedEntity testCollection(IDataCollector dataCollector)
- throws DataCollectionException
- {
- @@ -79,14 +79,14 @@
- return null;
- }
- - @Override
- +
- public ICollectedUser getAllCollectedUsers(String collectionId)
- {
- // TODO Implement
- return null;
- }
- - @Override
- +
- public List<ICollectedUser> getCollectedUsers(String collectionId, IQueryConditionGroup conditionGroup)
- {
- // TODO Implement
- Index: src/main/java/com/netiq/arc/persistence/service/DataCollectionConfigService.java
- ===================================================================
- --- src/main/java/com/netiq/arc/persistence/service/DataCollectionConfigService.java (revision 164)
- +++ src/main/java/com/netiq/arc/persistence/service/DataCollectionConfigService.java (working copy)
- @@ -63,7 +63,7 @@
- m_attrDefList.add(new AttributeDefinition("email", true, AttributeType.STRING, EntityType.USER, false));
- }
- - @Override
- +
- public List<IAttributeDefinition> getAttributeDefinitions(EntityType type)
- throws PersistenceException
- {
- @@ -71,7 +71,7 @@
- return m_attrDefList;
- }
- - @Override
- +
- public void addExtendedAttributeDefinition(IAttributeDefinition def)
- throws PersistenceException
- {
- @@ -90,7 +90,7 @@
- m_attrDefList.add(def);
- }
- - @Override
- +
- public IAttributeDefinition newExtendedAttributeDefinition(String name, boolean multiValued, AttributeType type, EntityType entityType, int length)
- throws PersistenceException
- {
- @@ -98,7 +98,7 @@
- }
- - @Override
- +
- public List<IDataCollector> getDataCollectors(CollectorType type)
- throws PersistenceException
- {
- @@ -106,7 +106,7 @@
- return null;
- }
- - @Override
- +
- public void addDataCollector(IDataCollector collector)
- throws PersistenceException
- {
- @@ -114,7 +114,7 @@
- }
- - @Override
- +
- public List<ITemplate> getCollectorTemplates(CollectorType type)
- throws PersistenceException
- {
- @@ -122,7 +122,7 @@
- return null;
- }
- - @Override
- +
- public List<IDataCollection> getDataCollections(CollectorType type)
- throws PersistenceException
- {
- @@ -130,7 +130,7 @@
- return null;
- }
- - @Override
- +
- public List<IDataCollection> getDataCollections(CollectorType type, CollectionStatus status)
- throws PersistenceException
- {
- @@ -138,7 +138,7 @@
- return null;
- }
- - @Override
- +
- public List<IDirectory> getDirectories()
- throws PersistenceException
- {
- @@ -146,7 +146,7 @@
- return null;
- }
- - @Override
- +
- public void addDirectory(IDirectory directory)
- throws PersistenceException
- {
- @@ -154,7 +154,7 @@
- }
- - @Override
- +
- public void setAttributeDefinitionAsUsed(IAttributeDefinition attributeDefinition)
- throws PersistenceException
- {
- @@ -162,7 +162,7 @@
- }
- - @Override
- +
- public void updateDataCollector(IDataCollector collector)
- throws PersistenceException
- {
- @@ -170,7 +170,7 @@
- }
- - @Override
- +
- public List<IDataCollection> getDataCollections(CollectorType type, IQueryConditionGroup conditionGroup)
- throws PersistenceException
- {
- Index: pom.xml
- ===================================================================
- --- pom.xml (revision 164)
- +++ pom.xml (working copy)
- @@ -62,5 +62,123 @@
- <version>1.7.0</version>
- </dependency>
- +
- </dependencies>
- + <build>
- + <plugins>
- + <plugin>
- + <groupId>org.codehaus.mojo</groupId>
- + <artifactId>sql-maven-plugin</artifactId>
- + <version>1.4</version>
- + <dependencies>
- + <dependency>
- + <groupId>postgresql</groupId>
- + <artifactId>postgresql</artifactId>
- + <version>9.0-801.jdbc4</version>
- + </dependency>
- + </dependencies>
- +
- + <configuration>
- + <driver>org.postgresql.Driver</driver>
- + <url>jdbc:postgresql://localhost:5432:arcops</url>
- + <username>postgres</username>
- + <password>novell</password>
- + <!-- You can comment out username/password configurations and
- + have maven to look them up in your settings.xml using ${settingsKey}
- + -->
- + <settingsKey>sensibleKey</settingsKey>
- + <!--all executions are ignored if -Dmaven.test.skip=true-->
- + <skip>${maven.test.skip}</skip>
- + </configuration>
- + <executions>
- + <execution>
- + <id>drop-db-before-test-if-any</id>
- + <phase>process-test-resources</phase>
- + <goals>
- + <goal>execute</goal>
- + </goals>
- + <configuration>
- + <!-- need another database to drop the targeted one -->
- + <url>jdbc:postgresql://localhost:5432:bootstrapdb</url>
- + <autocommit>true</autocommit>
- + <sqlCommand>drop database arcops</sqlCommand>
- + <!-- ignore error when database is not avaiable -->
- + <onError>continue</onError>
- + </configuration>
- + </execution>
- + <execution>
- + <id>create-db</id>
- + <phase>process-test-resources</phase>
- + <goals>
- + <goal>execute</goal>
- + </goals>
- + <configuration>
- + <url>jdbc:postgresql://localhost:5432:arcops</url>
- + <!-- no transaction -->
- + <autocommit>true</autocommit>
- + <sqlCommand>create database arcops</sqlCommand>
- + </configuration>
- + </execution>
- + <execution></execution>
- + </executions>
- + </plugin>
- + <plugin>
- + <groupId>org.codehaus.mojo</groupId>
- + <artifactId>hibernate3-maven-plugin</artifactId>
- + <version>2.2</version>
- + <dependencies>
- + <dependency>
- + <groupId>org.hibernate</groupId>
- + <artifactId>hibernate-entitymanager</artifactId>
- + <version>3.6.5.Final</version>
- + <exclusions>
- + <exclusion>
- + <groupId>cglib</groupId>
- + <artifactId>cglib</artifactId>
- + </exclusion>
- + <exclusion>
- + <groupId>commons-logging</groupId>
- + <artifactId>commons-logging</artifactId>
- + </exclusion>
- + </exclusions>
- + </dependency>
- + <dependency>
- + <groupId>org.hibernate</groupId>
- + <artifactId>hibernate-core</artifactId>
- + <version>3.6.5.Final</version>
- + <exclusions>
- + <exclusion>
- + <groupId>cglib</groupId>
- + <artifactId>cglib</artifactId>
- + </exclusion>
- + <exclusion>
- + <groupId>commons-logging</groupId>
- + <artifactId>commons-logging</artifactId>
- + </exclusion>
- + </exclusions>
- + </dependency>
- + </dependencies>
- + <executions>
- + <execution>
- + <phase>install</phase>
- + <goals>
- + <goal>hbm2ddl</goal>
- + </goals>
- + </execution>
- + </executions>
- + <configuration>
- + <hibernate>
- + <configurationFile>src/main/resources/ops.postgres.cfg.xml</configurationFile>
- + </hibernate>
- + <outputDirectory>
- + <hbm2dll>src/main/resources</hbm2dll>
- + </outputDirectory>
- + <outputFile>dbcreate.sql</outputFile>
- + <update>true</update>
- + <drop>true</drop>
- + <format>true</format>
- + </configuration>
- + </plugin>
- + </plugins>
- + </build>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement