[Building Sakai] permission creation in spring archetype
Aatish Thakre
athakre at platys.in
Thu Mar 15 00:41:57 PDT 2012
Hi Mike
i am creating spring web-mvc project I am fails to register the
permission because the FunctionManager service is not injected
MyclassImpl class is
public class MyExternalLogicImpl implements MyExternalLogic {
private static Log log = LogFactory.getLog(MyExternalLogicImpl.class);
private FunctionManager functionManager;
public void setFunctionManager(FunctionManager functionManager) {
this.functionManager = functionManager;
}
public void init() {
log.debug("init");
// register Sakai permissions for this tool
log.info("You are n project MylogicImpl Impl");
functionManager.registerFunction(ITEM_READ);
}
}
And component xml is
<bean id="org.sakaiproject.logic.MyExternalLogic"
class="org.sakaiproject.logic.MyExternalLogicImpl"
init-method="init">
<!-- API injection -->
<property name="functionManager"
ref="org.sakaiproject.authz.api.FunctionManager" />
</bean>
please help me
--
Thanks/Regards
Aatish Thakre
More information about the sakai-dev
mailing list