|
CStockage 4.2_beta-RC-1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.esupportail.portal.channels.CStockage.config.Space
Id: Space.java,v 1.0 9 juil. 2004
Copyright (c) 2004 Esup Portail (www.esup-portail.org)
Classes: Space
Original Author: Yohan Colmant
This represents a file space on the server
Constructor Summary | |
Space()
|
Method Summary | |
void |
addPathElement(java.lang.String pathElement)
Add a path element to the current directory |
boolean |
allowsSharing()
|
boolean |
canRead(ServerAccess access)
Check if we are authorized to read this space |
void |
checkAttribute(java.lang.String attributeName,
org.jasig.portal.security.IPerson person)
we look for a {...} form in the attribute. |
void |
checkPath(org.jasig.portal.security.IPerson person)
We check if the is a {...} form in the path. |
void |
clearRegexp()
Delete the regexp |
java.lang.Object |
clone()
Clone this object |
java.lang.Object |
cloneWithoutServer()
Clone this object |
boolean |
equals(java.lang.Object o)
Compare this to another object |
java.lang.String |
getAclGroupPrefix()
|
java.lang.String |
getAclNamespace()
|
java.lang.String |
getAclSecurity()
|
java.lang.String |
getAclUportalGroup()
|
java.lang.String |
getAclUserPrefix()
|
java.lang.String |
getActionType()
|
java.lang.String |
getAuthenticationMode()
|
java.util.ArrayList |
getAuthorization()
return the authorization list |
java.lang.String |
getChannelActionClass()
|
AbstractChannelAction |
getChannelActionObject()
Get the channel action object |
java.lang.String |
getCifsDisablePlainTextPassword()
|
java.lang.String |
getCifsDomain()
|
java.lang.String |
getCifsResolveOrder()
|
java.lang.String |
getCurrentPath()
|
SharedSpaceProperties |
getCurrentViewer()
|
java.lang.String |
getInitialLoginFromTheConfigurationFile()
|
java.lang.String |
getKey()
|
java.lang.String |
getLabel()
|
java.lang.StringBuffer |
getLocalXml()
Get the xml in the configuration file style |
java.lang.String |
getLogin()
|
java.lang.String |
getMetadataNamespace()
|
java.lang.String |
getNfsGidNumber()
|
java.lang.String |
getNfsUidNumber()
|
UserForPersonalization |
getOwner()
|
java.lang.String |
getParentPath()
|
java.lang.String |
getParentPathUntilSpaceRoot()
|
java.lang.String |
getPassword()
|
java.lang.String |
getPath()
|
java.lang.String |
getPathElementAt(int index)
Return the current element path at the good index |
java.lang.String |
getPathRegexp()
|
java.lang.String |
getPathRegexpSeparator()
|
int |
getPathSize()
Return the path size |
static java.lang.String |
getPathWithoutFirstAndLastSlash(java.lang.String path)
Get the path from an initial path, without first and last slashes |
Server |
getServer()
|
ServerAccess |
getServerAccessObject()
Return the object used to access the server |
java.lang.String |
getServerType()
|
java.lang.String |
getSpaceRootPath()
|
DirectorySharingProperties |
getTargetsOfSharing()
|
java.lang.String |
getUrl()
|
java.lang.String |
getXml()
Get the xml in the configuration file style |
void |
initCurrentUserPrivileges()
Init the privileges of the current user. |
void |
initServerAccessObject(org.jasig.portal.security.IPerson person)
init the server access object for this space |
boolean |
isAskedAuthentication()
If the selected authentication is ASKED |
boolean |
isCasAuthentication()
If the selected authentication is CAS |
boolean |
isCurrentPathAtRoot()
Check if we are at the root of the space |
boolean |
isLoginIsFromConfigurationFile()
|
boolean |
isPersonnalSpace()
|
boolean |
isTrustedAuthentication()
If the selected authentication is TRUSTED |
void |
removePathElement(int index)
Remove an element from the current path |
void |
setAclSecurity(java.lang.String aclSecurity)
|
void |
setActionType(java.lang.String actionType)
|
void |
setAllowsSharing(java.lang.String allowsSharing)
|
void |
setAuthorization(AuthorizationSpaceParameter authorization)
add a new authorization to the list |
void |
setChannelActionClass(java.lang.String channelActionClass)
|
boolean |
setChannelActionObject(org.jasig.portal.security.IPerson person,
java.util.ArrayList spaces,
BufferAction buffer,
java.lang.String userPortalLogin,
java.util.Vector userGroups)
Set the object used to manage the actions of the channel |
void |
setCurrentViewer(SharedSpaceProperties currentViewer)
|
void |
setKey(java.lang.String key)
|
void |
setLabel(java.lang.String label)
|
void |
setLogin(java.lang.String login)
|
void |
setMetadataNamespace(java.lang.String metadataNamespace)
|
void |
setOwner(UserForPersonalization owner)
|
void |
setPassword(java.lang.String password)
|
void |
setPath(java.lang.String path)
|
void |
setPathRegexp(java.lang.String pathRegexp)
|
void |
setPathRegexpSeparator(java.lang.String pathRegexpSeparator)
|
void |
setPersonnalSpace(boolean personnalSpace)
|
void |
setServer(Server server)
|
void |
setServerAccessClass(java.lang.String serverAccessClass)
|
boolean |
setServerAccessObject()
Set the server access object for this space |
void |
setTargetsOfSharing(DirectorySharingProperties targetsOfSharing)
|
java.lang.String |
toString()
Return a String representation of this space |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Space()
Method Detail |
public java.lang.String getAclSecurity()
public void setAclSecurity(java.lang.String aclSecurity)
aclSecurity
- The aclSecurity to set.public SharedSpaceProperties getCurrentViewer()
public void setCurrentViewer(SharedSpaceProperties currentViewer)
currentViewer
- The targetOfsharing to set.public UserForPersonalization getOwner()
public void setOwner(UserForPersonalization owner)
owner
- The owner to set.public void initCurrentUserPrivileges()
public DirectorySharingProperties getTargetsOfSharing()
public void setTargetsOfSharing(DirectorySharingProperties targetsOfSharing)
targetsOfSharing
- The targetsOfSharing to set.public Server getServer()
public void setServer(Server server)
server
- The server to set.public java.lang.String getMetadataNamespace()
public void setMetadataNamespace(java.lang.String metadataNamespace)
metadataNamespace
- The metadataNamespace to set.public java.util.ArrayList getAuthorization()
public void setAuthorization(AuthorizationSpaceParameter authorization)
authorization
- the authorization to addpublic java.lang.String getCifsDisablePlainTextPassword()
public java.lang.String getCifsDomain()
public java.lang.String getCifsResolveOrder()
public java.lang.String getActionType()
public void setActionType(java.lang.String actionType)
actionType
- The actionType to set.public java.lang.String getServerType()
public java.lang.String getAclUportalGroup()
public java.lang.String getAclUserPrefix()
public java.lang.String getAclGroupPrefix()
public java.lang.String getAclNamespace()
public boolean isPersonnalSpace()
public void setPersonnalSpace(boolean personnalSpace)
personnalSpace
- The personnalSpace to set.public boolean isCasAuthentication() throws PropertiesException
PropertiesException
public boolean isTrustedAuthentication() throws PropertiesException
PropertiesException
public boolean isAskedAuthentication() throws PropertiesException
PropertiesException
public java.lang.String getLogin()
public void setLogin(java.lang.String login)
login
- The login to set.public boolean isLoginIsFromConfigurationFile()
public java.lang.String getInitialLoginFromTheConfigurationFile()
public java.lang.String getPassword() throws PropertiesException
PropertiesException
public void setPassword(java.lang.String password)
password
- The trustedPassword to set.public java.lang.String getUrl() throws PropertiesException
PropertiesException
public java.lang.String getAuthenticationMode()
public void setServerAccessClass(java.lang.String serverAccessClass)
serverAccessClass
- The serverAccessClass to set.public java.lang.String getChannelActionClass()
public void setChannelActionClass(java.lang.String channelActionClass)
channelActionClass
- The channelActionClass to set.public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The key to set.public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- The label to set.public java.lang.String getPathRegexp()
public void setPathRegexp(java.lang.String pathRegexp)
pathRegexp
- The pathRegexp to set.public java.lang.String getPathRegexpSeparator()
public void setPathRegexpSeparator(java.lang.String pathRegexpSeparator)
pathRegexpSeparator
- The pathRegexpSeparator to set.public void setPath(java.lang.String path)
path
- The path to set.public java.lang.String getCurrentPath()
public java.lang.String getParentPathUntilSpaceRoot()
public java.lang.String getSpaceRootPath()
public java.lang.String getParentPath()
public static java.lang.String getPathWithoutFirstAndLastSlash(java.lang.String path)
path
- the path to transform
public java.lang.String getPath()
public void checkPath(org.jasig.portal.security.IPerson person)
person
- the connected personpublic void clearRegexp()
public void checkAttribute(java.lang.String attributeName, org.jasig.portal.security.IPerson person)
attributeName
- to checkperson
- uPortal person objectpublic void addPathElement(java.lang.String pathElement)
pathElement
- public void removePathElement(int index)
index
- public int getPathSize()
public boolean isCurrentPathAtRoot()
public java.lang.String getPathElementAt(int index)
index
- the selected index
public boolean canRead(ServerAccess access)
access
- the object used to access the server
public boolean setServerAccessObject() throws PropertiesException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.net.MalformedURLException, ApplicationException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.net.MalformedURLException
ApplicationException
PropertiesException
public ServerAccess getServerAccessObject()
public void initServerAccessObject(org.jasig.portal.security.IPerson person) throws java.net.MalformedURLException, PropertiesException
person
- the uportal person object
java.net.MalformedURLException
PropertiesException
public boolean setChannelActionObject(org.jasig.portal.security.IPerson person, java.util.ArrayList spaces, BufferAction buffer, java.lang.String userPortalLogin, java.util.Vector userGroups) throws ChannelException
person
- the uPortal person objectspaces
- the spaces usedbuffer
- the buffer used to get for example the clipboarduserPortalLogin
- The user login in the portaluserGroups
- The groups of the user in the portal
ChannelException
public AbstractChannelAction getChannelActionObject()
public java.lang.String getNfsGidNumber()
public java.lang.String getNfsUidNumber()
public boolean allowsSharing() throws PropertiesException
PropertiesException
public void setAllowsSharing(java.lang.String allowsSharing)
allowsSharing
- The allowsSharing to set.public java.lang.String toString()
public boolean equals(java.lang.Object o)
o
- object to comparepublic java.lang.Object cloneWithoutServer()
public java.lang.Object clone()
public java.lang.StringBuffer getLocalXml()
public java.lang.String getXml()
|
CStockage 4.2_beta-RC-1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |