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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEndpoint
(Endpoint endpoint) void
addMachineTag
(MachineTag machineTag) boolean
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) UUID
getKey()
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date
@NotNull UUID
Get the installation password.getTags()
getTitle()
@NotNull InstallationType
getType()
int
hashCode()
boolean
boolean
lenientEquals
(Installation other) Does not include the nested properties, or server controlled values (key, createdBy etc) or the password, for security reasons.void
setComments
(List<Comment> comments) void
setContacts
(List<Contact> contacts) void
setCreated
(Date created) void
setCreatedBy
(String createdBy) void
setDeleted
(Date deleted) void
setDescription
(String description) void
setDisabled
(boolean disabled) void
setEndpoints
(List<Endpoint> endpoints) void
setIdentifiers
(List<Identifier> identifiers) void
void
setMachineTags
(List<MachineTag> machineTags) void
setModified
(Date modified) void
setModifiedBy
(String modifiedBy) void
setOrganizationKey
(UUID organizationKey) void
setPassword
(String password) void
void
void
setType
(InstallationType type) toString()
-
Constructor Details
-
Installation
public Installation()
-
-
Method Details
-
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
- Specified by:
setKey
in interfaceNetworkEntity
-
getTitle
- Specified by:
getTitle
in interfaceNetworkEntity
-
isDisabled
-
setDisabled
-
setTitle
- Specified by:
setTitle
in interfaceNetworkEntity
-
getDescription
- Specified by:
getDescription
in interfaceNetworkEntity
-
setDescription
- 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
- 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
- Specified by:
setModified
in interfaceNetworkEntity
-
getDeleted
- Specified by:
getDeleted
in interfaceNetworkEntity
-
setDeleted
- Specified by:
setDeleted
in interfaceNetworkEntity
-
getOrganizationKey
-
setOrganizationKey
-
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
-
getType
-
setType
-
getCreatedBy
- Specified by:
getCreatedBy
in interfaceNetworkEntity
-
setCreatedBy
- Specified by:
setCreatedBy
in interfaceNetworkEntity
-
getModifiedBy
- Specified by:
getModifiedBy
in interfaceNetworkEntity
-
setModifiedBy
- Specified by:
setModifiedBy
in interfaceNetworkEntity
-
getContacts
- Specified by:
getContacts
in interfaceContactable
-
setContacts
- Specified by:
setContacts
in interfaceContactable
-
getEndpoints
- Specified by:
getEndpoints
in interfaceEndpointable
-
setEndpoints
- Specified by:
setEndpoints
in interfaceEndpointable
-
addEndpoint
- Specified by:
addEndpoint
in interfaceEndpointable
-
getMachineTags
- Specified by:
getMachineTags
in interfaceMachineTaggable
-
setMachineTags
- Specified by:
setMachineTags
in interfaceMachineTaggable
-
addMachineTag
- Specified by:
addMachineTag
in interfaceMachineTaggable
-
getTags
-
setTags
-
getIdentifiers
- Specified by:
getIdentifiers
in interfaceIdentifiable
-
setIdentifiers
- Specified by:
setIdentifiers
in interfaceIdentifiable
-
getComments
- Specified by:
getComments
in interfaceCommentable
-
setComments
- Specified by:
setComments
in interfaceCommentable
-
equals
-
hashCode
-
toString
-
lenientEquals
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...
-