org.pentaho.di.repository
Class RepositoryObject

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

public class RepositoryObject
extends Object
implements RepositoryElementMetaInterface

Contains some common object details, extracted from a repository

Author:
Matt

Field Summary
static String STRING_OBJECT_TYPE_JOB
          Deprecated. 
static String STRING_OBJECT_TYPE_TRANSFORMATION
          Deprecated. 
 
Constructor Summary
RepositoryObject()
           
RepositoryObject(ObjectId objectId, String name, RepositoryDirectoryInterface repositoryDirectory, String modifiedUser, Date modifiedDate, RepositoryObjectType objectType, String description, boolean deleted)
           
 
Method Summary
static int compareDates(Date one, Date two)
           
static int compareStrings(String one, String two)
           
 String getDescription()
           
 Date getModifiedDate()
           
 String getModifiedUser()
           
 String getName()
          The name of the repository object
 ObjectId getObjectId()
          The id of the object
 RepositoryObjectType getObjectType()
           
 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(ObjectId objectId)
           
 void setObjectType(RepositoryObjectType objectType)
           
 void setRepositoryDirectory(RepositoryDirectoryInterface repositoryDirectory)
           
static void sortRepositoryObjects(List<RepositoryElementMetaInterface> objects, int sortPosition, boolean ascending)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(ObjectId objectId,
                        String name,
                        RepositoryDirectoryInterface repositoryDirectory,
                        String modifiedUser,
                        Date modifiedDate,
                        RepositoryObjectType objectType,
                        String description,
                        boolean deleted)
Parameters:
name -
modifiedUser -
modifiedDate -
Method Detail

getModifiedDate

public Date getModifiedDate()
Specified by:
getModifiedDate in interface 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 RepositoryElementMetaInterface
Returns:
the modifiedUser

setModifiedUser

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

getName

public String getName()
Description copied from interface: RepositoryObjectInterface
The name of the repository object

Specified by:
getName in interface RepositoryObjectInterface
Returns:
the name

setName

public void setName(String name)
Specified by:
setName in interface 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<RepositoryElementMetaInterface> objects,
                                               int sortPosition,
                                               boolean ascending)

getObjectType

public RepositoryObjectType getObjectType()
Specified by:
getObjectType in interface RepositoryElementMetaInterface
Returns:
the objectType

setObjectType

public void setObjectType(RepositoryObjectType objectType)
Parameters:
objectType - the objectType to set

getDescription

public String getDescription()
Specified by:
getDescription in interface 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 RepositoryElementMetaInterface
Returns:
the deleted

setDeleted

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

getRepositoryDirectory

public RepositoryDirectoryInterface getRepositoryDirectory()
Specified by:
getRepositoryDirectory in interface RepositoryElementMetaInterface
Returns:
the repositoryDirectory

setRepositoryDirectory

public void setRepositoryDirectory(RepositoryDirectoryInterface repositoryDirectory)
Parameters:
repositoryDirectory - the repositoryDirectory to set

getObjectId

public ObjectId getObjectId()
Description copied from interface: RepositoryObjectInterface
The id of the object

Specified by:
getObjectId in interface RepositoryObjectInterface
Returns:
the objectId

setObjectId

public void setObjectId(ObjectId objectId)
Parameters:
objectId - the objectId to set