mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 13:15:35 +00:00
bug 4813: make sure that typerelativeidentifer is running trough
corresponding convert method on object creation
This commit is contained in:
+9
@@ -37,6 +37,15 @@ public class ExpeditionSecuredDomainTypes extends SecuredDomainType {
|
||||
return WildcardPermissionEncoder.encode(ServerInfo.getName(), expeditionDeviceConfiguration.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String convertNewIdentifer(Object... object) {
|
||||
// TODO: check again, what type can be used, for now assuming String for the
|
||||
// expeditionDeviceConfiguration.getName()
|
||||
assert object.length == 1;
|
||||
String identifier = (String) object[0];
|
||||
return WildcardPermissionEncoder.encode(ServerInfo.getName(), identifier);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user