Author: jvelociter Date: 2007-11-23 22:58:42 +0100 (Fri, 23 Nov 2007) New Revision: 6056
Added: xwiki-sandbox/plugins/spacemanager/ xwiki-sandbox/plugins/spacemanager/pom.xml xwiki-sandbox/plugins/spacemanager/src/ xwiki-sandbox/plugins/spacemanager/src/main/ xwiki-sandbox/plugins/spacemanager/src/main/java/ xwiki-sandbox/plugins/spacemanager/src/main/java/org/ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/AbstractSpaceFactory.java xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManager.java xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManagerException.java xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManagerPlugin.java xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManagerPluginApi.java xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/XWikiSpace.java xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/api/ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/api/XWikiSpace.java xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/DefaultXWikiSpaceFactory.java xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/XWikiSpace.java Log: Space Manager first import. Defines a xwiki space interface Added: xwiki-sandbox/plugins/spacemanager/pom.xml =================================================================== --- xwiki-sandbox/plugins/spacemanager/pom.xml (rev 0) +++ xwiki-sandbox/plugins/spacemanager/pom.xml 2007-11-23 21:58:42 UTC (rev 6056) @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + * +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>com.xpn.xwiki.platform.plugins</groupId> + <artifactId>xwiki-plugins</artifactId> + <version>2-SNAPSHOT</version> + </parent> + <artifactId>xwiki-plugin-space-manager</artifactId> + <version>1.1-SNAPSHOT</version> + <name>XWiki Platform - Plugins - Space Manager</name> + <packaging>jar</packaging> + <description>XWiki Platform - Plugins - Space Manager</description> + <dependencies> + <dependency> + <groupId>com.xpn.xwiki.platform</groupId> + <artifactId>xwiki-core</artifactId> + <version>1.1-SNAPSHOT</version> + </dependency> + </dependencies> +</project> Added: xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/AbstractSpaceFactory.java =================================================================== --- xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/AbstractSpaceFactory.java (rev 0) +++ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/AbstractSpaceFactory.java 2007-11-23 21:58:42 UTC (rev 6056) @@ -0,0 +1,65 @@ +/** + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * <p/> + * This is free software;you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation;either version2.1of + * the License,or(at your option)any later version. + * <p/> + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY;without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU + * Lesser General Public License for more details. + * <p/> + * You should have received a copy of the GNU Lesser General Public + * License along with this software;if not,write to the Free + * Software Foundation,Inc.,51 Franklin St,Fifth Floor,Boston,MA + * 02110-1301 USA,or see the FSF site:http://www.fsf.org. + */ +package org.xwiki.plugin.spacemanager; + +import org.xwiki.plugin.spacemanager.impl.DefaultXWikiSpaceFactory; +import com.xpn.xwiki.XWikiContext; + +public abstract class AbstractSpaceFactory +{ + private static String DEFAULT_FACTORY = DefaultXWikiSpaceFactory.class.getName(); + + public static AbstractSpaceFactory getFactory(XWikiContext context) + throws SpaceManagerException + { + AbstractSpaceFactory factory; + String factoryName = context.getWiki() + .Param("xwiki.space.factory", DEFAULT_FACTORY); + try{ + factory = (AbstractSpaceFactory) Class.forName(factoryName).newInstance(); + } + catch(Exception e){ + if(!factoryName.equals(DEFAULT_FACTORY)) + { + // if the loading of a custom factory failed + // we try to load the default one + try + { + //TODO log that are loading the default factory after first failure + factory = (AbstractSpaceFactory) Class.forName(DEFAULT_FACTORY).newInstance(); + } + catch(Exception ex) + { + //TODO feed exception + //TODO log error + throw new SpaceManagerException(); + } + } + //TODO feed exception + //TODO log error + throw new SpaceManagerException(); + } + return factory; + } + + public abstract XWikiSpace getSpace(String spaceName, XWikiContext context); + + public abstract XWikiSpace createNewSpace(String spaceName, XWikiContext context); +} Added: xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManager.java =================================================================== --- xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManager.java (rev 0) +++ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManager.java 2007-11-23 21:58:42 UTC (rev 6056) @@ -0,0 +1,52 @@ +/** + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * <p/> + * This is free software;you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation;either version2.1of + * the License,or(at your option)any later version. + * <p/> + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY;without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU + * Lesser General Public License for more details. + * <p/> + * You should have received a copy of the GNU Lesser General Public + * License along with this software;if not,write to the Free + * Software Foundation,Inc.,51 Franklin St,Fifth Floor,Boston,MA + * 02110-1301 USA,or see the FSF site:http://www.fsf.org. + */ +package org.xwiki.plugin.spacemanager; + +import com.xpn.xwiki.XWikiContext; + +/** + * Manages spaces + */ +public class SpaceManager +{ + private static SpaceManager instance = new SpaceManager(); + + private SpaceManager() + { + } + + public static SpaceManager getInstance() + { + return instance; + } + + public void registerNewSpace(String spaceName, String spaceDescription, XWikiContext context) + throws SpaceManagerException + { + AbstractSpaceFactory.getFactory(context).createNewSpace(spaceName, context); + } + + public XWikiSpace getSpace(String spaceName, XWikiContext context) + throws SpaceManagerException + { + return AbstractSpaceFactory.getFactory(context).getSpace(spaceName, context); + } + +} Added: xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManagerException.java =================================================================== --- xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManagerException.java (rev 0) +++ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManagerException.java 2007-11-23 21:58:42 UTC (rev 6056) @@ -0,0 +1,26 @@ +/** + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * <p/> + * This is free software;you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation;either version2.1of + * the License,or(at your option)any later version. + * <p/> + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY;without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU + * Lesser General Public License for more details. + * <p/> + * You should have received a copy of the GNU Lesser General Public + * License along with this software;if not,write to the Free + * Software Foundation,Inc.,51 Franklin St,Fifth Floor,Boston,MA + * 02110-1301 USA,or see the FSF site:http://www.fsf.org. + */ +package org.xwiki.plugin.spacemanager; + +import com.xpn.xwiki.plugin.PluginException; + +public class SpaceManagerException extends PluginException +{ +} Added: xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManagerPlugin.java =================================================================== --- xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManagerPlugin.java (rev 0) +++ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManagerPlugin.java 2007-11-23 21:58:42 UTC (rev 6056) @@ -0,0 +1,37 @@ +/** + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * <p/> + * This is free software;you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation;either version2.1of + * the License,or(at your option)any later version. + * <p/> + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY;without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU + * Lesser General Public License for more details. + * <p/> + * You should have received a copy of the GNU Lesser General Public + * License along with this software;if not,write to the Free + * Software Foundation,Inc.,51 Franklin St,Fifth Floor,Boston,MA + * 02110-1301 USA,or see the FSF site:http://www.fsf.org. + */ +package org.xwiki.plugin.spacemanager; + +import com.xpn.xwiki.XWikiContext; +import com.xpn.xwiki.plugin.XWikiDefaultPlugin; + +public class SpaceManagerPlugin extends XWikiDefaultPlugin { + + public SpaceManagerPlugin(String name, String className, XWikiContext context) + { + super(name, className, context); + } + + public String getName() + { + return new String("spacemanager"); + } + +} Added: xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManagerPluginApi.java =================================================================== --- xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManagerPluginApi.java (rev 0) +++ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/SpaceManagerPluginApi.java 2007-11-23 21:58:42 UTC (rev 6056) @@ -0,0 +1,60 @@ +/** + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * <p/> + * This is free software;you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation;either version2.1of + * the License,or(at your option)any later version. + * <p/> + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY;without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU + * Lesser General Public License for more details. + * <p/> + * You should have received a copy of the GNU Lesser General Public + * License along with this software;if not,write to the Free + * Software Foundation,Inc.,51 Franklin St,Fifth Floor,Boston,MA + * 02110-1301 USA,or see the FSF site:http://www.fsf.org. + */ +package org.xwiki.plugin.spacemanager; + +import com.xpn.xwiki.XWikiContext; +import com.xpn.xwiki.plugin.PluginApi; +import com.xpn.xwiki.plugin.XWikiPluginInterface; + +/** + * Api for creating and retrieving Spaces + */ +public class SpaceManagerPluginApi extends PluginApi +{ + + public SpaceManagerPluginApi(SpaceManagerPlugin plugin, XWikiContext context) + { + super(plugin, context); + } + + /** + * @return the XWiki Space associated with the context web + */ + public org.xwiki.plugin.spacemanager.api.XWikiSpace getSpace() + { + return getSpace(context.getDoc().getSpace()); + } + + public org.xwiki.plugin.spacemanager.api.XWikiSpace getSpace(String spaceName) + { + try + { + XWikiSpace space = + SpaceManager.getInstance().getSpace(spaceName, context); + return new org.xwiki.plugin.spacemanager.api.XWikiSpace(space, context); + } + catch (SpaceManagerException e) + { + context.put("errormsg", e.getMessage()); + return null; + } + } + +} Added: xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/XWikiSpace.java =================================================================== --- xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/XWikiSpace.java (rev 0) +++ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/XWikiSpace.java 2007-11-23 21:58:42 UTC (rev 6056) @@ -0,0 +1,121 @@ +/** + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * <p/> + * This is free software;you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation;either version2.1of + * the License,or(at your option)any later version. + * <p/> + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY;without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU + * Lesser General Public License for more details. + * <p/> + * You should have received a copy of the GNU Lesser General Public + * License along with this software;if not,write to the Free + * Software Foundation,Inc.,51 Franklin St,Fifth Floor,Boston,MA + * 02110-1301 USA,or see the FSF site:http://www.fsf.org. + */ +package org.xwiki.plugin.spacemanager; + +import java.util.List; + +import com.xpn.xwiki.XWikiContext; +import com.xpn.xwiki.api.Api; + +/** + * Api offered by a wiki space + */ +public interface XWikiSpace +{ + String getCreator(XWikiContext context); + + String getPrettyName(XWikiContext context); + + String getDescription(XWikiContext context); + + List getLastModifiedDocuments(XWikiContext context); + + List searchDocuments(String hql, XWikiContext context); + + String getPreference(String prefName, XWikiContext context); + + String getURL(XWikiContext context); + + void addAdmin(String wikiname, XWikiContext context); + + void addAdmins(List wikinames, XWikiContext context); + + /** + * @return the list of all members of the space that are admins + */ + List getAdmins(XWikiContext context); + + /** + * Context user membership request against the space. + * Register the request in the database, and possibly notify space admins of the request + */ + void requestMembership(XWikiContext context); + + /** + * If the context user belongs to space admins, returns the list of membership requests + * that has not been processed (accepted/refused) yet. + * If not, returns an empty list, and log a warning in the context + */ + List getPendingMembershipRequests(XWikiContext context); + + /** + * Accept a pending membership request. + * Actually add the user to the space group, update the membership request object, + * and notify the concerned user with an email based on the space default template email + * for membership acceptance. + * The default mail could be stored has a WebPreferences property, possibly empty (then, the + * wiki preference would be used) + * If the context user is not an admin of the space, does nothing and log a warning in the context + */ + void acceptMembership(String userName, XWikiContext context); + + /** + * Accept a pending membership (@see [EMAIL PROTECTED] #acceptMembership(String)}) using a custom email template + * Which can differ from the space/wiki default one. + * If the context user is not an admin of the space, does nothing and log a warning in the context + */ + void acceptMembership(String userName, String templateMail, XWikiContext context); + + /** + * Reject a pending membership request + * Update the membership request object, and notify the concerned user with an email based on the space + * default template for membership rejections. + * The default mail could be stored has a XWikiPreferences property, possibly empty (then, the + * wiki preference would be used) + * If the context user is not an admin of the space, does nothing and log a warning in the context + */ + void rejectMembership(String userName, XWikiContext context); + + /** + * Reject a pending membership request (@see [EMAIL PROTECTED] #rejectMembership(String)}) using a custom email + * template, which can differ from the space/wiki default one. + * If the context user is not an admin of the space, does nothing and log a warning in the context + */ + void rejectMembership(String userName, String templateMail, XWikiContext context); + + /** + * Invite a user of the wiki to join the space. + * Creates an invitation object, filled with the wikiname of the invited user. + * Sends a invitation mail, using the default template mail for invitations. The default mail + * to be used could be stored as a XWikiPreferences property. + * If the context user is not an admin of the space, does nothing and log a warning in the context + */ + void inviteUser(String userName, XWikiContext context); + + /** + * Invite a user of the wiki to join the space (@see [EMAIL PROTECTED] #inviteUser(String)}) using a custom + * email template. + */ + void inviteUser(String userName, String templateMail, XWikiContext context); + + void inviteEmail(String email, XWikiContext context); + + void inviteEmail(String email, String templateMail, XWikiContext context); +} \ No newline at end of file Added: xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/api/XWikiSpace.java =================================================================== --- xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/api/XWikiSpace.java (rev 0) +++ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/api/XWikiSpace.java 2007-11-23 21:58:42 UTC (rev 6056) @@ -0,0 +1,67 @@ +/** + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * <p/> + * This is free software;you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation;either version2.1of + * the License,or(at your option)any later version. + * <p/> + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY;without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU + * Lesser General Public License for more details. + * <p/> + * You should have received a copy of the GNU Lesser General Public + * License along with this software;if not,write to the Free + * Software Foundation,Inc.,51 Franklin St,Fifth Floor,Boston,MA + * 02110-1301 USA,or see the FSF site:http://www.fsf.org. + */ +package org.xwiki.plugin.spacemanager.api; + +import java.util.List; + +import org.xwiki.plugin.spacemanager.SpaceManagerException; + +import com.xpn.xwiki.XWikiContext; +import com.xpn.xwiki.api.Api; + +/** + * Api Wrapper around the [EMAIL PROTECTED] org.xwiki.plugin.spacemanager.XWikiSpace} interface, to be exposed to end users. + */ +public class XWikiSpace extends Api +{ + protected org.xwiki.plugin.spacemanager.XWikiSpace space; + + public XWikiSpace(org.xwiki.plugin.spacemanager.XWikiSpace space, XWikiContext context) + { + super(context); + this.space = space; + } + + public boolean requestMembership() + { + try{ + space.requestMembership(context); + return true; + } + catch (Exception e){ + context.put("errormsg", e.getMessage()); + return false; + } + + } + + public void acceptMembership(String userName, String templateMail) + { + // TODO + } + + public List getPendingMembershipRequests() + { + // TODO + return null; + } + + /* etc... */ +} Added: xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/DefaultXWikiSpaceFactory.java =================================================================== --- xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/DefaultXWikiSpaceFactory.java (rev 0) +++ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/DefaultXWikiSpaceFactory.java 2007-11-23 21:58:42 UTC (rev 6056) @@ -0,0 +1,42 @@ +/** + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * <p/> + * This is free software;you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation;either version2.1of + * the License,or(at your option)any later version. + * <p/> + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY;without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU + * Lesser General Public License for more details. + * <p/> + * You should have received a copy of the GNU Lesser General Public + * License along with this software;if not,write to the Free + * Software Foundation,Inc.,51 Franklin St,Fifth Floor,Boston,MA + * 02110-1301 USA,or see the FSF site:http://www.fsf.org. + */ +package org.xwiki.plugin.spacemanager.impl; + +import org.xwiki.plugin.spacemanager.AbstractSpaceFactory; +import org.xwiki.plugin.spacemanager.XWikiSpace; + +import com.xpn.xwiki.XWikiContext; + +public class DefaultXWikiSpaceFactory extends AbstractSpaceFactory +{ + + public XWikiSpace createNewSpace(String spaceName, XWikiContext context) + { + // TODO Auto-generated method stub + return null; + } + + public XWikiSpace getSpace(String spaceName, XWikiContext context) + { + // TODO Auto-generated method stub + return null; + } + +} Added: xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/XWikiSpace.java =================================================================== --- xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/XWikiSpace.java (rev 0) +++ xwiki-sandbox/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/XWikiSpace.java 2007-11-23 21:58:42 UTC (rev 6056) @@ -0,0 +1,153 @@ +/** + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * <p/> + * This is free software;you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation;either version2.1of + * the License,or(at your option)any later version. + * <p/> + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY;without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU + * Lesser General Public License for more details. + * <p/> + * You should have received a copy of the GNU Lesser General Public + * License along with this software;if not,write to the Free + * Software Foundation,Inc.,51 Franklin St,Fifth Floor,Boston,MA + * 02110-1301 USA,or see the FSF site:http://www.fsf.org. + */ +package org.xwiki.plugin.spacemanager.impl; + +import java.util.List; + +import com.xpn.xwiki.XWikiContext; +import com.xpn.xwiki.api.Api; + +/** + * Implementing class + */ +public class XWikiSpace implements org.xwiki.plugin.spacemanager.XWikiSpace +{ + + public void acceptMembership(String userName, XWikiContext context) + { + // TODO Auto-generated method stub + + } + + public void acceptMembership(String userName, String templateMail, XWikiContext context) + { + // TODO Auto-generated method stub + + } + + public void addAdmin(String wikiname, XWikiContext context) + { + // TODO Auto-generated method stub + + } + + public void addAdmins(List wikinames, XWikiContext context) + { + // TODO Auto-generated method stub + + } + + public List getAdmins(XWikiContext context) + { + // TODO Auto-generated method stub + return null; + } + + public String getCreator(XWikiContext context) + { + // TODO Auto-generated method stub + return null; + } + + public String getDescription(XWikiContext context) + { + // TODO Auto-generated method stub + return null; + } + + public List getLastModifiedDocuments(XWikiContext context) + { + // TODO Auto-generated method stub + return null; + } + + public List getPendingMembershipRequests(XWikiContext context) + { + // TODO Auto-generated method stub + return null; + } + + public String getPreference(String prefName, XWikiContext context) + { + // TODO Auto-generated method stub + return null; + } + + public String getPrettyName(XWikiContext context) + { + // TODO Auto-generated method stub + return null; + } + + public String getURL(XWikiContext context) + { + // TODO Auto-generated method stub + return null; + } + + public void inviteEmail(String email, XWikiContext context) + { + // TODO Auto-generated method stub + + } + + public void inviteEmail(String email, String templateMail, XWikiContext context) + { + // TODO Auto-generated method stub + + } + + public void inviteUser(String userName, XWikiContext context) + { + // TODO Auto-generated method stub + + } + + public void inviteUser(String userName, String templateMail, XWikiContext context) + { + // TODO Auto-generated method stub + + } + + public void rejectMembership(String userName, XWikiContext context) + { + // TODO Auto-generated method stub + + } + + public void rejectMembership(String userName, String templateMail, XWikiContext context) + { + // TODO Auto-generated method stub + + } + + public void requestMembership(XWikiContext context) + { + // TODO Auto-generated method stub + + } + + public List searchDocuments(String hql, XWikiContext context) + { + // TODO Auto-generated method stub + return null; + } + +} _______________________________________________ notifications mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/notifications
