|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.esupportail.portal.channels.CWebdav.channelAction.injac.metadata.InjacSpaceManagementProperties
Id: InjacSpaceManagementProperties.java,v 1.0 7 oct. 2004 Copyright (c) 2004 Esup Portail (www.esup-portail.org) Classes: InjacSpaceManagementProperties Original Author: Yohan Colmant Class used to manage an injac space
Field Summary | |
private java.util.Vector |
addedReaderGroups
the reader groups we want to add |
private java.util.Vector |
addedReaderUsers
the reader users we want to add |
private java.util.ArrayList |
availableMetadataProfiles
Available metadata profiles for this space |
private java.util.ArrayList |
availableRenderingTypes
Available rendering types for this space |
private java.util.Vector |
deletedReaderGroups
the reader groups we want to delete |
private java.util.Vector |
deletedReaderUsers
the reader users we want to delete |
private java.lang.String |
description
This space description |
private java.util.Vector |
editorGroups
The editor groups |
private java.util.Vector |
editorUsers
The editor users |
protected static org.apache.commons.logging.Log |
log
Logger object |
private java.util.Vector |
managerGroups
The manager groups |
private java.util.Vector |
managerUsers
The manager users |
private boolean |
publicReading
If this space is public |
private java.util.Vector |
readerGroups
The groups of readers |
private java.util.Vector |
readerUsers
The users reader |
private org.esupportail.portal.utils.webdav.acl.EsupPermissions |
readingPermission
The acl permissions for the readers |
private java.lang.String |
selectedMetadataProfile
The selected metadata profile key |
private java.lang.String |
selectedRenderingType
The selected rendering type key |
private java.util.Vector |
writerGroups
The writer groups |
private java.util.Vector |
writerUsers
The writer users |
Constructor Summary | |
InjacSpaceManagementProperties(java.lang.String selectedMetadataProfile,
java.lang.String selectedRenderingType,
java.lang.String description,
boolean publicReading,
org.esupportail.portal.utils.webdav.acl.EsupPermissions readingPermission,
java.util.Vector readerGroups,
java.util.Vector readerUsers,
java.util.Vector writerGroups,
java.util.Vector writerUsers,
java.util.Vector editorGroups,
java.util.Vector editorUsers,
java.util.Vector managerGroups,
java.util.Vector managerUsers)
Constructor |
Method Summary | |
java.util.Vector |
getAddedReaderGroups()
|
java.util.Vector |
getAddedReaderUsers()
|
java.util.ArrayList |
getAvailableMetadataProfiles()
|
java.util.ArrayList |
getAvailableRenderingTypes()
|
java.util.Vector |
getDeletedReaderGroups()
|
java.util.Vector |
getDeletedReaderUsers()
|
java.lang.String |
getDescription()
|
java.util.Vector |
getEditorGroups()
|
java.util.Vector |
getEditorUsers()
|
java.util.Vector |
getManagerGroups()
|
java.util.Vector |
getManagerUsers()
|
java.lang.String |
getMetadataDescription()
Return in the good format the MD description |
java.lang.String |
getMetadataEditorsOnSpace()
Return in the good format the MD : list of editors on the space |
java.lang.String |
getMetadataManagersOnSpace()
Return in the good format the MD : list of managers on the space |
java.lang.String |
getMetadataProfile()
Return in the good format the list of MD that the user have to set |
java.lang.String |
getMetadataReadersOnSpace()
Return in the good format the MD : list of readers on the space |
java.lang.String |
getMetadataWritersOnSpace()
Return in the good format the MD : list of writers on the space |
static InjacSpaceManagementProperties |
getProperties(ChannelConfiguration config,
Space currentSpace,
java.lang.String path)
Get the properties sets on a space |
java.util.Vector |
getReaderGroups()
|
java.util.Vector |
getReaderUsers()
|
org.esupportail.portal.utils.webdav.acl.EsupPermissions |
getReadingPermission()
|
private java.lang.StringBuffer |
getRoleOnSpace(java.util.Vector users,
java.util.Vector groups,
java.lang.String type)
Return the list of roles in the good format |
java.lang.String |
getSelectedMetadataProfile()
|
java.lang.String |
getSelectedRenderingType()
|
java.util.Vector |
getWriterGroups()
|
java.util.Vector |
getWriterUsers()
|
boolean |
isPublicReading()
|
static boolean |
isUserEditor(java.lang.String login,
java.util.Vector userGroups,
ServerAccess access,
java.lang.String path)
Check if a user is editor on a space |
static boolean |
isUserManager(java.lang.String login,
java.util.Vector userGroups,
ServerAccess access,
java.lang.String path)
Check if a user is manager on a space |
static boolean |
isUserWriter(java.lang.String login,
java.util.Vector userGroups,
ServerAccess access,
java.lang.String path)
Check if a user is writer on a space |
void |
setDescription(java.lang.String description)
|
void |
setPublicReading(boolean publicReading)
|
void |
setReadingPermission(org.esupportail.portal.utils.webdav.acl.EsupPermissions readingPermission)
|
void |
setSelectedMetadataProfile(java.lang.String selectedMetadataProfile)
|
void |
setSelectedRenderingType(java.lang.String selectedRenderingType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.apache.commons.logging.Log log
private java.util.ArrayList availableMetadataProfiles
private java.lang.String selectedMetadataProfile
private java.util.ArrayList availableRenderingTypes
private java.lang.String selectedRenderingType
private java.lang.String description
private java.util.Vector readerGroups
private java.util.Vector readerUsers
private java.util.Vector addedReaderUsers
private java.util.Vector addedReaderGroups
private java.util.Vector deletedReaderUsers
private java.util.Vector deletedReaderGroups
private boolean publicReading
private org.esupportail.portal.utils.webdav.acl.EsupPermissions readingPermission
private java.util.Vector writerGroups
private java.util.Vector writerUsers
private java.util.Vector editorGroups
private java.util.Vector editorUsers
private java.util.Vector managerGroups
private java.util.Vector managerUsers
Constructor Detail |
public InjacSpaceManagementProperties(java.lang.String selectedMetadataProfile, java.lang.String selectedRenderingType, java.lang.String description, boolean publicReading, org.esupportail.portal.utils.webdav.acl.EsupPermissions readingPermission, java.util.Vector readerGroups, java.util.Vector readerUsers, java.util.Vector writerGroups, java.util.Vector writerUsers, java.util.Vector editorGroups, java.util.Vector editorUsers, java.util.Vector managerGroups, java.util.Vector managerUsers) throws PropertiesException
selectedMetadataProfile
- The selected metadata profile keyselectedRenderingType
- The selected rendering type keydescription
- the space descriptionpublicReading
- is the space is publicreadingPermission
- the acl permission of readingreaderGroups
- the reader groupsreaderUsers
- the reader userswriterGroups
- the writer groupswriterUsers
- the writer userseditorGroups
- the editor groupseditorUsers
- the editor usersmanagerGroups
- the manager groupsmanagerUsers
- the manager users
PropertiesException
Method Detail |
public org.esupportail.portal.utils.webdav.acl.EsupPermissions getReadingPermission()
public void setReadingPermission(org.esupportail.portal.utils.webdav.acl.EsupPermissions readingPermission)
readingPermission
- The readingPermission to set.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description to set.public boolean isPublicReading()
public void setPublicReading(boolean publicReading)
publicReading
- The publicReading to set.public java.util.Vector getReaderGroups()
public java.util.Vector getReaderUsers()
public java.util.Vector getDeletedReaderGroups()
public java.util.Vector getDeletedReaderUsers()
public java.util.Vector getAddedReaderGroups()
public java.util.Vector getAddedReaderUsers()
public java.util.Vector getEditorGroups()
public java.util.Vector getEditorUsers()
public java.util.Vector getManagerGroups()
public java.util.Vector getManagerUsers()
public java.util.Vector getWriterGroups()
public java.util.Vector getWriterUsers()
public java.lang.String getSelectedMetadataProfile()
public void setSelectedMetadataProfile(java.lang.String selectedMetadataProfile)
selectedMetadataProfile
- The selectedMetadataProfile to set.public java.util.ArrayList getAvailableMetadataProfiles()
public java.lang.String getSelectedRenderingType()
public void setSelectedRenderingType(java.lang.String selectedRenderingType)
selectedRenderingType
- The selectedRenderingType to set.public java.util.ArrayList getAvailableRenderingTypes()
public java.lang.String getMetadataDescription()
public java.lang.String getMetadataProfile() throws ApplicationException, PropertiesException
ApplicationException
PropertiesException
public java.lang.String getMetadataReadersOnSpace()
public java.lang.String getMetadataWritersOnSpace()
public java.lang.String getMetadataEditorsOnSpace()
public java.lang.String getMetadataManagersOnSpace()
private java.lang.StringBuffer getRoleOnSpace(java.util.Vector users, java.util.Vector groups, java.lang.String type)
users
- the list of usersgroups
- the list of groupstype
- the type of role: manager, writer, ...
public static InjacSpaceManagementProperties getProperties(ChannelConfiguration config, Space currentSpace, java.lang.String path) throws ChannelException
config
- the channel configuration file access objectcurrentSpace
- the current spacepath
- the resource path
ChannelException
public static boolean isUserManager(java.lang.String login, java.util.Vector userGroups, ServerAccess access, java.lang.String path) throws ServerException
login
- the user loginuserGroups
- the groups of the useraccess
- the server access objectpath
- the resource path
ServerException
public static boolean isUserWriter(java.lang.String login, java.util.Vector userGroups, ServerAccess access, java.lang.String path) throws ServerException
login
- the user loginuserGroups
- the groups of the useraccess
- the server access objectpath
- the resource path
ServerException
public static boolean isUserEditor(java.lang.String login, java.util.Vector userGroups, ServerAccess access, java.lang.String path) throws ServerException
login
- the user loginuserGroups
- the groups of the useraccess
- the server access objectpath
- the resource path
ServerException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |