|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 interface org.springframework.security.acl.basic.AclObjectIdentityhashCode in class Objectpublic boolean equals(Object other)
equals in interface org.springframework.security.acl.basic.AclObjectIdentityequals in class Objectpublic List<IPentahoAclEntry> getAccessControls()
IAclHolder
getAccessControls in interface IAclHolderpublic void setAccessControls(List<IPentahoAclEntry> acls)
setAccessControls in interface IAclHolderpublic void resetAccessControls(List<IPentahoAclEntry> acls)
IAclHolder
resetAccessControls in interface IAclHolderpublic int getRevision()
public String getFileId()
public String getSolution()
getSolution in interface ISolutionFilepublic String getSolutionPath()
getSolutionPath in interface ISolutionFilepublic String getFileName()
getFileName in interface ISolutionFilepublic String getFullPath()
getFullPath in interface ISolutionFilepublic void setParent(RepositoryFile parent)
public RepositoryFile getParent()
public ISolutionFile retrieveParent()
ISolutionFile
retrieveParent in interface ISolutionFilepublic String[] getSearchableColumns()
getSearchableColumns in interface ISearchablepublic String getSearchableTable()
getSearchableTable in interface ISearchablepublic String getPhraseSearchQueryName()
getPhraseSearchQueryName in interface ISearchablepublic boolean isDirectory()
isDirectory in interface ISolutionFilepublic Set getChildrenFiles()
IAclSolutionFileIAclSolutionFile.
Each child must be an instance of IAclSolutionFile.
getChildrenFiles in interface IAclSolutionFilepublic 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 ISolutionFilepublic void setData(byte[] data)
data - The data to set.public ISolutionFile[] listFiles(IFileFilter filter)
listFiles in interface ISolutionFilepublic ISolutionFile[] listFiles()
ISolutionFile
listFiles in interface ISolutionFilepublic RepositoryFile[] listRepositoryFiles()
public int compareTo(Object o)
compareTo in interface Comparablepublic long getLastModified()
getLastModified in interface ISolutionFilepublic void setLastModified(long modDate)
modDate - The modDate to set.public boolean containsActions()
public boolean isRoot()
isRoot in interface ISolutionFilepublic boolean hasExtension()
public String getExtension()
getExtension in interface ISolutionFilepublic boolean exists()
exists in interface ISolutionFilepublic 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 | |||||||||