All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.vpro.domain.user.PortalEditorIdentifier Maven / Gradle / Ivy

Go to download

Domain classes and interfaces related to accountability, users and organizations.

There is a newer version: 8.3.1
Show newest version
/*
 * 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 PortalEditorIdentifier implements OrganizationEditorIdentifier {

    @Serial
    private static final long serialVersionUID = -5316375953607168725L;
    @Column(name = "editor_principalid")
    @Getter
    private String editorPrincipalId;

    @Column(name = "organization_id")
    @Getter
    private String organizationId;

    public PortalEditorIdentifier() {
    }

    public PortalEditorIdentifier(String editor, String portal) {
        this.editorPrincipalId = editor;
        this.organizationId = portal;
    }

    @Override
    public String toString() {
        return editorPrincipalId + ":" + organizationId;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy