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:
getKey
in interfaceNetworkEntity
-
setKey
public void setKey(UUID key)
- Specified by:
setKey
in interfaceNetworkEntity
-
getTitle
public String getTitle()
- Specified by:
getTitle
in interfaceNetworkEntity
-
isDisabled
public boolean isDisabled()
-
setDisabled
public void setDisabled(boolean disabled)
-
setTitle
public void setTitle(String title)
- Specified by:
setTitle
in interfaceNetworkEntity
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceNetworkEntity
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfaceNetworkEntity
-
getCreated
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getCreated()
- Specified by:
getCreated
in interfaceNetworkEntity
-
setCreated
public void setCreated(Date created)
- Specified by:
setCreated
in interfaceNetworkEntity
-
getModified
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getModified()
- Specified by:
getModified
in interfaceNetworkEntity
-
setModified
public void setModified(Date modified)
- Specified by:
setModified
in interfaceNetworkEntity
-
getDeleted
public Date getDeleted()
- Specified by:
getDeleted
in interfaceNetworkEntity
-
setDeleted
public void setDeleted(Date deleted)
- Specified by:
setDeleted
in 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:
getCreatedBy
in interfaceNetworkEntity
-
setCreatedBy
public void setCreatedBy(String createdBy)
- Specified by:
setCreatedBy
in interfaceNetworkEntity
-
getModifiedBy
public String getModifiedBy()
- Specified by:
getModifiedBy
in interfaceNetworkEntity
-
setModifiedBy
public void setModifiedBy(String modifiedBy)
- Specified by:
setModifiedBy
in interfaceNetworkEntity
-
getContacts
public List<Contact> getContacts()
- Specified by:
getContacts
in interfaceContactable
-
setContacts
public void setContacts(List<Contact> contacts)
- Specified by:
setContacts
in interfaceContactable
-
getEndpoints
public List<Endpoint> getEndpoints()
- Specified by:
getEndpoints
in interfaceEndpointable
-
setEndpoints
public void setEndpoints(List<Endpoint> endpoints)
- Specified by:
setEndpoints
in interfaceEndpointable
-
addEndpoint
public void addEndpoint(Endpoint endpoint)
- Specified by:
addEndpoint
in interfaceEndpointable
-
getMachineTags
public List<MachineTag> getMachineTags()
- Specified by:
getMachineTags
in interfaceMachineTaggable
-
setMachineTags
public void setMachineTags(List<MachineTag> machineTags)
- Specified by:
setMachineTags
in interfaceMachineTaggable
-
addMachineTag
public void addMachineTag(MachineTag machineTag)
- Specified by:
addMachineTag
in interfaceMachineTaggable
-
getIdentifiers
public List<Identifier> getIdentifiers()
- Specified by:
getIdentifiers
in interfaceIdentifiable
-
setIdentifiers
public void setIdentifiers(List<Identifier> identifiers)
- Specified by:
setIdentifiers
in interfaceIdentifiable
-
getComments
public List<Comment> getComments()
- Specified by:
getComments
in interfaceCommentable
-
setComments
public void setComments(List<Comment> comments)
- Specified by:
setComments
in 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:
lenientEquals
in interfaceLenientEquals<Installation>
- Parameters:
other
- To compare against- Returns:
- true if...
-
-