Package org.gbif.api.model.registry
Class Installation
- java.lang.Object
-
- org.gbif.api.model.registry.Installation
-
- All Implemented Interfaces:
Serializable,Commentable,Contactable,Endpointable,Identifiable,LenientEquals<Installation>,MachineTaggable,NetworkEntity,Taggable
public class Installation extends Object implements NetworkEntity, Contactable, Endpointable, MachineTaggable, Taggable, Commentable, Identifiable, LenientEquals<Installation>
A technical installation which can serve datasets. Note: An Installation may be marked as disabled, meaning that some process has identified it is out of action. For the GBIF crawling infrastructure, this means it will not be "metasynced" nor will any dataset associated be eligible for crawling.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Installation()
-
Method Summary
-
-
-
Constructor Detail
-
Installation
public Installation()
-
-
Method Detail
-
getKey
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) UUID getKey()
- Specified by:
getKeyin interfaceNetworkEntity
-
setKey
public void setKey(UUID key)
- Specified by:
setKeyin interfaceNetworkEntity
-
getTitle
public String getTitle()
- Specified by:
getTitlein interfaceNetworkEntity
-
isDisabled
public boolean isDisabled()
-
setDisabled
public void setDisabled(boolean disabled)
-
setTitle
public void setTitle(String title)
- Specified by:
setTitlein interfaceNetworkEntity
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceNetworkEntity
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceNetworkEntity
-
getCreated
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getCreated()
- Specified by:
getCreatedin interfaceNetworkEntity
-
setCreated
public void setCreated(Date created)
- Specified by:
setCreatedin interfaceNetworkEntity
-
getModified
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getModified()
- Specified by:
getModifiedin interfaceNetworkEntity
-
setModified
public void setModified(Date modified)
- Specified by:
setModifiedin interfaceNetworkEntity
-
getDeleted
public Date getDeleted()
- Specified by:
getDeletedin interfaceNetworkEntity
-
setDeleted
public void setDeleted(Date deleted)
- Specified by:
setDeletedin interfaceNetworkEntity
-
getOrganizationKey
@NotNull public @NotNull UUID getOrganizationKey()
-
setOrganizationKey
public void setOrganizationKey(UUID organizationKey)
-
getPassword
@Nullable public String getPassword()
Get the installation password. This method is to be ignored on serialization, so that the password is not revealed in the web service response.- Returns:
- organization password
-
setPassword
public void setPassword(String password)
-
getType
@NotNull public @NotNull InstallationType getType()
-
setType
public void setType(InstallationType type)
-
getCreatedBy
public String getCreatedBy()
- Specified by:
getCreatedByin interfaceNetworkEntity
-
setCreatedBy
public void setCreatedBy(String createdBy)
- Specified by:
setCreatedByin interfaceNetworkEntity
-
getModifiedBy
public String getModifiedBy()
- Specified by:
getModifiedByin interfaceNetworkEntity
-
setModifiedBy
public void setModifiedBy(String modifiedBy)
- Specified by:
setModifiedByin interfaceNetworkEntity
-
getContacts
public List<Contact> getContacts()
- Specified by:
getContactsin interfaceContactable
-
setContacts
public void setContacts(List<Contact> contacts)
- Specified by:
setContactsin interfaceContactable
-
getEndpoints
public List<Endpoint> getEndpoints()
- Specified by:
getEndpointsin interfaceEndpointable
-
setEndpoints
public void setEndpoints(List<Endpoint> endpoints)
- Specified by:
setEndpointsin interfaceEndpointable
-
addEndpoint
public void addEndpoint(Endpoint endpoint)
- Specified by:
addEndpointin interfaceEndpointable
-
getMachineTags
public List<MachineTag> getMachineTags()
- Specified by:
getMachineTagsin interfaceMachineTaggable
-
setMachineTags
public void setMachineTags(List<MachineTag> machineTags)
- Specified by:
setMachineTagsin interfaceMachineTaggable
-
addMachineTag
public void addMachineTag(MachineTag machineTag)
- Specified by:
addMachineTagin interfaceMachineTaggable
-
getIdentifiers
public List<Identifier> getIdentifiers()
- Specified by:
getIdentifiersin interfaceIdentifiable
-
setIdentifiers
public void setIdentifiers(List<Identifier> identifiers)
- Specified by:
setIdentifiersin interfaceIdentifiable
-
getComments
public List<Comment> getComments()
- Specified by:
getCommentsin interfaceCommentable
-
setComments
public void setComments(List<Comment> comments)
- Specified by:
setCommentsin interfaceCommentable
-
lenientEquals
public boolean lenientEquals(Installation other)
Does not include the nested properties, or server controlled values (key, createdBy etc) or the password, for security reasons.- Specified by:
lenientEqualsin interfaceLenientEquals<Installation>- Parameters:
other- To compare against- Returns:
- true if...
-
-