Skip to content

Commit

Permalink
MetadataFactory.fromJaxb: rename + removed unused prismContext parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed Jun 10, 2020
1 parent babd046 commit 5b20070
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Expand Up @@ -666,7 +666,7 @@ static void copyObjectInformationFromJAXB(ObjectType jaxb, RObject repo,
repo.getTrigger().add(rTrigger);
}

MetadataFactory.fromJAXB(jaxb.getMetadata(), repo, repositoryContext.prismContext, repositoryContext.relationRegistry);
MetadataFactory.fromJaxb(jaxb.getMetadata(), repo, repositoryContext.relationRegistry);
repo.setTenantRef(RUtil.jaxbRefToEmbeddedRepoRef(jaxb.getTenantRef(), repositoryContext.relationRegistry));

if (jaxb.getExtension() != null) {
Expand Down
Expand Up @@ -475,7 +475,7 @@ private static void fromJaxb(AssignmentType jaxb, RAssignment repo, RepositoryCo
repo.setResourceRef(RUtil.jaxbRefToEmbeddedRepoRef(jaxb.getConstruction().getResourceRef(), repositoryContext.relationRegistry));
}

MetadataFactory.fromJAXB(jaxb.getMetadata(), repo, repositoryContext.prismContext, repositoryContext.relationRegistry);
MetadataFactory.fromJaxb(jaxb.getMetadata(), repo, repositoryContext.relationRegistry);
}

@Override
Expand Down
Expand Up @@ -75,8 +75,8 @@ private static boolean isNull(Metadata repo) {
&& repo.getModifierRef() == null;
}

public static void fromJAXB(MetadataType jaxb, Metadata repo, PrismContext prismContext,
RelationRegistry relationRegistry)
public static void fromJaxb(
MetadataType jaxb, Metadata repo, RelationRegistry relationRegistry)
throws DtoTranslationException {
if (jaxb == null) {
repo.setCreateChannel(null);
Expand Down
Expand Up @@ -23,7 +23,7 @@ public class MetadataMapper implements Mapper<MetadataType, Metadata> {
public Metadata map(MetadataType input, MapperContext context) {
Metadata metadata = (Metadata) context.getOwner();
try {
MetadataFactory.fromJAXB(input, metadata, context.getPrismContext(), context.getRelationRegistry());
MetadataFactory.fromJaxb(input, metadata, context.getRelationRegistry());
} catch (DtoTranslationException ex) {
throw new SystemException("Couldn't translate metadata to entity");
}
Expand Down

0 comments on commit 5b20070

Please sign in to comment.