Class RepositoryObject

java.lang.Object
org.pentaho.di.repository.RepositoryObject
All Implemented Interfaces:
org.pentaho.di.repository.RepositoryElementMetaInterface, org.pentaho.di.repository.RepositoryObjectInterface

public class RepositoryObject extends Object implements org.pentaho.di.repository.RepositoryElementMetaInterface
Contains some common object details, extracted from a repository
Author:
Matt
  • Field Details

  • Constructor Details

    • RepositoryObject

      public RepositoryObject()
    • RepositoryObject

      public RepositoryObject(org.pentaho.di.repository.ObjectId objectId, String name, org.pentaho.di.repository.RepositoryDirectoryInterface repositoryDirectory, String modifiedUser, Date modifiedDate, org.pentaho.di.repository.RepositoryObjectType objectType, String description, boolean deleted)
      Parameters:
      name -
      modifiedUser -
      modifiedDate -
  • Method Details

    • getModifiedDate

      public Date getModifiedDate()
      Specified by:
      getModifiedDate in interface org.pentaho.di.repository.RepositoryElementMetaInterface
      Returns:
      the modifiedDate
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Parameters:
      modifiedDate - the modifiedDate to set
    • getModifiedUser

      public String getModifiedUser()
      Specified by:
      getModifiedUser in interface org.pentaho.di.repository.RepositoryElementMetaInterface
      Returns:
      the modifiedUser
    • setModifiedUser

      public void setModifiedUser(String modifiedUser)
      Parameters:
      modifiedUser - the modifiedUser to set
    • getName

      public String getName()
      Specified by:
      getName in interface org.pentaho.di.repository.RepositoryObjectInterface
      Returns:
      the name
    • setName

      public void setName(String name)
      Specified by:
      setName in interface org.pentaho.di.repository.RepositoryElementMetaInterface
      Parameters:
      name - the name to set
    • compareStrings

      public static final int compareStrings(String one, String two)
    • compareDates

      public static final int compareDates(Date one, Date two)
    • sortRepositoryObjects

      public static final void sortRepositoryObjects(List<org.pentaho.di.repository.RepositoryElementMetaInterface> objects, int sortPosition, boolean ascending)
    • getObjectType

      public org.pentaho.di.repository.RepositoryObjectType getObjectType()
      Specified by:
      getObjectType in interface org.pentaho.di.repository.RepositoryElementMetaInterface
      Returns:
      the objectType
    • setObjectType

      public void setObjectType(org.pentaho.di.repository.RepositoryObjectType objectType)
      Parameters:
      objectType - the objectType to set
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.pentaho.di.repository.RepositoryElementMetaInterface
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - the description to set
    • isDeleted

      public boolean isDeleted()
      Specified by:
      isDeleted in interface org.pentaho.di.repository.RepositoryElementMetaInterface
      Returns:
      the deleted
    • setDeleted

      public void setDeleted(boolean deleted)
      Parameters:
      deleted - the deleted to set
    • getRepositoryDirectory

      public org.pentaho.di.repository.RepositoryDirectoryInterface getRepositoryDirectory()
      Specified by:
      getRepositoryDirectory in interface org.pentaho.di.repository.RepositoryElementMetaInterface
      Returns:
      the repositoryDirectory
    • setRepositoryDirectory

      public void setRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface repositoryDirectory)
      Parameters:
      repositoryDirectory - the repositoryDirectory to set
    • getObjectId

      public org.pentaho.di.repository.ObjectId getObjectId()
      Specified by:
      getObjectId in interface org.pentaho.di.repository.RepositoryObjectInterface
      Returns:
      the objectId
    • setObjectId

      public void setObjectId(org.pentaho.di.repository.ObjectId objectId)
      Parameters:
      objectId - the objectId to set