You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by sm...@apache.org on 2023/03/29 16:54:43 UTC
[directory-fortress-enmasse] branch master updated: cleanup
This is an automated email from the ASF dual-hosted git repository.
smckinney pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-fortress-enmasse.git
The following commit(s) were added to refs/heads/master by this push:
new c101142 cleanup
c101142 is described below
commit c101142baf49b4ad72e934278eca24323ee2da83
Author: Shawn McKinney <sm...@symas.com>
AuthorDate: Wed Mar 29 11:54:37 2023 -0500
cleanup
---
.../fortress/rest/JacksonFieldOnlyMapper.sav | 45 ----------------------
1 file changed, 45 deletions(-)
diff --git a/src/main/java/org/apache/directory/fortress/rest/JacksonFieldOnlyMapper.sav b/src/main/java/org/apache/directory/fortress/rest/JacksonFieldOnlyMapper.sav
deleted file mode 100644
index 41cc7d0..0000000
--- a/src/main/java/org/apache/directory/fortress/rest/JacksonFieldOnlyMapper.sav
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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 org.apache.directory.fortress.rest;
-
-import org.apache.directory.fortress.core.model.FortEntity;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
-import com.fasterxml.jackson.annotation.PropertyAccessor;
-import com.fasterxml.jackson.databind.ObjectMapper;
-
-/**
- * This class is used to marshall/unmarshall subtypes of {@link FortEntity} using only the fields.
- * This mapper ignores all the getter and setters.
- *
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- */
-public class JacksonFieldOnlyMapper extends ObjectMapper
-{
- public JacksonFieldOnlyMapper()
- {
- super();
- // allow access to fields
- setVisibility(PropertyAccessor.FIELD, Visibility.ANY);
- setVisibility(PropertyAccessor.GETTER, Visibility.NONE); // and do not use getters and setters
- setVisibility(PropertyAccessor.IS_GETTER, Visibility.NONE);
- setVisibility(PropertyAccessor.SETTER, Visibility.NONE);
- }
-}