public class RepositoryFile extends Object implements ISearchable, Comparable, IPentahoAclObjectIdentity, IAclSolutionFile, 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 |
SEARCH_TYPE_PHRASE, SEARCH_TYPE_WORDS_AND, SEARCH_TYPE_WORDS_OR
ACCESS_TYPE_ADMIN, ACCESS_TYPE_DELETE, ACCESS_TYPE_READ, ACCESS_TYPE_UPDATE, ACCESS_TYPE_WRITE
Constructor and Description |
---|
RepositoryFile() |
RepositoryFile(String fileName,
RepositoryFile parent,
byte[] data) |
RepositoryFile(String fileName,
RepositoryFile parent,
byte[] data,
long lastModified) |
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()
hashCode
in interface IPentahoAclObjectIdentity
hashCode
in class Object
public boolean equals(Object other)
equals
in interface IPentahoAclObjectIdentity
equals
in class Object
protected void resolvePath()
public List<IPentahoAclEntry> getAccessControls()
getAccessControls
in interface IAclHolder
public void setAccessControls(List<IPentahoAclEntry> acls)
setAccessControls
in interface IAclHolder
public void resetAccessControls(List<IPentahoAclEntry> acls)
resetAccessControls
in interface IAclHolder
public int getRevision()
protected void setRevision(int revision)
public String getFileId()
protected void setFileId(String fileId)
public String getSolution()
getSolution
in interface ISolutionFile
public String getSolutionPath()
getSolutionPath
in interface ISolutionFile
public String getFileName()
getFileName
in interface ISolutionFile
protected void setFileName(String fileName)
public String getFullPath()
getFullPath
in interface ISolutionFile
protected void setFullPath(String fullPath)
public void setParent(RepositoryFile parent)
public RepositoryFile getParent()
public ISolutionFile retrieveParent()
retrieveParent
in interface ISolutionFile
protected RepositoryFile getTopFolder()
public String[] getSearchableColumns()
getSearchableColumns
in interface ISearchable
public String getSearchableTable()
getSearchableTable
in interface ISearchable
public String getPhraseSearchQueryName()
getPhraseSearchQueryName
in interface ISearchable
protected void setDirectory(boolean directory)
protected boolean getDirectory()
public boolean isDirectory()
isDirectory
in interface ISolutionFile
public Set getChildrenFiles()
getChildrenFiles
in interface 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 ISolutionFile
public void setData(byte[] data)
data
- The data to set.public ISolutionFile[] listFiles(IFileFilter filter)
listFiles
in interface ISolutionFile
public ISolutionFile[] listFiles()
listFiles
in interface ISolutionFile
public RepositoryFile[] listRepositoryFiles()
public int compareTo(Object o)
compareTo
in interface Comparable
public long getLastModified()
getLastModified
in interface ISolutionFile
public void setLastModified(long modDate)
modDate
- The modDate to set.public boolean containsActions()
public boolean isRoot()
isRoot
in interface ISolutionFile
public boolean hasExtension()
public String getExtension()
getExtension
in interface ISolutionFile
public boolean exists()
exists
in interface ISolutionFile
public List<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 IAclHolder
Copyright © 2017 Hitachi Vantara. All rights reserved.