org.pentaho.di.repository
Class RepositoryObject
java.lang.Object
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
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
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
-
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