Package es.situm.sdk.model
Class Resource
- java.lang.Object
-
- es.situm.sdk.model.Resource
-
- All Implemented Interfaces:
Filterable
- Direct Known Subclasses:
Building
,Floor
,Geofence
,OrganizationTheme
,Poi
,PoiCategory
,RemoteCalibration
public abstract class Resource extends java.lang.Object implements Filterable
Abstract base class with common properties across Resources
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EMPTY_IDENTIFIER
static int
EMPTY_IDENTIFIER_BACKWARDS
-
Constructor Summary
Constructors Constructor Description Resource(es.situm.sdk.model.Resource.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Date
getCreatedAt()
Deprecated.This method has been deprecated, do not use it as it may not return the expected information.java.util.Map<java.lang.String,java.lang.String>
getCustomFields()
Returns map of custom fields, indexed by their name.java.lang.String
getIdentifier()
Returns the unique identifier of the resourcejava.util.Date
getUpdatedAt()
Deprecated.This method has been deprecated, do not use it as it may not return the expected information.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
EMPTY_IDENTIFIER
public static final java.lang.String EMPTY_IDENTIFIER
- See Also:
- Constant Field Values
-
EMPTY_IDENTIFIER_BACKWARDS
public static final int EMPTY_IDENTIFIER_BACKWARDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIdentifier
@NonNull public final java.lang.String getIdentifier()
Returns the unique identifier of the resource- Returns:
String
-
getUpdatedAt
@NonNull @Deprecated public final java.util.Date getUpdatedAt()
Deprecated.This method has been deprecated, do not use it as it may not return the expected information.Returns a date containing the time when a resource was last updated.- Returns:
- Date copy. If there is no value, returns new Date(0).
-
getCreatedAt
@NonNull @Deprecated public final java.util.Date getCreatedAt()
Deprecated.This method has been deprecated, do not use it as it may not return the expected information.Returns a date containing the time when a resource was first created.- Returns:
- Date copy. If there is no value, returns new Date(0).
-
getCustomFields
@NonNull public final java.util.Map<java.lang.String,java.lang.String> getCustomFields()
Returns map of custom fields, indexed by their name.- Specified by:
getCustomFields
in interfaceFilterable
- Returns:
- Unmodifiable
Map
<String
,String
>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-