nl.vpro.domain.user.ThirdPartyEditorIdentifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of user-domain Show documentation
Show all versions of user-domain Show documentation
Domain classes and interfaces related to accountability, users and organizations.
/*
* Copyright (C) 2012 Licensed under the Apache License, Version 2.0
* VPRO The Netherlands
*/
package nl.vpro.domain.user;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import java.io.Serial;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
@Embeddable
@EqualsAndHashCode
public class ThirdPartyEditorIdentifier implements OrganizationEditorIdentifier {
@Serial
private static final long serialVersionUID = 2106652877090820172L;
@Column(name = "editor_principalid")
@Getter
private String editorPrincipalId;
@Column(name = "organization_id")
@Getter
private String organizationId;
public ThirdPartyEditorIdentifier() {
}
public ThirdPartyEditorIdentifier(String editor, String thirdparty) {
this.editorPrincipalId = editor;
this.organizationId = thirdparty;
}
@Override
public String toString() {
return editorPrincipalId + ":" + organizationId;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy