public class RepositoryFile extends Object implements org.pentaho.platform.api.repository.ISearchable, Comparable, org.pentaho.platform.api.engine.IPentahoAclObjectIdentity, org.pentaho.platform.api.engine.IAclSolutionFile, org.pentaho.platform.api.engine.ISolutionFile
Modifier and Type | Field and Description |
---|---|
protected boolean |
directory |
static char |
EXTENSION_CHAR |
protected String |
fileId |
protected String |
fileName |
protected String |
fullPath |
protected long |
lastModified |
protected RepositoryFile |
parent |
protected int |
revision |
Constructor and Description |
---|
RepositoryFile() |
RepositoryFile(String fileName,
RepositoryFile parent,
byte[] data) |
RepositoryFile(String fileName,
RepositoryFile parent,
byte[] data,
long lastModified) |
Modifier and Type | Method and Description |
---|---|
void |
addChildFile(RepositoryFile file) |
int |
compareTo(Object o) |
boolean |
containsActions() |
boolean |
equals(Object other) |
boolean |
exists() |
List<org.pentaho.platform.api.engine.IPentahoAclEntry> |
getAccessControls() |
Set |
getChildrenFiles() |
byte[] |
getData() |
protected boolean |
getDirectory() |
List<org.pentaho.platform.api.engine.IPentahoAclEntry> |
getEffectiveAccessControls()
Chains up to find the access controls that are in force on this object.
|
String |
getExtension() |
String |
getFileId() |
String |
getFileName() |
String |
getFullPath() |
long |
getLastModified() |
RepositoryFile |
getParent() |
String |
getPhraseSearchQueryName() |
int |
getRevision() |
String[] |
getSearchableColumns() |
String |
getSearchableTable() |
String |
getSolution() |
String |
getSolutionPath() |
protected RepositoryFile |
getTopFolder() |
boolean |
hasExtension() |
int |
hashCode() |
boolean |
isDirectory() |
boolean |
isRoot() |
org.pentaho.platform.api.engine.ISolutionFile[] |
listFiles() |
org.pentaho.platform.api.engine.ISolutionFile[] |
listFiles(org.pentaho.platform.api.engine.IFileFilter filter) |
RepositoryFile[] |
listRepositoryFiles() |
void |
removeChildFile(RepositoryFile file) |
void |
resetAccessControls(List<org.pentaho.platform.api.engine.IPentahoAclEntry> acls) |
protected void |
resolvePath() |
org.pentaho.platform.api.engine.ISolutionFile |
retrieveParent() |
void |
setAccessControls(List<org.pentaho.platform.api.engine.IPentahoAclEntry> acls)
This method's purpose is to allow Hibernate to initialize the ACLs from the data-store.
|
void |
setChildrenFiles(Set childrenFiles) |
void |
setData(byte[] data) |
protected void |
setDirectory(boolean directory) |
protected void |
setFileId(String fileId) |
protected void |
setFileName(String fileName) |
protected void |
setFullPath(String fullPath) |
void |
setLastModified(long modDate) |
void |
setParent(RepositoryFile parent) |
protected void |
setRevision(int revision) |
public static final char EXTENSION_CHAR
protected int revision
protected String fileId
protected RepositoryFile parent
protected String fileName
protected String fullPath
protected long lastModified
protected boolean directory
public RepositoryFile()
public RepositoryFile(String fileName, RepositoryFile parent, byte[] data)
public RepositoryFile(String fileName, RepositoryFile parent, byte[] data, long lastModified)
public int hashCode()
public boolean equals(Object other)
protected void resolvePath()
public List<org.pentaho.platform.api.engine.IPentahoAclEntry> getAccessControls()
getAccessControls
in interface org.pentaho.platform.api.engine.IAclHolder
public void setAccessControls(List<org.pentaho.platform.api.engine.IPentahoAclEntry> acls)
setAccessControls
in interface org.pentaho.platform.api.engine.IAclHolder
public void resetAccessControls(List<org.pentaho.platform.api.engine.IPentahoAclEntry> acls)
resetAccessControls
in interface org.pentaho.platform.api.engine.IAclHolder
public int getRevision()
protected void setRevision(int revision)
public String getFileId()
protected void setFileId(String fileId)
public String getSolution()
getSolution
in interface org.pentaho.platform.api.engine.ISolutionFile
public String getSolutionPath()
getSolutionPath
in interface org.pentaho.platform.api.engine.ISolutionFile
public String getFileName()
getFileName
in interface org.pentaho.platform.api.engine.ISolutionFile
protected void setFileName(String fileName)
public String getFullPath()
getFullPath
in interface org.pentaho.platform.api.engine.ISolutionFile
protected void setFullPath(String fullPath)
public void setParent(RepositoryFile parent)
public RepositoryFile getParent()
public org.pentaho.platform.api.engine.ISolutionFile retrieveParent()
retrieveParent
in interface org.pentaho.platform.api.engine.ISolutionFile
protected RepositoryFile getTopFolder()
public String[] getSearchableColumns()
getSearchableColumns
in interface org.pentaho.platform.api.repository.ISearchable
public String getSearchableTable()
getSearchableTable
in interface org.pentaho.platform.api.repository.ISearchable
public String getPhraseSearchQueryName()
getPhraseSearchQueryName
in interface org.pentaho.platform.api.repository.ISearchable
protected void setDirectory(boolean directory)
protected boolean getDirectory()
public boolean isDirectory()
isDirectory
in interface org.pentaho.platform.api.engine.ISolutionFile
public Set getChildrenFiles()
getChildrenFiles
in interface org.pentaho.platform.api.engine.IAclSolutionFile
public void setChildrenFiles(Set childrenFiles)
childrenFiles
- The childrenResources to set.public void addChildFile(RepositoryFile file)
public void removeChildFile(RepositoryFile file)
public byte[] getData()
getData
in interface org.pentaho.platform.api.engine.ISolutionFile
public void setData(byte[] data)
data
- The data to set.public org.pentaho.platform.api.engine.ISolutionFile[] listFiles(org.pentaho.platform.api.engine.IFileFilter filter)
listFiles
in interface org.pentaho.platform.api.engine.ISolutionFile
public org.pentaho.platform.api.engine.ISolutionFile[] listFiles()
listFiles
in interface org.pentaho.platform.api.engine.ISolutionFile
public RepositoryFile[] listRepositoryFiles()
public int compareTo(Object o)
compareTo
in interface Comparable
public long getLastModified()
getLastModified
in interface org.pentaho.platform.api.engine.ISolutionFile
public void setLastModified(long modDate)
modDate
- The modDate to set.public boolean containsActions()
public boolean isRoot()
isRoot
in interface org.pentaho.platform.api.engine.ISolutionFile
public boolean hasExtension()
public String getExtension()
getExtension
in interface org.pentaho.platform.api.engine.ISolutionFile
public boolean exists()
exists
in interface org.pentaho.platform.api.engine.ISolutionFile
public List<org.pentaho.platform.api.engine.IPentahoAclEntry> getEffectiveAccessControls()
Note that (1) defining no access control entries of your own and (2) removing all of your access control entries is indistiguishable in the current design. In #1, we chain up because we inherit. But in #2, it might be expected that by explicitly removing all access control entries, the chaining up ends. That is not the case in the current design.
getEffectiveAccessControls
in interface org.pentaho.platform.api.engine.IAclHolder
Copyright © 2019 Hitachi Vantara. All rights reserved.