Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide prism from modules, part 5: compilable again
Now schema and common see prism-impl; but ResourceXXX and RefinedXXX impl classes are not visible outside of these modules, so there are no external dependencies on prism-impl. Tests are to be executed.
- Loading branch information
Showing
41 changed files
with
503 additions
and
148 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
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
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
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
60 changes: 60 additions & 0 deletions
60
.../java/com/evolveum/midpoint/schema/processor/MutableObjectClassComplexTypeDefinition.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,60 @@ | ||
/* | ||
* Copyright (c) 2010-2018 Evolveum | ||
* | ||
* 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 com.evolveum.midpoint.schema.processor; | ||
|
||
import com.evolveum.midpoint.prism.ItemDefinition; | ||
import com.evolveum.midpoint.prism.MutableComplexTypeDefinition; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType; | ||
|
||
import javax.xml.namespace.QName; | ||
|
||
/** | ||
* | ||
*/ | ||
public interface MutableObjectClassComplexTypeDefinition extends ObjectClassComplexTypeDefinition, MutableComplexTypeDefinition { | ||
void add(ItemDefinition<?> definition); | ||
|
||
void addPrimaryIdentifier(ResourceAttributeDefinition<?> identifier); | ||
|
||
void addSecondaryIdentifier(ResourceAttributeDefinition<?> identifier); | ||
|
||
void setDescriptionAttribute(ResourceAttributeDefinition<?> descriptionAttribute); | ||
|
||
void setNamingAttribute(ResourceAttributeDefinition<?> namingAttribute); | ||
|
||
void setNamingAttribute(QName namingAttribute); | ||
|
||
void setNativeObjectClass(String nativeObjectClass); | ||
|
||
void setAuxiliary(boolean auxiliary); | ||
|
||
void setKind(ShadowKindType kind); | ||
|
||
void setDefaultInAKind(boolean defaultAccountType); | ||
|
||
void setIntent(String intent); | ||
|
||
void setDisplayNameAttribute(ResourceAttributeDefinition<?> displayName); | ||
|
||
void setDisplayNameAttribute(QName displayName); | ||
|
||
<X> ResourceAttributeDefinitionImpl<X> createAttributeDefinition(QName name, QName typeName); | ||
|
||
<X> ResourceAttributeDefinitionImpl<X> createAttributeDefinition(String localName, QName typeName); | ||
|
||
<X> ResourceAttributeDefinition<X> createAttributeDefinition(String localName, String localTypeName); | ||
} |
31 changes: 31 additions & 0 deletions
31
.../main/java/com/evolveum/midpoint/schema/processor/MutableResourceAttributeDefinition.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,31 @@ | ||
/* | ||
* Copyright (c) 2010-2018 Evolveum | ||
* | ||
* 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 com.evolveum.midpoint.schema.processor; | ||
|
||
import com.evolveum.midpoint.prism.MutablePrismPropertyDefinition; | ||
|
||
/** | ||
* | ||
*/ | ||
public interface MutableResourceAttributeDefinition<T> extends ResourceAttributeDefinition<T>, MutablePrismPropertyDefinition<T> { | ||
|
||
void setReturnedByDefault(Boolean returnedByDefault); | ||
|
||
void setNativeAttributeName(String nativeAttributeName); | ||
|
||
void setFrameworkAttributeName(String frameworkAttributeName); | ||
} |
36 changes: 36 additions & 0 deletions
36
infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/MutableResourceSchema.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,36 @@ | ||
/* | ||
* Copyright (c) 2010-2018 Evolveum | ||
* | ||
* 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 com.evolveum.midpoint.schema.processor; | ||
|
||
import com.evolveum.midpoint.prism.PrismContext; | ||
import com.evolveum.midpoint.prism.schema.MutablePrismSchema; | ||
import com.evolveum.midpoint.util.exception.SchemaException; | ||
import org.w3c.dom.Element; | ||
|
||
import javax.xml.namespace.QName; | ||
|
||
/** | ||
* | ||
*/ | ||
public interface MutableResourceSchema extends ResourceSchema, MutablePrismSchema { | ||
|
||
MutableObjectClassComplexTypeDefinition createObjectClassDefinition(String localTypeName); | ||
|
||
MutableObjectClassComplexTypeDefinition createObjectClassDefinition(QName typeName); | ||
|
||
void parseThis(Element xsdSchema, String shortDesc, PrismContext prismContext) throws SchemaException; | ||
} |
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.