mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.2 to HEAD (V2.1 sourced fixes)
7121: Merged V2.1 to V2.2 7049: Fix for unreported duplicate component ID error (very rarely seen) in browse WCM sandbox JSP 7058: Fixes failure to rollback correctly on failed alfresco->alfresco deployment. 7074: Added filtering/access control checks to the AVM virtualization view. 7083: Added transaction handling to calls involving preview store 7084: xmlsec library update to 1.4.1 7092: Missing config update from the AVM filtering checkin. 7124: Merged V2.1 to V2.2 7091: Fix to several issues found with Regenerate Renditions wizard and FormsService 7125: Merged V2.1 to V2.2 7093: Fixes to workaround some deployment issues being experienced by a customer. 7094: Fix for previous build failure git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7373 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -40,13 +40,26 @@ import org.alfresco.service.cmr.avm.AVMStoreDescriptor;
|
||||
*/
|
||||
public class StorePseudoFile extends PseudoFile {
|
||||
|
||||
// Store type
|
||||
|
||||
private int m_storeType = StoreType.Normal;
|
||||
|
||||
// Web project this sandbox links to, or null if this store is not linked
|
||||
|
||||
private String m_webProject;
|
||||
|
||||
// User name if this is an author sandbox for a web project
|
||||
|
||||
private String m_userName;
|
||||
|
||||
/**
|
||||
* Class constructor
|
||||
*
|
||||
* @param storeDesc AVMStoreDescriptor
|
||||
* @param relPath String
|
||||
* @param storeType int
|
||||
*/
|
||||
public StorePseudoFile( AVMStoreDescriptor storeDesc, String relPath)
|
||||
public StorePseudoFile( AVMStoreDescriptor storeDesc, String relPath, int storeType)
|
||||
{
|
||||
super( storeDesc.getName(), FileAttribute.Directory + FileAttribute.ReadOnly);
|
||||
|
||||
@@ -63,6 +76,8 @@ public class StorePseudoFile extends PseudoFile {
|
||||
fInfo.setFileId( relPath.hashCode());
|
||||
|
||||
setFileInfo( fInfo);
|
||||
|
||||
setStoreType( storeType);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -118,4 +133,84 @@ public class StorePseudoFile extends PseudoFile {
|
||||
public FileInfo getFileInfo() {
|
||||
return getInfo();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the store type
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public final int isStoreType()
|
||||
{
|
||||
return m_storeType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if this store is linked to a web project
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public final boolean hasWebProject()
|
||||
{
|
||||
return m_webProject != null ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the web project that this store links to, or null if not linked
|
||||
*
|
||||
* @return String
|
||||
*/
|
||||
public final String getWebProject()
|
||||
{
|
||||
return m_webProject;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the web project that this store is linked to
|
||||
*
|
||||
* @param webProject String
|
||||
*/
|
||||
public final void setWebProject(String webProject)
|
||||
{
|
||||
m_webProject = webProject;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if this store is an author sandbox
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public final boolean hasUserName()
|
||||
{
|
||||
return m_userName != null ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the owner of this sandbox
|
||||
*
|
||||
* @return String
|
||||
*/
|
||||
public final String getUserName()
|
||||
{
|
||||
return m_userName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the owner of this sandbox
|
||||
*
|
||||
* @param userName String
|
||||
*/
|
||||
public final void setUserName(String userName)
|
||||
{
|
||||
m_userName = userName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the store type
|
||||
*
|
||||
* @param storeType int
|
||||
*/
|
||||
public final void setStoreType(int storeType)
|
||||
{
|
||||
m_storeType = storeType;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user