nl.vpro.domain.user.OrganizationEditor 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 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