za.org.coefficient.modules.user
Class MemberAdmin
java.lang.Object
za.org.coefficient.modules.BaseModule
za.org.coefficient.modules.BaseProjectModule
za.org.coefficient.modules.user.MemberAdmin
- All Implemented Interfaces:
- CoefficientEventPublisher, ModuleLocal
public class MemberAdmin
- extends BaseProjectModule
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MEMBER_PAGER
private static final java.lang.String MEMBER_PAGER
- See Also:
- Constant Field Values
MemberAdmin
public MemberAdmin()
getMainMethod
public java.lang.String getMainMethod()
- Description copied from interface:
ModuleLocal
- This method is used to determine which method should be invoked when
the module is requested without an operation.
- Specified by:
getMainMethod
in interface ModuleLocal
- Specified by:
getMainMethod
in class BaseModule
- Returns:
- name of the method that should be invoked
getModuleDescription
public java.lang.String getModuleDescription()
- Description copied from interface:
ModuleLocal
- This method is used to find the description of the module
- Specified by:
getModuleDescription
in interface ModuleLocal
- Specified by:
getModuleDescription
in class BaseModule
- Returns:
- the description of the module
getModuleDisplayName
public java.lang.String getModuleDisplayName()
- Description copied from interface:
ModuleLocal
- This method is used to find the display name of the module
- Specified by:
getModuleDisplayName
in interface ModuleLocal
- Specified by:
getModuleDisplayName
in class BaseModule
- Returns:
- the display name of the module
addMember
public CoefficientContext addMember(CoefficientContext ctx)
throws net.sf.hibernate.HibernateException
- Throws:
net.sf.hibernate.HibernateException
canExecuteForRole
public java.lang.String canExecuteForRole(CoefficientContext ctx,
java.lang.String methodName,
Role usersHighestRole)
- Description copied from class:
BaseModule
- This is a base implementation that will allow all methods to be
invoked without regard to roles
- Specified by:
canExecuteForRole
in interface ModuleLocal
- Overrides:
canExecuteForRole
in class BaseModule
- Returns:
- null if we can execute the method an error message if not
changeMemberRole
public CoefficientContext changeMemberRole(CoefficientContext ctx)
throws net.sf.hibernate.HibernateException
- Throws:
net.sf.hibernate.HibernateException
deleteAllForProject
public CoefficientContext deleteAllForProject(CoefficientContext ctx)
- Specified by:
deleteAllForProject
in class BaseProjectModule
editMembers
public CoefficientContext editMembers(CoefficientContext ctx)
memberSelect
public CoefficientContext memberSelect(CoefficientContext ctx)
throws java.lang.Exception
- Throws:
java.lang.Exception
removeMember
public CoefficientContext removeMember(CoefficientContext ctx)
throws net.sf.hibernate.HibernateException
- Throws:
net.sf.hibernate.HibernateException
removeAllProjectMembershipFor
public void removeAllProjectMembershipFor(CoefficientUser user)
throws net.sf.hibernate.HibernateException
- Throws:
net.sf.hibernate.HibernateException
leaveProject
public CoefficientContext leaveProject(CoefficientContext ctx)
throws net.sf.hibernate.HibernateException
- Throws:
net.sf.hibernate.HibernateException
requestMembership
public CoefficientContext requestMembership(CoefficientContext ctx)
throws net.sf.hibernate.HibernateException
- Throws:
net.sf.hibernate.HibernateException
acceptMembership
public CoefficientContext acceptMembership(CoefficientContext ctx)
rejectMembership
public CoefficientContext rejectMembership(CoefficientContext ctx)
viewMembers
public java.lang.String viewMembers(CoefficientContext ctx)
displayMembers
public CoefficientContext displayMembers(CoefficientContext ctx)
Copyright CSIR. All Rights Reserved.