AnsweredAssumed Answered

Using Authority.ftl

Question asked by malikaasen on Nov 16, 2018
Latest reply on Nov 21, 2018 by malikaasen

I am trying to use authority.ftl to select a group that is going to be used in an action for editing group roles. How do i write the java action so that there are no erros? Tried this

protected void addParameterDefinitions(List<ParameterDefinition> list) {
    list.add(new ParameterDefinitionImpl(
X, DataTypeDefinition.TEXT, true,getParamDisplayLabel(X)));

}

But i got the error that the types were different, think it was field.endpointtype. What is this, and how do i get it in the addParameterDefinitions, what type does the authority.ftl return, a string? I assume that you can use AuthorityService afterwards to get the group name or something similar.

 

Thanks in advance for the help.

Outcomes