Package org.pentaho.di.repository
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 Summary
Fields Modifier and Type Field Description static String
STRING_OBJECT_TYPE_JOB
Deprecated.static String
STRING_OBJECT_TYPE_TRANSFORMATION
Deprecated.
-
Constructor Summary
Constructors Constructor Description RepositoryObject()
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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
compareDates(Date one, Date two)
static int
compareStrings(String one, String two)
String
getDescription()
Date
getModifiedDate()
String
getModifiedUser()
String
getName()
org.pentaho.di.repository.ObjectId
getObjectId()
org.pentaho.di.repository.RepositoryObjectType
getObjectType()
org.pentaho.di.repository.RepositoryDirectoryInterface
getRepositoryDirectory()
boolean
isDeleted()
void
setDeleted(boolean deleted)
void
setDescription(String description)
void
setModifiedDate(Date modifiedDate)
void
setModifiedUser(String modifiedUser)
void
setName(String name)
void
setObjectId(org.pentaho.di.repository.ObjectId objectId)
void
setObjectType(org.pentaho.di.repository.RepositoryObjectType objectType)
void
setRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface repositoryDirectory)
static void
sortRepositoryObjects(List<org.pentaho.di.repository.RepositoryElementMetaInterface> objects, int sortPosition, boolean ascending)
-
-
-
Field Detail
-
STRING_OBJECT_TYPE_TRANSFORMATION
@Deprecated public static final String STRING_OBJECT_TYPE_TRANSFORMATION
Deprecated.- See Also:
- Constant Field Values
-
STRING_OBJECT_TYPE_JOB
@Deprecated public static final String STRING_OBJECT_TYPE_JOB
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
getModifiedDate
public Date getModifiedDate()
- Specified by:
getModifiedDate
in interfaceorg.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 interfaceorg.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 interfaceorg.pentaho.di.repository.RepositoryObjectInterface
- Returns:
- the name
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceorg.pentaho.di.repository.RepositoryElementMetaInterface
- Parameters:
name
- the name to set
-
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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.pentaho.di.repository.RepositoryObjectInterface
- Returns:
- the objectId
-
setObjectId
public void setObjectId(org.pentaho.di.repository.ObjectId objectId)
- Parameters:
objectId
- the objectId to set
-
-