cancel
Showing results for 
Search instead for 
Did you mean: 

Portal JavaDoc and Portal Jar methods don't match

Former Member
0 Kudos

Hi Friends:

I am using Usermanagement api available from com.sap.security.api jar file. We have IGroupSearchFilter class, which has two get and two set methods, according to the JavaDoc. But when during the coding, when you ask for the NWDStudio prompting, I don't see any set methods.

package com.symbol.tools;

import com.sapportals.portal.prt.component.*;

import java.util.Iterator;

import com.sapportals.portal.prt.component.*;

import com.sapportals.portal.prt.logger.ILogger;

import com.sapportals.portal.prt.runtime.IPortalConstants;

import com.sapportals.portal.prt.runtime.PortalRuntime;

import com.sap.security.api.IGroup;

import com.sap.security.api.IGroupFactory;

import com.sap.security.api.IGroupSearchFilter;

import com.sap.security.api.IRole;

import com.sap.security.api.IRoleFactory;

import com.sap.security.api.ISearchResult;

import com.sap.security.api.IUser;

import com.sap.security.api.IUserFactory;

import com.sap.security.api.NoSuchGroupException;

import com.sap.security.api.UMException;

import com.sap.security.api.UMFactory;

import com.sap.security.api.IGroupSearchFilter;

public class UserRole extends AbstractPortalComponent{

public void doContent(IPortalComponentRequest request, IPortalComponentResponse response){

IGroupFactory gf = UMFactory.getGroupFactory();

gf.searchGroups(((IGroupSearchFilter)gf.getGroupSearchFilter()).???)

}

}

I am using the com.sap.security.api.jar file from the portal.

Any help in to this is great !!

Prasad Nutalapati

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try breaking the following code into more lines (ie. define a new variable for IGroupSearchFilter):

gf.searchGroups(((IGroupSearchFilter)gf.getGroupSearchFilter()).???)

Furthermore, you might want to check that you have the right libraries that corresponds to your version of javadocs.

Chers,

Vic