|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.repository.solution.dbbased.RepositoryFile
public class RepositoryFile
Field Summary | |
---|---|
static char |
EXTENSION_CHAR
|
Fields inherited from interface org.pentaho.platform.api.repository.ISearchable |
---|
SEARCH_TYPE_PHRASE, SEARCH_TYPE_WORDS_AND, SEARCH_TYPE_WORDS_OR |
Fields inherited from interface org.pentaho.platform.api.engine.IAclHolder |
---|
ACCESS_TYPE_ADMIN, ACCESS_TYPE_DELETE, ACCESS_TYPE_READ, ACCESS_TYPE_UPDATE, ACCESS_TYPE_WRITE |
Constructor Summary | |
---|---|
RepositoryFile()
|
|
RepositoryFile(String fileName,
RepositoryFile parent,
byte[] data)
|
|
RepositoryFile(String fileName,
RepositoryFile parent,
byte[] data,
long lastModified)
|
Method Summary | |
---|---|
void |
addChildFile(RepositoryFile file)
|
int |
compareTo(Object o)
|
boolean |
containsActions()
|
boolean |
equals(Object other)
|
boolean |
exists()
|
List<IPentahoAclEntry> |
getAccessControls()
Returns the ACLs on the existing object. |
Set |
getChildrenFiles()
Gets the set children IAclSolutionFiles from this IAclSolutionFile . |
byte[] |
getData()
|
List<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()
|
boolean |
hasExtension()
|
int |
hashCode()
|
boolean |
isDirectory()
|
boolean |
isRoot()
|
ISolutionFile[] |
listFiles()
If this is a directory, will list all children files/directories for hierarchical navigation. |
ISolutionFile[] |
listFiles(IFileFilter filter)
|
RepositoryFile[] |
listRepositoryFiles()
|
void |
removeChildFile(RepositoryFile file)
|
void |
resetAccessControls(List<IPentahoAclEntry> acls)
Replaces existing access controls with a new list of access controls. |
ISolutionFile |
retrieveParent()
NOTE: This method is named 'retrieveParent' instead of 'getParent' because the generic ISolutionFile type is not a 'Hibernate' described type and one of the base classes (RepositoryFile) will fail dependency checking. |
void |
setAccessControls(List<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)
|
void |
setLastModified(long modDate)
|
void |
setParent(RepositoryFile parent)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char EXTENSION_CHAR
Constructor Detail |
---|
public RepositoryFile()
public RepositoryFile(String fileName, RepositoryFile parent, byte[] data)
public RepositoryFile(String fileName, RepositoryFile parent, byte[] data, long lastModified)
Method Detail |
---|
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
public List<IPentahoAclEntry> getAccessControls()
IAclHolder
getAccessControls
in interface IAclHolder
public void setAccessControls(List<IPentahoAclEntry> acls)
setAccessControls
in interface IAclHolder
public void resetAccessControls(List<IPentahoAclEntry> acls)
IAclHolder
resetAccessControls
in interface IAclHolder
public int getRevision()
public String getFileId()
public String getSolution()
getSolution
in interface ISolutionFile
public String getSolutionPath()
getSolutionPath
in interface ISolutionFile
public String getFileName()
getFileName
in interface ISolutionFile
public String getFullPath()
getFullPath
in interface ISolutionFile
public void setParent(RepositoryFile parent)
public RepositoryFile getParent()
public ISolutionFile retrieveParent()
ISolutionFile
retrieveParent
in interface ISolutionFile
public String[] getSearchableColumns()
getSearchableColumns
in interface ISearchable
public String getSearchableTable()
getSearchableTable
in interface ISearchable
public String getPhraseSearchQueryName()
getPhraseSearchQueryName
in interface ISearchable
public boolean isDirectory()
isDirectory
in interface ISolutionFile
public Set getChildrenFiles()
IAclSolutionFile
IAclSolutionFile
.
Each child must be an instance of IAclSolutionFile.
getChildrenFiles
in interface IAclSolutionFile
public void setChildrenFiles(Set childrenFiles)
childrenResources
- 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()
ISolutionFile
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |