Interface Resource

All Superinterfaces:
Entity, Serializable
All Known Subinterfaces:
Address, ArticulationRule, Asset, AssetType, Assignment, Attachment, Attribute, AttributeType, BooleanAttribute, BooleanAttributeType, Comment, Community, ComplexRelation, ComplexRelationAttributeType, ComplexRelationLeg, ComplexRelationLegType, ComplexRelationType, DataQualityMetric, DataQualityRule, DateAttribute, DateAttributeType, Domain, DomainType, Email, InstantMessagingAccount, Job, Mapping, MultiValueListAttribute, MultiValueListAttributeType, NamedDescribedResource, NamedResource, NumericAttribute, NumericAttributeType, Organization, PhoneNumber, Rating, Relation, RelationTrace, RelationType, Responsibility, Role, Scope, ScriptAttribute, ScriptAttributeType, SingleValueListAttribute, SingleValueListAttributeType, Status, StringAttribute, StringAttributeType, Tag, Trait, TraitAssignment, User, UserGroup, ValidationResult, ViewPermission, Website, WorkflowDefinition, WorkflowInstance, WorkflowTask

public interface Resource extends Entity
Represents a generic resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the id of the user that created this resource.
    Returns the timestamp (in UTC time standard) of the creation of this resource.
    Returns the id of the user who modified this resource the last time.
    Returns timestamp (in UTC time standard) of the last modification of this resource.
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Returns whether this is a system resource or not.

    Methods inherited from interface Entity

    getId, setId
  • Method Details

    • getResourceType

      @Deprecated(since="2024.10", forRemoval=true) ResourceType getResourceType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the type of this resource, e.g. [Community, Asset, Domain, Attribute, Relation, WorkflowInstance]. This property is deprecated and will be removed in the future. In order to stay backwards compatible and to enable us to introduce new types of resources, we are replacing the resourceType enum with a String. For new types of resource that didn't exist before this change, the resourceType will be BaseDataType.
      Returns:
      the type of this resource
    • isSystem

      boolean isSystem()
      Returns whether this is a system resource or not.
      Returns:
      true if this resource is a system resource, false otherwise
    • getCreatedBy

      UUID getCreatedBy()
      Returns the id of the user that created this resource.
      Returns:
      the id of the user that created this resource
    • getLastModifiedBy

      UUID getLastModifiedBy()
      Returns the id of the user who modified this resource the last time.
      Returns:
      the id of the user who modified this resource the last time
    • getCreatedOn

      Long getCreatedOn()
      Returns the timestamp (in UTC time standard) of the creation of this resource.
      Returns:
      the timestamp (in UTC time standard) of the creation of this resource
    • getLastModifiedOn

      Long getLastModifiedOn()
      Returns timestamp (in UTC time standard) of the last modification of this resource.
      Returns:
      the timestamp (in UTC time standard) of the last modification of this resource