Wednesday, May 20, 2009

SAP Portal - FAQ 1

1) Accessing a Portal Component in the Default Mode?
Ans: doContent();

2) Extending class when Developing your Portal Components?
Ans: AbstractPortalComponent.

3) Portal Runtime calls the methods in the Life Cycle
Ans: init(), service(), destroy()

4) What are the Parameters that we have to pass to doConent();
Ans: IPortalComponentRequest ,IPortalComponentResponse;

5) How do u access a Resource from a request object
Ans: request.getResource();

6) Personalization concept what are the data type, the type attribute supports
Ans : String , Date , Select , Boolean (however, the Date does not work in my try out)

7) How do u get the property from the IPortalCompenentProfile
Ans : getProperty(String)

8) What is the method has to be overridden by the class that extends from PageProcessorComponent
Ans : getPage(); A static inner class extends JSPDynPage and in getPage, new the inner class.

9) Give the sequence of methods execution of DynPage
Ans :
1) doInitialization()
2) doProcessAfterInput()
3) doProcessBeforeOutput()

10) sequence of method calls when an event occurs
Ans :
1) doProcessAfterInput()
2) on[eventhandlername]
3) doProcessBeforeOutput()

11) how do u get the getCurrentEvent();
Ans :
IPageContext myContext = PageConectFactory.createPageConext(request,responce);
Event = myContext.getCurrentevent();

12) onClientClick() and onClick() are specified then which method will be called first
Ans : onClientClick();

13) JSPDynPage uses _________ type of approach
Ans : Model View Controller

14) The two properties in the component profile indicate that a JSP need to be compiled into portal component :
Ans :
Property name = JSP
Property name = ComponentType

15) Which one is true in the following statement
a) <%@ taglib uri = hbj prefix = htmlb>

b) <%@ taglib uri = hbj prefix = hbj>

c) <%@ taglib uri = hbj prefix = htmlb>

d) <%@ taglib uri = htmlb prefix = hbj>

Ans : a ( I think the answer shall be d.)

16) How do u call a jsp file :
Ans : setJspName();

17) If java Script are used _______tag is necessary for the page
Ans : Page tag

18) Which tag is used for including bean in the jsp file
Ans : [jsp:]

19) What is the scope of the bean
Ans : Session

20) Give the objects that are extend form the IPrincipal
Ans : IGroup, IRole, IUser, IUserAccount, IUserMaint,

21) ____is the Central object from which all UME object factories are obtained
Ans : UMFactory

22) IUser user = UMfactory.getUserfactory().getUserbyLogonID(uid)
String userName = user.getDisplayName();
String email = user.getEmail();
Response.write( userName + username+ Email :+ email);

1) Displays the username and Email ID
2) Throws an exception
3) Doesnt Compile
Ans : 1.

23) List the methods used to create successful user
Ans :
1) NewUser(uid);
2) setFirstName()
3) setLastName()
4) setEmail()
5) setPassword();

24) can we construct an unique id manually .
Ans : false can create a unique id .

25) Unique IDs are used to identify objects across data sources.
Ans : ..

26) How do u retrieve log on information
Ans : umdata.enrich(map);

27) What is the return type of map.get("");
Ans : String

28) How do u load the data in the Client Eventing across the iviews
Ans : EPCM.loadClientData();

29) What is the object available in the pages
Ans : EPCM

30) What problems does HTMLB the overcomes on servelts
Ans :
Visualization and business logic are not separate
Development has to take care of different web clients and versions
NamesSpace conflicts with form elements

31) Stored data is identified by the key¦..
Ans : Namespace+name

32) Frame Work Levels
Ans :
Level = 0 ---- not supported by both javaScript, Java
Level = 1 ---- only by browser (java Script )
Level = 2 ---- both javaScript and Java

33) Features of portal Services in the portal
Ans :
1) portal services are way to provide functionality to portal component
2) portal services implement no user interface
3) portal service may be accessed from out side portal framework

34) Why do we need custom portal Services in the portal
Ans :
1) Can be used by other Portal Application
2) Provide commonly used Functionality
3) Can be exposed as webservice

35) To build a new portal service interface must be implemented
Ans :
IService

36) Life cycle of a portal service
Ans :
Init()
Afterinit()
Destroy()

37) Service name =
Ans :
.
.
.
.

38) Portal service name is myService …what would be the name of interface that extends IService
Ans : IMyService

39) JCA/J2EE connector Architecture is not API. True /False
Ans : true

40) ConnectorFrameWork is SAP Extended API from CCI . all methods in Connector FrameWork has methods with suffix as EX()….
Ans : False only some methods

41) What is the method used to get connection in the Java Connectors
Ans : Service.getConnection();

42) How do u get the locale from the request object.
Ans : Request.getLocale();

43) What is the return type for the table type structure .
Ans : IRecordSet.

44) Give the name of the method that returns resource bundle for the current locale.
Ans : getResourceBundle()

45) Localization.properties
Localization_de_DE.properties.
Localization_en_EN.properties.
What is the Resource bundle name : ?
Ans : Localization

46) What is the data type that returns by the method getString (key)
Ans : String

47) How do u access the a key in the properties file xyz = abc
Ans : getString ("xyz")

48) What type of objects can be translated
Ans : Text

49) the portal translation process is supported by tools
Ans :
Translation worklist coordination
Worklist translation

50) to customize the Logoff screen to the portal ----file is used to change
Ans : masthead

51) SAP Recommends not to modify the SAP code , then what are the process to customize the code
Ans :
1) copy the existing file and rename it according to customer name space
2) create new custom component

52) how can we customize the company Branding
Ans :
1) masthead
2) through customize applicaton

53) Their one question on Desktop inner page

54) What are the components that are added to Portal Desktop
Ans :
Default Frame work
Themes

55) What is the jsp name that contains log on page
Ans : umLogonPage.jsp

56) Authschemes.xml is modified to get custom log on component

57) How do u access portal services from WebDynpro applications
Ans : WDPortalUtils

58) Cache Level :
Ans : none ,session ,user,shared

59) getCachingLevel() is used to get the Cachelevel

60) When will the doinitialization () method is called
Ans :
1 When the page is loaded for the first time
2 When the page is refreshed
3 When object is called from the another object

61) Cached objects are retrieved using the --- method
Ans : get(key)

62) How can the portal service access to external Web Service
Ans :
Generate java proxy out of WSDL file with PDK
You can execute the java proxy as portal service

No comments: