Skip to content

Commit

Permalink
EPMRPP-97288 remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
grabsefx committed Jan 8, 2025
1 parent 556d5b0 commit 739f661
Show file tree
Hide file tree
Showing 193 changed files with 806 additions and 1,400 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

import static java.util.Optional.ofNullable;

import com.epam.reportportal.auth.dao.UserRepository;
import com.epam.reportportal.auth.entity.user.User;
import com.epam.reportportal.auth.exception.EnvironmentVariablesNotProvidedException;
import com.epam.ta.reportportal.dao.UserRepository;
import com.epam.ta.reportportal.entity.user.User;
import java.util.Optional;
import javax.persistence.EntityNotFoundException;
import org.apache.commons.lang3.StringUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
import static com.google.common.reflect.Reflection.newProxy;
import static java.util.Optional.ofNullable;

import com.epam.reportportal.auth.entity.oauth.OAuthRegistration;
import com.epam.reportportal.auth.integration.converter.OAuthRegistrationConverters;
import com.epam.reportportal.auth.model.settings.OAuthRegistrationResource;
import com.epam.reportportal.auth.store.MutableClientRegistrationRepository;
import com.epam.reportportal.model.settings.OAuthRegistrationResource;
import com.epam.ta.reportportal.entity.oauth.OAuthRegistration;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,16 @@
import org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.data.elasticsearch.ReactiveElasticsearchRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/**
* Application entry point.
*
* @author <a href="mailto:[email protected]">Andrei Varabyeu</a>
*/
//@Import({ DatabaseConfiguration.class, DatastoreConfiguration.class })
@SpringBootApplication(exclude = {LdapHealthContributorAutoConfiguration.class,
FlywayAutoConfiguration.class,
ElasticsearchDataAutoConfiguration.class, ElasticsearchRepositoriesAutoConfiguration.class,
ReactiveElasticsearchRepositoriesAutoConfiguration.class})
@ComponentScan(basePackages = {"com.epam.ta.reportportal", "com.epam.reportportal.auth"})
public class AuthServerApplication {

public static void main(String[] args) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.epam.reportportal.auth;

import com.epam.reportportal.auth.dao.IntegrationRepository;
import com.epam.reportportal.auth.event.UiUserSignedInEvent;
import com.epam.ta.reportportal.dao.IntegrationRepository;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.core.Authentication;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

package com.epam.reportportal.auth;

import static com.epam.ta.reportportal.commons.EntityUtils.normalizeId;
import static com.epam.reportportal.auth.commons.EntityUtils.normalizeId;
import static java.util.Optional.ofNullable;

import com.epam.reportportal.rules.exception.ReportPortalException;
import com.epam.reportportal.rules.exception.ErrorType;
import com.epam.reportportal.auth.rules.exception.ErrorType;
import com.epam.reportportal.auth.rules.exception.ReportPortalException;
import java.util.Collections;
import javax.inject.Provider;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

import com.epam.reportportal.auth.event.UiAuthenticationFailureEventHandler;
import com.epam.reportportal.auth.event.UiUserSignedInEvent;
import com.epam.reportportal.rules.exception.ReportPortalException;
import com.epam.reportportal.rules.exception.ErrorType;
import com.epam.reportportal.auth.rules.exception.ErrorType;
import com.epam.reportportal.auth.rules.exception.ReportPortalException;
import javax.inject.Provider;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

package com.epam.reportportal.auth.basic;

import static com.epam.ta.reportportal.commons.EntityUtils.normalizeId;
import static com.epam.reportportal.auth.commons.EntityUtils.normalizeId;

import com.epam.reportportal.auth.commons.ReportPortalUser;
import com.epam.reportportal.auth.dao.UserRepository;
import com.epam.reportportal.auth.entity.user.User;
import com.epam.reportportal.auth.util.AuthUtils;
import com.epam.ta.reportportal.commons.ReportPortalUser;
import com.epam.ta.reportportal.dao.UserRepository;
import com.epam.ta.reportportal.entity.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.binary;
package com.epam.reportportal.auth.binary;

import java.io.InputStream;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.binary;
package com.epam.reportportal.auth.binary;

import com.epam.ta.reportportal.entity.attachment.BinaryData;
import com.epam.ta.reportportal.entity.user.User;
import com.epam.reportportal.auth.entity.attachment.BinaryData;
import com.epam.reportportal.auth.entity.user.User;
import java.io.InputStream;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.binary.impl;
package com.epam.reportportal.auth.binary.impl;

import com.epam.reportportal.commons.Thumbnailator;
import com.epam.ta.reportportal.filesystem.DataEncoder;
import com.epam.ta.reportportal.filesystem.DataStore;
import com.epam.reportportal.auth.commons.Thumbnailator;
import com.epam.reportportal.auth.filesystem.DataEncoder;
import com.epam.reportportal.auth.filesystem.DataStore;
import java.io.IOException;
import java.io.InputStream;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.binary.impl;
package com.epam.reportportal.auth.binary.impl;

import static java.util.Optional.ofNullable;

import com.epam.ta.reportportal.binary.DataStoreService;
import com.epam.ta.reportportal.filesystem.DataEncoder;
import com.epam.ta.reportportal.filesystem.DataStore;
import com.epam.reportportal.auth.binary.DataStoreService;
import com.epam.reportportal.auth.filesystem.DataEncoder;
import com.epam.reportportal.auth.filesystem.DataStore;
import java.io.InputStream;
import java.util.List;
import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.binary.impl;
package com.epam.reportportal.auth.binary.impl;

import com.google.common.base.Strings;
import java.nio.file.Path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.binary.impl;
package com.epam.reportportal.auth.binary.impl;

import static com.epam.ta.reportportal.binary.impl.DataStoreUtils.ATTACHMENT_CONTENT_TYPE;
import static com.epam.ta.reportportal.binary.impl.DataStoreUtils.PHOTOS_PATH;
import static com.epam.ta.reportportal.binary.impl.DataStoreUtils.ROOT_USER_PHOTO_DIR;
import static com.epam.ta.reportportal.binary.impl.DataStoreUtils.USER_DATA_PATH;
import static com.epam.ta.reportportal.binary.impl.DataStoreUtils.buildThumbnailFileName;
import static com.epam.reportportal.auth.binary.impl.DataStoreUtils.ATTACHMENT_CONTENT_TYPE;
import static com.epam.reportportal.auth.binary.impl.DataStoreUtils.PHOTOS_PATH;
import static com.epam.reportportal.auth.binary.impl.DataStoreUtils.ROOT_USER_PHOTO_DIR;
import static com.epam.reportportal.auth.binary.impl.DataStoreUtils.USER_DATA_PATH;
import static com.epam.reportportal.auth.binary.impl.DataStoreUtils.buildThumbnailFileName;
import static java.util.Optional.ofNullable;

import com.epam.ta.reportportal.binary.DataStoreService;
import com.epam.ta.reportportal.binary.UserBinaryDataService;
import com.epam.ta.reportportal.entity.Metadata;
import com.epam.ta.reportportal.entity.attachment.BinaryData;
import com.epam.ta.reportportal.entity.enums.FeatureFlag;
import com.epam.ta.reportportal.entity.user.User;
import com.epam.ta.reportportal.util.FeatureFlagHandler;
import com.epam.reportportal.auth.binary.DataStoreService;
import com.epam.reportportal.auth.binary.UserBinaryDataService;
import com.epam.reportportal.auth.entity.Metadata;
import com.epam.reportportal.auth.entity.attachment.BinaryData;
import com.epam.reportportal.auth.entity.enums.FeatureFlag;
import com.epam.reportportal.auth.entity.user.User;
import com.epam.reportportal.auth.util.FeatureFlagHandler;
import com.google.common.collect.Maps;
import java.io.ByteArrayInputStream;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.binary.impl;
package com.epam.reportportal.auth.binary.impl;

import com.epam.reportportal.commons.Thumbnailator;
import com.epam.ta.reportportal.filesystem.DataEncoder;
import com.epam.ta.reportportal.filesystem.DataStore;
import com.epam.reportportal.auth.commons.Thumbnailator;
import com.epam.reportportal.auth.filesystem.DataEncoder;
import com.epam.reportportal.auth.filesystem.DataStore;
import java.io.IOException;
import java.io.InputStream;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.builder;

import com.epam.ta.reportportal.entity.activity.Activity;
import com.epam.ta.reportportal.entity.activity.ActivityDetails;
import com.epam.ta.reportportal.entity.activity.EventAction;
import com.epam.ta.reportportal.entity.activity.EventObject;
import com.epam.ta.reportportal.entity.activity.EventPriority;
import com.epam.ta.reportportal.entity.activity.EventSubject;
import com.epam.ta.reportportal.entity.activity.HistoryField;
package com.epam.reportportal.auth.builder;

import com.epam.reportportal.auth.entity.activity.Activity;
import com.epam.reportportal.auth.entity.activity.ActivityDetails;
import com.epam.reportportal.auth.entity.activity.EventAction;
import com.epam.reportportal.auth.entity.activity.EventObject;
import com.epam.reportportal.auth.entity.activity.EventPriority;
import com.epam.reportportal.auth.entity.activity.EventSubject;
import com.epam.reportportal.auth.entity.activity.HistoryField;
import java.time.Instant;
import java.util.Optional;
import java.util.function.Supplier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* along with Report Portal. If not, see <http://www.gnu.org/licenses/>.
*/

package com.epam.reportportal.commons;
package com.epam.reportportal.auth.commons;

import java.io.InputStream;
import java.nio.file.Path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.commons;
package com.epam.reportportal.auth.commons;

import static com.google.common.base.Strings.isNullOrEmpty;
import static java.util.Optional.ofNullable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.commons;
package com.epam.reportportal.auth.commons;

import java.sql.Types;
import org.hibernate.dialect.PostgreSQL95Dialect;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.commons;
package com.epam.reportportal.auth.commons;

import com.epam.reportportal.rules.exception.ReportPortalException;
import com.epam.reportportal.auth.rules.exception.ReportPortalException;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.epam.ta.reportportal.commons;
package com.epam.reportportal.auth.commons;

import java.util.Collection;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.commons;
package com.epam.reportportal.auth.commons;

import static java.util.Optional.ofNullable;

import com.epam.reportportal.rules.exception.ErrorType;
import com.epam.reportportal.rules.exception.ReportPortalException;
import com.epam.ta.reportportal.entity.project.ProjectRole;
import com.epam.ta.reportportal.entity.user.UserRole;
import com.epam.reportportal.auth.entity.project.ProjectRole;
import com.epam.reportportal.auth.entity.user.UserRole;
import com.epam.reportportal.auth.rules.exception.ErrorType;
import com.epam.reportportal.auth.rules.exception.ReportPortalException;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Collection;
Expand Down Expand Up @@ -235,7 +235,7 @@ public ReportPortalUserBuilder withProjectDetails(Map<String, ProjectDetails> pr
return this;
}

public ReportPortalUser fromUser(com.epam.ta.reportportal.entity.user.User user) {
public ReportPortalUser fromUser(com.epam.reportportal.auth.entity.user.User user) {
this.active = user.getActive();
this.username = user.getLogin();
this.email = user.getPassword();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* along with Report Portal. If not, see <http://www.gnu.org/licenses/>.
*/

package com.epam.reportportal.commons;
package com.epam.reportportal.auth.commons;

import java.io.IOException;
import java.io.InputStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* along with Report Portal. If not, see <http://www.gnu.org/licenses/>.
*/

package com.epam.reportportal.commons;
package com.epam.reportportal.auth.commons;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
Expand Down Expand Up @@ -70,4 +70,4 @@ public byte[] createThumbnail(byte[] data) throws IOException {
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
* along with Report Portal. If not, see <http://www.gnu.org/licenses/>.
*/

package com.epam.ta.reportportal.commons;
package com.epam.reportportal.auth.commons;

import com.epam.reportportal.commons.ContentTypeResolver;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.commons.accessible;
package com.epam.reportportal.auth.commons.accessible;

import java.lang.reflect.Field;
import java.lang.reflect.Method;
Expand Down Expand Up @@ -44,4 +44,4 @@ public AccessibleMethod method(Method m) {
public AccessibleField field(Field f) {
return new AccessibleField(object, f);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.commons.accessible;
package com.epam.reportportal.auth.commons.accessible;

import java.lang.reflect.Field;

Expand Down Expand Up @@ -62,4 +62,4 @@ public void setValue(Object value) {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.epam.ta.reportportal.commons.accessible;
package com.epam.reportportal.auth.commons.accessible;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
Expand Down
Loading

0 comments on commit 739f661

Please sign in to comment.