Skip to content

Commit

Permalink
[26740] deprecate Xid localRegisterXIDDomain methods
Browse files Browse the repository at this point in the history
  • Loading branch information
huthomas committed Nov 14, 2024
1 parent 9146563 commit 408909b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bundles/ch.elexis.core.data/src/ch/elexis/data/Xid.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import ch.elexis.core.data.activator.CoreHub;
import ch.elexis.core.data.interfaces.IPersistentObject;
import ch.elexis.core.data.interfaces.IXid;
import ch.elexis.core.services.IXidService;
import ch.elexis.core.services.holder.ConfigServiceHolder;
import ch.rgw.tools.Log;
import ch.rgw.tools.VersionInfo;
Expand Down Expand Up @@ -323,7 +324,9 @@ public static Xid findXID(final PersistentObject o, String domain) {
* @param domain the domain to register
* @param quality the quality an ID of that domain will have
* @return true on success, false if that domain could not be registered
* @deprecated use {@link IXidService} instead
*/
@Deprecated
public static boolean localRegisterXIDDomain(final String domain, String simpleName, final int quality) {
if (domains.containsKey(domain)) {
log.log("XID Domain " + domain + " bereits registriert", Log.ERRORS);
Expand Down Expand Up @@ -351,7 +354,9 @@ public static boolean localRegisterXIDDomain(final String domain, String simpleN
* @param simpleName short name for the domain
* @param quality the wuality of an ID of that domain will have
* @return true on success
* @deprecated use {@link IXidService} instead
*/
@Deprecated
public static boolean localRegisterXIDDomainIfNotExists(final String domain, String simpleName, final int quality) {
if (domains.get(domain) != null) {
return true;
Expand Down

0 comments on commit 408909b

Please sign in to comment.