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

nl.vpro.domain.user.OrganizationEditor 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 java.io.Serializable;

import org.checkerframework.checker.nullness.qual.NonNull;

import nl.vpro.domain.Identifiable;


public interface  OrganizationEditor extends Comparable>, Identifiable>, Serializable {

    T getOrganization();

    Editor getEditor();

    boolean isActive();

    void setActive(boolean active);

    @Override
    OrganizationEditorIdentifier getId();

    @Override
    default int compareTo(@NonNull OrganizationEditor organizationEditor) {
        T org = getOrganization();
        return org == null ?
            (organizationEditor.getOrganization() == null ? 0 : -1):
            org.compareTo(organizationEditor.getOrganization());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy