| 1 | /** |
|---|
| 2 | * Copyright (C) 2007 EDIT |
|---|
| 3 | * European Distributed Institute of Taxonomy |
|---|
| 4 | * http://www.e-taxonomy.eu |
|---|
| 5 | * |
|---|
| 6 | * The contents of this file are subject to the Mozilla Public License Version 1.1 |
|---|
| 7 | * See LICENSE.TXT at the top of this package for the full license terms. |
|---|
| 8 | */ |
|---|
| 9 | |
|---|
| 10 | package eu.etaxonomy.cdm.model.common; |
|---|
| 11 | |
|---|
| 12 | import java.util.List; |
|---|
| 13 | import java.util.Set; |
|---|
| 14 | |
|---|
| 15 | import eu.etaxonomy.cdm.model.media.Rights; |
|---|
| 16 | |
|---|
| 17 | public interface IIdentifiableEntity extends ISourceable<IdentifiableSource>, IAnnotatableEntity{ |
|---|
| 18 | |
|---|
| 19 | public LSID getLsid(); |
|---|
| 20 | |
|---|
| 21 | public void setLsid(LSID lsid); |
|---|
| 22 | |
|---|
| 23 | public String generateTitle(); |
|---|
| 24 | |
|---|
| 25 | public String getTitleCache(); |
|---|
| 26 | |
|---|
| 27 | /** |
|---|
| 28 | * Sets the title cache without changing the <code>protectCache</code> flag |
|---|
| 29 | * @see #setTitleCache(String, boolean) |
|---|
| 30 | * @param titleCache |
|---|
| 31 | */ |
|---|
| 32 | public void setTitleCache(String titleCache); |
|---|
| 33 | |
|---|
| 34 | public void setTitleCache(String titleCache, boolean protectCache); |
|---|
| 35 | |
|---|
| 36 | public Set<Rights> getRights(); |
|---|
| 37 | |
|---|
| 38 | public void addRights(Rights right); |
|---|
| 39 | |
|---|
| 40 | public void removeRights(Rights right); |
|---|
| 41 | |
|---|
| 42 | public List<Credit> getCredits(); |
|---|
| 43 | |
|---|
| 44 | public Credit getCredits(Integer index); |
|---|
| 45 | |
|---|
| 46 | public void addCredit(Credit credig); |
|---|
| 47 | |
|---|
| 48 | public void addCredit(Credit credit, int index); |
|---|
| 49 | |
|---|
| 50 | public void removeCredit(Credit credit); |
|---|
| 51 | |
|---|
| 52 | public void removeCredit(int index); |
|---|
| 53 | |
|---|
| 54 | public Set<Extension> getExtensions(); |
|---|
| 55 | |
|---|
| 56 | public void addExtension(Extension extension); |
|---|
| 57 | |
|---|
| 58 | public void removeExtension(Extension extension); |
|---|
| 59 | |
|---|
| 60 | public boolean isProtectedTitleCache(); |
|---|
| 61 | |
|---|
| 62 | public void setProtectedTitleCache(boolean protectedTitleCache); |
|---|
| 63 | |
|---|
| 64 | /** |
|---|
| 65 | * Overrides {@link eu.etaxonomy.cdm.model.common.CdmBase#toString()}. |
|---|
| 66 | * This returns an String that identifies the object well without beeing necessarily unique. |
|---|
| 67 | * Specification: This method should never call other object' methods so it can be well used for debugging |
|---|
| 68 | * without problems like lazy loading, unreal states etc. |
|---|
| 69 | * Note: If overriding this method's javadoc always copy or link the above requirement. |
|---|
| 70 | * If not overwritten by a subclass method returns the class, id and uuid as a string for any CDM object. |
|---|
| 71 | * For example: Taxon#13<b5938a98-c1de-4dda-b040-d5cc5bfb3bc0> |
|---|
| 72 | * @see java.lang.Object#toString() |
|---|
| 73 | */ |
|---|
| 74 | public String toString(); |
|---|
| 75 | |
|---|
| 76 | public byte[] getData(); |
|---|
| 77 | |
|---|
| 78 | } |
|---|