|
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.channelAction.classic.sharing.SharingTool
Id: SharingTool.java,v 1.0 13 janv. 2005 Copyright (c) 2005 Esup Portail (www.esup-portail.org) Classes: SharingTool Original Author: Yohan Colmant This class is a tool used to manage the sharing actions
Field Summary | |
static java.lang.String |
ADMINISTRATED_SERVER
If the server into the database is administrated |
Constructor Summary | |
SharingTool()
Constructor |
Method Summary | |
void |
addStorageAvailableSpace(Space currentSpace,
Space sharedSpace,
java.lang.String serverUrl,
java.lang.String fromKey,
java.lang.String path,
java.util.Vector users,
java.util.Vector groups,
java.util.Vector others)
Add sharing properties for the users and groups into the database |
void |
deleteAllPrivileges(Space currentSpace,
java.lang.String serverId,
java.lang.String spaceId)
Delete all privileges in ACL and Database |
void |
delStorageAvailableSpaceForGroups(Space currentSpace,
java.util.Vector groups,
java.lang.String serverId)
Delete sharing properties for groups into the database |
void |
delStorageAvailableSpaceForOthers(Space currentSpace,
java.util.Vector others,
java.lang.String serverId)
Delete sharing properties for others into the acl |
void |
delStorageAvailableSpaceForSpecifiedPath(java.lang.String url,
java.lang.String path)
Delete sharing properties for url and path into the database |
void |
delStorageAvailableSpaceForUsers(Space currentSpace,
java.util.Vector users,
java.lang.String serverId)
Delete sharing properties for users into the database |
UserForPersonalization |
getSpaceOwnerInMetadata(Space space)
|
java.lang.Object[] |
getTargetsOfAvailableSpaceFromAcl(Space currentSpace,
java.lang.String serverUrl)
Get the users for whose the resource is shared from the acl |
void |
setInheritance(Space currentSpace,
boolean inheritance)
Update the inheritance |
void |
setPublic(Space currentSpace,
boolean publicDirectory,
Space sharedSpace)
Update the inheritance |
void |
updatePathOfSharing(java.lang.String url,
java.lang.String oldPath,
java.lang.String newPath)
Update the path of shared spaces |
void |
updateReadAndWriteAndShareSpaceGroups(Space currentSpace,
java.util.Vector groups)
Update the "reading" and "writing" attributes for a specifical sharing for a group |
void |
updateReadAndWriteAndShareSpaceOthers(Space currentSpace,
java.util.Vector others)
Update the "reading" and "writing" attributes for a specifical sharing for an other principal |
void |
updateReadAndWriteAndShareSpaceUsers(Space currentSpace,
java.util.Vector users)
Update the "reading" and "writing" attributes for a specifical sharing for a user |
void |
updateXmlServerAvailableSpace(Space sharedSpace)
Update the label of the sharing properties into the database for users |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ADMINISTRATED_SERVER
Constructor Detail |
public SharingTool() throws PropertiesException
PropertiesException
Method Detail |
public java.lang.Object[] getTargetsOfAvailableSpaceFromAcl(Space currentSpace, java.lang.String serverUrl) throws DataBaseException, PropertiesException, ServerException, AclReadException, AclAccessException, AclWriteException, NotSupportedAclException
serverUrl
- the url of the server
DataBaseException
PropertiesException
ServerException
AclReadException
AclAccessException
AclWriteException
NotSupportedAclException
public UserForPersonalization getSpaceOwnerInMetadata(Space space) throws PropertiesException, ServerException
PropertiesException
ServerException
public void addStorageAvailableSpace(Space currentSpace, Space sharedSpace, java.lang.String serverUrl, java.lang.String fromKey, java.lang.String path, java.util.Vector users, java.util.Vector groups, java.util.Vector others) throws DataBaseException, AclAccessException, AclWriteException, AclReadException, NotSupportedAclException, PropertiesException
currentSpace
- the current space we are usingsharedSpace
- the space we are sharingserverUrl
- the url of the serverfromKey
- the key of the people who sharespath
- the resource pathusers
- the target usersgroups
- the target groups
DataBaseException
AclAccessException
AclWriteException
AclReadException
NotSupportedAclException
PropertiesException
public void delStorageAvailableSpaceForUsers(Space currentSpace, java.util.Vector users, java.lang.String serverId) throws DataBaseException, AclAccessException, AclWriteException, AclReadException, NotSupportedAclException, PropertiesException
currentSpace
- the current spaceusers
- we want to delete preferencesserverId
- the id of the server
DataBaseException
AclAccessException
AclWriteException
AclReadException
NotSupportedAclException
PropertiesException
public void delStorageAvailableSpaceForGroups(Space currentSpace, java.util.Vector groups, java.lang.String serverId) throws DataBaseException, AclAccessException, AclWriteException, AclReadException, NotSupportedAclException, PropertiesException
currentSpace
- the current spacegroups
- the groups we want to delete sharingserverId
- the id of the server
DataBaseException
AclAccessException
AclWriteException
AclReadException
NotSupportedAclException
PropertiesException
public void delStorageAvailableSpaceForOthers(Space currentSpace, java.util.Vector others, java.lang.String serverId) throws DataBaseException, AclAccessException, AclWriteException, AclReadException, NotSupportedAclException, PropertiesException
currentSpace
- the current spaceothers
- the others we want to delete sharingserverId
- the id of the server
DataBaseException
AclAccessException
AclWriteException
AclReadException
NotSupportedAclException
PropertiesException
public void updateReadAndWriteAndShareSpaceUsers(Space currentSpace, java.util.Vector users) throws DataBaseException, AclAccessException, AclWriteException, AclReadException, NotSupportedAclException, PropertiesException
currentSpace
- the current spaceusers
- the target users
DataBaseException
AclAccessException
AclWriteException
AclReadException
NotSupportedAclException
PropertiesException
public void updateReadAndWriteAndShareSpaceGroups(Space currentSpace, java.util.Vector groups) throws DataBaseException, AclAccessException, AclWriteException, AclReadException, NotSupportedAclException, PropertiesException
currentSpace
- the current spacegroups
- the target groups
DataBaseException
AclAccessException
AclWriteException
AclReadException
NotSupportedAclException
PropertiesException
public void updateReadAndWriteAndShareSpaceOthers(Space currentSpace, java.util.Vector others) throws DataBaseException, AclAccessException, AclWriteException, AclReadException, NotSupportedAclException, PropertiesException
currentSpace
- the current spaceothers
- the target others
DataBaseException
AclAccessException
AclWriteException
AclReadException
NotSupportedAclException
PropertiesException
public void updateXmlServerAvailableSpace(Space sharedSpace) throws DataBaseException
sharedSpace
- the space we are sharing
DataBaseException
public void delStorageAvailableSpaceForSpecifiedPath(java.lang.String url, java.lang.String path) throws DataBaseException
url
- the url of the spacepath
- the path of the space
DataBaseException
public void deleteAllPrivileges(Space currentSpace, java.lang.String serverId, java.lang.String spaceId) throws DataBaseException, NotSupportedAclException, PropertiesException, AclAccessException, AclWriteException, AclReadException
currentSpace
- the current spaceserverId
- the id of the serverspaceId
- the id of the space used here
DataBaseException
NotSupportedAclException
PropertiesException
AclAccessException
AclWriteException
AclReadException
public void updatePathOfSharing(java.lang.String url, java.lang.String oldPath, java.lang.String newPath) throws DataBaseException
url
- the url of the spaceoldPath
- the old path of the spacenewPath
- the new path of the space
DataBaseException
public void setInheritance(Space currentSpace, boolean inheritance) throws AclAccessException, AclWriteException, AclReadException, NotSupportedAclException, PropertiesException
currentSpace
- the current spaceinheritance
- the inheritance in this directory
AclAccessException
AclWriteException
AclReadException
NotSupportedAclException
PropertiesException
public void setPublic(Space currentSpace, boolean publicDirectory, Space sharedSpace) throws DataBaseException, AclAccessException, AclWriteException, AclReadException, NotSupportedAclException, PropertiesException
currentSpace
- the current spacepublicDirectory
- if this directory is public or not
AclAccessException
AclWriteException
AclReadException
NotSupportedAclException
PropertiesException
DataBaseException
|
CStockage 4.2_beta-RC-1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |