RolePrototype doesn't have to be serializable; removed Named interface

This commit is contained in:
Axel Uhl committed 2025-11-09 16:39:27 +01:00
1 parent a170001998
commit 0063eef05f
10 files changed
+3 -18

No files matched your search

@@ -13,7 +13,6 @@ import com.sap.sse.security.shared.impl.SecuredSecurityTypes;
*/
public class PremiumRole extends RolePrototype {
private static final UUID ROLE_ID = UUID.fromString("7021e7a2-569a-11ec-bf63-0242ac130002");
private static final long serialVersionUID = 8032532973066767581L;
private static final PremiumRole INSTANCE = new PremiumRole();
PremiumRole() {
@@ -30,7 +30,6 @@ public class UDPMirror {
}
int listeningOnPort = Integer.valueOf(args[c++]);
byte[] buf = new byte[65536];
@SuppressWarnings("resource") // Can't close resource due to the infinite loop. Will be closed, when the thread is terminated.
DatagramSocket udpSocket = new DatagramSocket(listeningOnPort);
DatagramPacket received = new DatagramPacket(buf, buf.length);
DatagramSocket[] sendingSockets = new DatagramSocket[(args.length - 1) / 2];
@@ -13,7 +13,6 @@ import com.sap.sse.security.shared.impl.SecuredSecurityTypes.ServerActions;
* server infrastructure configuration.
*/
public class EventManagerRole extends RolePrototype {
private static final long serialVersionUID = 6775068846340911064L;
private static final EventManagerRole INSTANCE = new EventManagerRole();
EventManagerRole() {
@@ -11,8 +11,6 @@ import com.sap.sse.security.shared.impl.SecuredSecurityTypes;
* page and basic analytical frontends.
*/
public class SailingViewerRole extends RolePrototype {
private static final long serialVersionUID = 3291793984984443193L;
private static final SailingViewerRole INSTANCE = new SailingViewerRole();
SailingViewerRole() {
@@ -1,7 +1,6 @@
package com.sap.sse.security.shared;
public class AdminRole extends RolePrototype {
private static final long serialVersionUID = 3291793984984443193L;
private static final AdminRole INSTANCE = new AdminRole();
private static final String UUID_STRING = "dc77e3d1-d405-435e-8699-ce7245f6fd7a";
@@ -4,13 +4,10 @@ import java.util.HashSet;
import java.util.Set;
import java.util.UUID;
import com.sap.sse.common.NamedWithID;
import com.sap.sse.common.Util;
import com.sap.sse.common.WithID;
public abstract class RolePrototype implements NamedWithID {
private static final long serialVersionUID = -3911998376131317304L;
public abstract class RolePrototype implements WithID {
/*
* Might be used in Stringmessages to identify SubscriptionplanRoles. Do check and validate before changing.
*/
@@ -40,7 +37,7 @@ public abstract class RolePrototype implements NamedWithID {
}
}
@Override
// @Override
public String getName() {
return name;
}
@@ -14,8 +14,6 @@ import com.sap.sse.security.shared.impl.SecuredSecurityTypes;
*
*/
public class ServerAdminRole extends RolePrototype {
private static final long serialVersionUID = -4196925850206436676L;
private static final ServerAdminRole INSTANCE = new ServerAdminRole();
ServerAdminRole() {
@@ -4,8 +4,6 @@ import com.sap.sse.security.shared.HasPermissions.DefaultActions;
import com.sap.sse.security.shared.impl.SecuredSecurityTypes;
public class UserRole extends RolePrototype {
private static final long serialVersionUID = 3291793984984443193L;
private static final UserRole INSTANCE = new UserRole();
UserRole() {
@@ -10,7 +10,6 @@ import com.sap.sse.security.shared.impl.SecuredSecurityTypes;
* Specifies a role that when associated to a user gives access to the date mining functionality on all servers.
*/
public class AllDataMiningRole extends RolePrototype {
private static final long serialVersionUID = 6671501683896115261L;
private static final UUID ROLE_ID = UUID.fromString("de4205b5-ccf9-49b2-91e1-9a41b4db166b");
private static final AllDataMiningRole INSTANCE = new AllDataMiningRole();
@@ -10,7 +10,6 @@ import com.sap.sse.security.shared.impl.SecuredSecurityTypes;
* Specifies a role that when associated to a user gives access to the date mining functionality on archive server.
*/
public class ArchiveDataMiningRole extends RolePrototype {
private static final long serialVersionUID = 6671501683896115261L;
private static final UUID ROLE_ID = UUID.fromString("f2993a7a-c08d-11ec-9d64-0242ac120002");
private static final ArchiveDataMiningRole INSTANCE = new ArchiveDataMiningRole();