org.alfresco.filesys.avm
Class WebProjectStorePseudoFile

java.lang.Object
  extended by org.alfresco.jlan.server.filesys.pseudo.PseudoFile
      extended by org.alfresco.filesys.avm.StorePseudoFile
          extended by org.alfresco.filesys.avm.WebProjectStorePseudoFile

public class WebProjectStorePseudoFile
extends StorePseudoFile

Web Project Store Pseudo File Class

Represents an AVM store as a folder.


Field Summary
static int RoleContentManager
           
static int RoleNone
           
static int RolePublisher
           
 
Fields inherited from class org.alfresco.jlan.server.filesys.pseudo.PseudoFile
_creationDateTime
 
Constructor Summary
WebProjectStorePseudoFile(AVMStoreDescriptor storeDesc, java.lang.String relPath, org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Class constructor
WebProjectStorePseudoFile(java.lang.String storeName, java.lang.String relPath, org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Class constructor
 
Method Summary
 void addUserRole(java.lang.String userName, int role)
          Add a user role for this web project
 org.alfresco.service.cmr.repository.NodeRef getNodeRef()
          Get the associated node ref for the store
 int getUserRole(java.lang.String userName)
          Return the role for the specified user within this web project
 boolean hasNodeRef()
          Check if the associated node ref is valid
 void removeUserRole(java.lang.String userName)
          Remove a user role for this project
 void setNodeRef(org.alfresco.service.cmr.repository.NodeRef node)
          Set the associated node ref for the store
 
Methods inherited from class org.alfresco.filesys.avm.StorePseudoFile
getFile, getFileInfo, getUserName, getWebProject, hasUserName, hasWebProject, isStoreType, setStoreType, setUserName, setWebProject
 
Methods inherited from class org.alfresco.jlan.server.filesys.pseudo.PseudoFile
getAttributes, getFileName, getInfo, isDirectory, isFile, isHidden, isReadOnly, setFileInfo, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RoleNone

public static final int RoleNone
See Also:
Constant Field Values

RolePublisher

public static final int RolePublisher
See Also:
Constant Field Values

RoleContentManager

public static final int RoleContentManager
See Also:
Constant Field Values
Constructor Detail

WebProjectStorePseudoFile

public WebProjectStorePseudoFile(AVMStoreDescriptor storeDesc,
                                 java.lang.String relPath,
                                 org.alfresco.service.cmr.repository.NodeRef nodeRef)
Class constructor

Parameters:
storeDesc - AVMStoreDescriptor
relPath - String
nodeRef - NodeRef

WebProjectStorePseudoFile

public WebProjectStorePseudoFile(java.lang.String storeName,
                                 java.lang.String relPath,
                                 org.alfresco.service.cmr.repository.NodeRef nodeRef)
Class constructor

Parameters:
storeName - String
relPath - String
nodeRef - NodeRef
Method Detail

hasNodeRef

public final boolean hasNodeRef()
Check if the associated node ref is valid

Returns:
boolean

getNodeRef

public final org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Get the associated node ref for the store

Returns:
NodeRef

setNodeRef

public final void setNodeRef(org.alfresco.service.cmr.repository.NodeRef node)
Set the associated node ref for the store

Parameters:
node - NodeRef

getUserRole

public final int getUserRole(java.lang.String userName)
Return the role for the specified user within this web project

Parameters:
userName - String
Returns:
int

addUserRole

public final void addUserRole(java.lang.String userName,
                              int role)
Add a user role for this web project

Parameters:
userName - String
role - int

removeUserRole

public final void removeUserRole(java.lang.String userName)
Remove a user role for this project

Parameters:
userName - String


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.