Package org.gbif.api.model.registry
Class Endpoint
java.lang.Object
org.gbif.api.model.registry.Endpoint
- All Implemented Interfaces:
Serializable
,LenientEquals<Endpoint>
,MachineTaggable
public class Endpoint
extends Object
implements MachineTaggable, Serializable, LenientEquals<Endpoint>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMachineTag
(MachineTag machineTag) boolean
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date
@Size(min=3) String
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Min(1L) Integer
getKey()
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date
@Size(min=3) String
@NotNull EndpointType
getType()
getUrl()
int
hashCode()
boolean
lenientEquals
(Endpoint other) Does not include server controlled values, or nested properties.void
setCreated
(Date created) void
setCreatedBy
(String createdBy) void
setDescription
(String description) void
void
setMachineTags
(List<MachineTag> machineTags) void
setModified
(Date modified) void
setModifiedBy
(String modifiedBy) void
setType
(EndpointType type) void
toString()
-
Constructor Details
-
Endpoint
public Endpoint()
-
-
Method Details
-
getKey
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Min(1L) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Min(1L) Integer getKey() -
setKey
-
getType
-
setType
-
getUrl
-
setUrl
-
getDescription
-
setDescription
-
getCreatedBy
-
setCreatedBy
-
getModifiedBy
-
setModifiedBy
-
getCreated
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getCreated() -
setCreated
-
getModified
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getModified() -
setModified
-
getMachineTags
- Specified by:
getMachineTags
in interfaceMachineTaggable
-
setMachineTags
- Specified by:
setMachineTags
in interfaceMachineTaggable
-
addMachineTag
- Specified by:
addMachineTag
in interfaceMachineTaggable
-
equals
-
hashCode
-
toString
-
lenientEquals
Does not include server controlled values, or nested properties.- Specified by:
lenientEquals
in interfaceLenientEquals<Endpoint>
- Parameters:
other
- To compare against- Returns:
- true if...
-