Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repo-sqale: more mapped entities as needed for midPoint startup
- Loading branch information
Showing
20 changed files
with
653 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/qbean/MSecurityPolicy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (C) 2010-2021 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.repo.sqale.qbean; | ||
|
||
import com.evolveum.midpoint.repo.sqale.qmodel.QSecurityPolicy; | ||
|
||
/** | ||
* Querydsl "row bean" type related to {@link QSecurityPolicy}. | ||
*/ | ||
public class MSecurityPolicy extends MObject { | ||
} |
15 changes: 15 additions & 0 deletions
15
...repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/qbean/MSystemConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (C) 2010-2021 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.repo.sqale.qbean; | ||
|
||
import com.evolveum.midpoint.repo.sqale.qmodel.QSystemConfiguration; | ||
|
||
/** | ||
* Querydsl "row bean" type related to {@link QSystemConfiguration}. | ||
*/ | ||
public class MSystemConfiguration extends MObject { | ||
} |
19 changes: 19 additions & 0 deletions
19
repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/qbean/MTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (C) 2010-2021 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.repo.sqale.qbean; | ||
|
||
import com.evolveum.midpoint.repo.sqale.qmodel.QTask; | ||
|
||
/** | ||
* Querydsl "row bean" type related to {@link QTask}. | ||
*/ | ||
public class MTask extends MObject { | ||
|
||
/* TODO | ||
*/ | ||
} |
46 changes: 46 additions & 0 deletions
46
...sqale/src/main/java/com/evolveum/midpoint/repo/sqale/qmapping/QSecurityPolicyMapping.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright (C) 2010-2021 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.repo.sqale.qmapping; | ||
|
||
import com.evolveum.midpoint.repo.sqale.qbean.MSecurityPolicy; | ||
import com.evolveum.midpoint.repo.sqale.qmodel.QSecurityPolicy; | ||
import com.evolveum.midpoint.repo.sqlbase.SqlRepoContext; | ||
import com.evolveum.midpoint.repo.sqlbase.SqlTransformerContext; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.SecurityPolicyType; | ||
|
||
/** | ||
* Mapping between {@link QSecurityPolicy} and {@link SecurityPolicyType}. | ||
*/ | ||
public class QSecurityPolicyMapping | ||
extends QObjectMapping<SecurityPolicyType, QSecurityPolicy, MSecurityPolicy> { | ||
|
||
public static final String DEFAULT_ALIAS_NAME = "sp"; | ||
|
||
public static final QSecurityPolicyMapping INSTANCE = new QSecurityPolicyMapping(); | ||
|
||
private QSecurityPolicyMapping() { | ||
super(QSecurityPolicy.TABLE_NAME, DEFAULT_ALIAS_NAME, | ||
SecurityPolicyType.class, QSecurityPolicy.class); | ||
} | ||
|
||
@Override | ||
protected QSecurityPolicy newAliasInstance(String alias) { | ||
return new QSecurityPolicy(alias); | ||
} | ||
|
||
@Override | ||
public ObjectSqlTransformer<SecurityPolicyType, QSecurityPolicy, MSecurityPolicy> | ||
createTransformer(SqlTransformerContext transformerContext, SqlRepoContext sqlRepoContext) { | ||
// no special class needed, no additional columns | ||
return new ObjectSqlTransformer<>(transformerContext, this); | ||
} | ||
|
||
@Override | ||
public MSecurityPolicy newRowObject() { | ||
return new MSecurityPolicy(); | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
.../src/main/java/com/evolveum/midpoint/repo/sqale/qmapping/QSystemConfigurationMapping.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright (C) 2010-2021 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.repo.sqale.qmapping; | ||
|
||
import com.evolveum.midpoint.repo.sqale.qbean.MSystemConfiguration; | ||
import com.evolveum.midpoint.repo.sqale.qmodel.QSystemConfiguration; | ||
import com.evolveum.midpoint.repo.sqlbase.SqlRepoContext; | ||
import com.evolveum.midpoint.repo.sqlbase.SqlTransformerContext; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType; | ||
|
||
/** | ||
* Mapping between {@link QSystemConfiguration} and {@link SystemConfigurationType}. | ||
*/ | ||
public class QSystemConfigurationMapping | ||
extends QObjectMapping<SystemConfigurationType, QSystemConfiguration, MSystemConfiguration> { | ||
|
||
public static final String DEFAULT_ALIAS_NAME = "sc"; | ||
|
||
public static final QSystemConfigurationMapping INSTANCE = new QSystemConfigurationMapping(); | ||
|
||
private QSystemConfigurationMapping() { | ||
super(QSystemConfiguration.TABLE_NAME, DEFAULT_ALIAS_NAME, | ||
SystemConfigurationType.class, QSystemConfiguration.class); | ||
} | ||
|
||
@Override | ||
protected QSystemConfiguration newAliasInstance(String alias) { | ||
return new QSystemConfiguration(alias); | ||
} | ||
|
||
@Override | ||
public ObjectSqlTransformer<SystemConfigurationType, QSystemConfiguration, MSystemConfiguration> | ||
createTransformer(SqlTransformerContext transformerContext, SqlRepoContext sqlRepoContext) { | ||
// no special class needed, no additional columns | ||
return new ObjectSqlTransformer<>(transformerContext, this); | ||
} | ||
|
||
@Override | ||
public MSystemConfiguration newRowObject() { | ||
return new MSystemConfiguration(); | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/qmapping/QTaskMapping.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright (C) 2010-2021 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.repo.sqale.qmapping; | ||
|
||
import com.evolveum.midpoint.repo.sqale.qbean.MTask; | ||
import com.evolveum.midpoint.repo.sqale.qmodel.QTask; | ||
import com.evolveum.midpoint.repo.sqlbase.SqlRepoContext; | ||
import com.evolveum.midpoint.repo.sqlbase.SqlTransformerContext; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType; | ||
|
||
/** | ||
* Mapping between {@link QTask} and {@link TaskType}. | ||
*/ | ||
public class QTaskMapping | ||
extends QObjectMapping<TaskType, QTask, MTask> { | ||
|
||
public static final String DEFAULT_ALIAS_NAME = "t"; | ||
|
||
public static final QTaskMapping INSTANCE = new QTaskMapping(); | ||
|
||
private QTaskMapping() { | ||
super(QTask.TABLE_NAME, DEFAULT_ALIAS_NAME, | ||
TaskType.class, QTask.class); | ||
} | ||
|
||
@Override | ||
protected QTask newAliasInstance(String alias) { | ||
return new QTask(alias); | ||
} | ||
|
||
@Override | ||
public ObjectSqlTransformer<TaskType, QTask, MTask> | ||
createTransformer(SqlTransformerContext transformerContext, SqlRepoContext sqlRepoContext) { | ||
// no special class needed, no additional columns | ||
return new ObjectSqlTransformer<>(transformerContext, this); | ||
} | ||
|
||
@Override | ||
public MTask newRowObject() { | ||
return new MTask(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.