Custom class for GRC provisioning framework 2 on IDM 7.2
Hello,
I am currently trying to modify the GRC provisioning framework validation workflow in order to validate privileges on roles rather than each privilege individualy. After reading through the code, I tried to create a class which would extract the list of privileges of the role and send it to GRC for validation. But I am faced with a problem integrating it in IDM 7.2.
The provisioning framework use "Execution Task" to call a static java methods. This is the process I tried to work with, thus I created my own java class based on those in com.sap.idm.grc.ac, and replaced the call to a call to my class. The problem is, when starting the job, the dispatcher thrown an exception:
Could not carry out method (com.inventy.idm.grc.ACPrepRequestRole.exec)
The produced .jar should be in the DSECLASSPATH of the dispatcher (I check the .prop file directly, after adding it to the MMC), it still work with any other file in the same folder (grcfr.jar, among other), it just seem like it can't recognize mine.
Is there any other place where I need to register my .jar? Is it even possible to modify a Java Execution Task like this, or I will need to redo half the framework in Javascript?
Attached are the task created, the classpath extension and the folder where the jar is located.
Julien,
I'd probably open a note on this one.
Regards,
Matt
Similar Messages
-
Needed classes for sap connector framework
Hello,
when i installed sap netweaver developer studio 2.0.5 i become all needed classes for sap connector framework?
Or i have to install the pdk? What are in the pdk for developer studio because the needed wizards are there (portal, sap connector ...)
Thanks,
FrankTorben, try to use class finder plugin as described here /people/maksim.rashchynski/blog/2006/08/14/the-story-about-how-2-eclipse-plugins-helped-me-to-make-a-lot-of-points-on-sdn-forum
To save you some time:
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\tcconnconnectorframework\*.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\com.sapportals.connectors.sap\connector\connectors\SAPCFConnector.rar\SAPCFConnector.jar -
Adding info blocks in a custom class for Factsheet
Hi Experts,
I need to create a custom class by copying the standard class 'CL_CRM_CCKPT_PROCESS_OPEN' which should accept input as Activity Types. At present this class only accepts Number of months as Input. This added input field should accept individual multiple values & Ranges and F4 help also needs to be attached for the field.
I would like to know how to add this new input field to the class 'CL_CRM_CCKPT_PROCESS_OPEN' .
Any valuable help would be appreciated & points would be rewarded generously for the same.
Regards,
Sangeeta.Hi,
You can copy and include your fields in the class using transaction SE24.
According to your subject line you are trying to modify an existing factsheet display you own data. I would suggest instead of creating a modifying an existing class, implement your own function module and call this function module directly from the smartform used to for factsheet. This is an easier way to implement modification of factsheets instead of using the classes and displaying the data.
Reward with points if this helps.
Regards,
Gaurav Gera -
Default Code Generation for a Custom Class for an Application Module
hi all
Oracle® Fusion Middleware
Fusion Developer’s Guide for Oracle Application Development
Framework
11g Release 1 (11.1.1)
with Jdeveloper TP3 ,
By default, the application module Java class will look similar to what you see in
Example below when you've first enabled it. Of interest, it contains:
■ Getter methods for each view object instance in the data model
■ A main() method allowing you to debug the application module using the
Business Components Browser
[package devguide.model;
import devguide.model.common.StoreServiceAM;
import oracle.jbo.server.ApplicationModuleImpl;
import oracle.jbo.server.ViewLinkImpl;
import oracle.jbo.server.ViewObjectImpl;
// --- File generated by Oracle ADF Business Components Design Time.
// --- Custom code may be added to this class.
// --- Warning: Do not modify method signatures of generated methods.
public class StoreServiceAMImpl extends ApplicationModuleImpl {
/** This is the default constructor (do not remove) */
public SRServiceImpl() { }
/** Sample main for debugging Business Components code using the tester */
public static void main(String[] args) {
launchTester("devguide.model", /* package name */
"SRServiceLocal" /* Configuration Name */);
/** Container's getter for YourViewObjectInstance1 */
public ViewObjectImpl getYourViewObjectInstance1() {
return (ViewObjectImpl)findViewObject("YourViewObjectInstance1");
// ... Additional ViewObjectImpl getters for each view object instance
// ... ViewLink getters for view link instances here
when i try this i didn't find the default generation for main method
have i do something before enable custom java file for Application module
hope to hear from you soonhi nonStop
Since you are using Jdeveloper TP3, this might be a better place to ask your question:
"JDeveloper and OC4J 11g Technology Preview"
JDeveloper and OC4J 11g Technology Preview
success
Jan Vervecken -
9.7.3 Default Code Generation for a Custom Class for an Application Module
hi all
Oracle® Fusion Middleware
Fusion Developer’s Guide for Oracle Application Development
Framework
11g Release 1 (11.1.1)
with Jdeveloper TP3 ,
By default, the application module Java class will look similar to what you see in
Example below when you've first enabled it. Of interest, it contains:
■ Getter methods for each view object instance in the data model
■ A main() method allowing you to debug the application module using the
Business Components Browser
[package devguide.model;
import devguide.model.common.StoreServiceAM;
import oracle.jbo.server.ApplicationModuleImpl;
import oracle.jbo.server.ViewLinkImpl;
import oracle.jbo.server.ViewObjectImpl;
// --- File generated by Oracle ADF Business Components Design Time.
// --- Custom code may be added to this class.
// --- Warning: Do not modify method signatures of generated methods.
public class StoreServiceAMImpl extends ApplicationModuleImpl {
/** This is the default constructor (do not remove) */
public SRServiceImpl() { }
/** Sample main for debugging Business Components code using the tester */
public static void main(String[] args) {
launchTester("devguide.model", /* package name */
"SRServiceLocal" /* Configuration Name */);
/** Container's getter for YourViewObjectInstance1 */
public ViewObjectImpl getYourViewObjectInstance1() {
return (ViewObjectImpl)findViewObject("YourViewObjectInstance1");
// ... Additional ViewObjectImpl getters for each view object instance
// ... ViewLink getters for view link instances here
when i try this i didn't find the default generation for main method
have i do something before enable custom java file for Application module
hope to hear from you soonhi nonStop
Since you are using Jdeveloper TP3, this might be a better place to ask your question:
"JDeveloper and OC4J 11g Technology Preview"
JDeveloper and OC4J 11g Technology Preview
success
Jan Vervecken -
How to create custom class for Swing compnents
import java.awt.Color;
import java.awt.Font;
import javax.swing.JLabel;
import javax.swing.*;
public class SampleJFrame extends JFrame {
public static void main(String[] args) {
SampleJFrame frame = new SampleJFrame();
JPanel panel = new JPanel();
panel.setLayout(null);
getLabel label;
Color color, color1;
color = new Color( 120 , 120 , 160 );
color1 = new Color( 135 , 38 , 87);
label = new getLabel( "Hiiiiii", 150, 700, 800, 50, color1, "Serif", Font.BOLD, 28 );
panel.add(label);
frame.add(panel);
frame.setSize(700, 770);
frame.setVisible(true);
frame.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
import java.awt.Color;
import java.awt.Font;
import javax.swing.JLabel;
public class getLabel extends JLabel {
* This method create and return the JLabel with necessary parameter
* @param labelName
* @param x coordinate
* @param y coordinate
* @param width
* @param height
* @param foreground color
* @param fontName
* @param fontStyle
* @param fontSize
* @return JLabel
public getLabel( String labelName, int x, int y, int width, int height, Color foreGround,
String fontName, int fontStyle, int fontSize ){
JLabel label = new JLabel(labelName);
label.setBounds( x, y, width, height);
label.setForeground(foreGround);
label.setFont(new Font(fontName, fontStyle, fontSize));
} // End of getLabel block
}I want to use customs JLabel class where I can add necessay element to JLabel comonent
But in above case the getLabel class compiles but when I am add label using getLabel class
to my JFrame class it doesnt shows anything.
I dont get what is the error please help
Edited by: harshal_2010 on Apr 29, 2010 6:43 AM
Edited by: harshal_2010 on Apr 29, 2010 7:01 AMI don't understand, Why you try to create new Label in getLabel constructor?
You get label class already extended from JLabel and don't necessary to create new JLabel.
public getLabel( String labelName, int x, int y, int width, int height, Color foreGround,
String fontName, int fontStyle, int fontSize ){
super(labelName);
this.setBounds( x, y, width, height);
this.setForeground(foreGround);
this.setFont(new Font(fontName, fontStyle, fontSize));
}I think, you need to create ControlsFactory and use it for creating custom controls. It's best solution for you. -
Hello AS2 Forum,
I am being forced to use AS2.0. (prefer AS3). I am using
Captivate 3, and want to add some Flash created swfs as animations
to a slide or slides in my Captivate project (Captivate 3 supports
AS2 only at this time).
I would like to create a class file that has symbol in it. By
symbols I mean MovieClips that are converted drawings.
My test case is just one item, a "plus" sign for addition. I
will want to add a minus, a divide (slash), and a multiply
(asterisk) once I get my class working.
I have a nice plus sign that I created using the Flash
drawing tools. Is there some way I can add this created symbol to
my class? I mean without putting a bunch of code in the class that
actually draws the plus sign using "lineto" this and "lineto" that,
etc. My thought is create a class called "Operator", and have the
signs in the class, and instantiate a sign using something like:
var plus:Operator = new Operator("plus");
The thought of creating the math to draw an asterisk is not
exciting!
Or should I just create the symbols in my fla file, convert
to movieclips, and add to the stage using the attachMovie scenario
(which is easier).
Tips???
Thanks,
eholz1Hello Kglad,
Thanks for the info. I might be getting "smarter" as the
thought did occur to me, but did not try it. can I assume that I
would build a swf of the "image" and then use attachMovie to bring
the swf into my class file, and the when the class is instantiated
in my other flash file, I will have the object?
I will experiment.
Thanks
eholz1 -
Custom class for playing system prompts
Hi,
I wanted to know is there any class file to play the system prompts from the user folder . Is there any reference or sample file to develop custom prompts.
Best Regards
VinayNone of the available releases allow you to mess with the system prompts folder. In every scenario I can think of it is possible to modify your script to manually choose user repo prompts instead of the system repo file; it just takes more effort.
Is there a specific task that you're trying to accomplish? We can talk out what extra code you need to make it pull from the user repo. -
Creating custom class instances for XML nodes
Hi guys,
I'm trying to load an external XML document in my application
and create an instance of a custom class for each node in the XML
based on the value of some of their elements. The instances created
will eventually end up in a DataGrid by the way. The problem I'm
having is there seems to be many ways of doing small parts of this
and I have no idea how to make them all gel. Initially I'm using
HTTPService to load the XML file but I've seen people just use an
XML object. Then, after that, I initially set the loaded XML to an
ArrayCollection but others have used XMLList or XMLListCollection.
I've no idea what's the best way to do this.
Eventually, when I've created all of these instances by
looping over the XML and creating them how will I make them
bindable to the data grid? I'm guessing I'll have to group them
somehow...
Any help would be greatly appreciated. ThanksHey Tracy,
That is exactly what I was talking about in a previous post
you replied to
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1344350
Anyhow, Below is some code I created to do what your saying
somewhat dynamically. The idea being you can have many different
object types that you may want to populate with data from XML. In
my case I am using e4x as the result type from my web services. At
present I have about 6 different classes that call this function.
I'd love to get some opinions on the function. Good bad or
???? Any improvements etc????
package . . . .
import flash.utils.describeType;
import flash.utils.getDefinitionByName;
import flash.utils.getQualifiedClassName;
import mx.utils.ObjectUtil;
* Utility class to convert xml based Objects to class
instances.
* Takes a value object as the destination and an xmlList of
data
* Look through all the items in the value object. Note we
are using classInfo..accessor since
* our objects are bound all variables become getter /
setter's or accessors.
* Also note, we can handle custom objects, arrays and
arrayCollections.
* History
* 03.11.2008 - Steven Rieger : Created class
public final class XMLToInstance
public static function xmlToInstance( destinationObject :
Object, sourceXMLList : XMLList ) : void
// Get the class definition in XML, from the passed in
object ( introspection so to speak )
var classInfo : XML = describeType( destinationObject );
// Loop through each variable defined in the class.
for each ( var aVar : XML in classInfo..accessor )
// If this is String, Number, etc. . . Just copy the data
into the destination object.
if( isSimple( aVar.@type ) )
destinationObject[aVar.@name] = sourceXMLList[aVar.@name];
else
// Dynamically create a class of the appropriate type
var className : String = aVar.@type;
var ObjectClass : Class = getDefinitionByName( className )
as Class;
var newDestObject : Object = Object( new ObjectClass());
// If this is a custom type
if( isCustomType( className ) && ObjectClass != null
// Recursively call itself passing in the custom data type
and the data to store in it.
// I haven't tested nested objects more than one level. I
suppose it should work.
// Note to self. Check.
xmlToInstance( newDestObject, sourceXMLList[aVar.@name] );
else
// Must be some sort of Array, Array Collection . . .
if( ObjectClass != null )
var anXMLList : XMLList = new XMLList(
sourceXMLList[aVar.@name] );
for each( var anItem : XML in anXMLList )
// I'm sure there are more types, just not using any of them
yet.
if( newDestObject is Array )
newDestObject.push( anItem )
else
newDestObject.addItem( anItem );
// Add the data to the destination object. . . .
destinationObject[aVar.@name] = newDestObject;
} // end function objectToInstance
public static function isSimple( dataType : String ) :
Boolean
* This function is pretty self explanatory.
* Check to see if this is a simple data type. Did I miss
any?
* History
* 03.11.2008 - Steven Rieger : Created function
switch( dataType.toLowerCase() )
case "number":
case "string":
case "boolean":
return true;
return false;
} // end isSimple
public static function isCustomType( className : String ) :
Boolean
* This function is pretty self explanatory.
* Check to see if this is a custom data type. Add them here
as you need. . .
* History
* 03.11.2008 - Steven Rieger : Created function
var aClassName : String = className.replace( "::", "."
).toLowerCase();
aClassName = aClassName.substr( aClassName.lastIndexOf( "."
) + 1, aClassName.length - aClassName.lastIndexOf( "." ) );
switch( aClassName )
case "ndatetimevo":
case "expenselineitemvo":
return true;
return false;
} // end isCustomType
} // end class
} // end package -
Arrays within custom Classes - same array for different instances?
Hello all,
I have made a very simple custom class for keeping track of groups of offices for a company. The class has a Number variable to tell it how many different offices there are, and an Array to store the individual offices by name. It looks like this.
class officeCluster
static var _className:String = "officeCluster";
// variables
var numOffices:Number;
var locationArray:Array = new Array();
// functions
function officeCluster()
trace("officeCluster constructor");
Very simple!
Now, it is my understand that when I create different instances of the class, they will each have their own version of "numOffices" and their own version of "locationArray".
When I run traces of "numOffices", this seems to be true. For example,
trace(manufacturingOfficeCluster.numOffices);
trace(servicesOfficeCluster.numOffices);
yields
5
4
In the output panel, which is correct. However, there is trouble with the locationArray. It seems that as I assign different values to it, regardless of what instance I specify, there is only ONE array- NOT one for each instance.
In other words,
trace(manufacturingOfficeCluster.locationArray[1].theLocation); // theLocation is a String. The locationArray itself holds Objects.
trace(servicesOfficeCluster.locationArray[1].theLocation);
yields
New Haven, CT
New Haven, CT
even though I have defined elsewhere that they are different!
Is anyone aware of any issues partaining to using Arrays within Class instances? Any help would be appreciated!
note: I've been able to work around this by creating multiple arrays within the class and using a different one for each instance, but this seems very sloppy.Unfortunately, the code segment you attached results in:
12
12
in the output panel. So the problem must lie elsewhere! Let me give some more detail...
There are several files involved. The "officeCluster" class file looks like this:
class officeCluster
static var _className:String = "officeCluster";
// variables
var numOffices:Number;
var locationArray:Array = new Array();
// functions
function officeCluster()
trace("officeCluster constructor");
I have two actionscript files which contain object data for the individual offices. They look like this...
var servicesOfficeCluster = new officeCluster();
servicesOfficeCluster.numOffices = 4;
var newHope:Object = new Object();
newHope.locationName = "New Hope Office";
newHope.theLocation = "New Hope, NJ";
//more data
servicesOfficeCluster.locationArray[0] = newHope; //array index is incremented with each entry
//more Objects...
and like this...
var manufacturingOfficeCluster = new officeCluster();
manufacturingOfficeCluster.numOffices = 5;
var hartford:Object = new Object();
hartford.locationName = "Hartford Office";
hartford.theLocation = "Hartford, CT";
//more data
manufacturingOfficeCluster.locationArray[0] = hartford; //array index is incremented with each entry
//more Objects...
As you can see, the only difference is the name of the officeCluster instance, and of course the Object data itself. Finally, these are all used by the main file, which looks like this- I have commented out all the code except for our little test -
import officeCluster;
#include "manufacturingList.as"
#include "servicesList.as"
/*lots of commented code*/
manufacturingOfficeCluster.locationArray[1].theLocation = "l1";
servicesOfficeCluster.locationArray[1].theLocation = "l2";
trace(manufacturingOfficeCluster.locationArray[1].theLocation);
trace(servicesOfficeCluster.locationArray[1].theLocation);
Which, unfortunately, still yields
12
12
as output :\ Any ideas? Is there something wrong with the way I have set up the class file? Something wrong in the two AS files? I'm really starting to bang my head against the wall with this one.
Thanks -
How to avoid GRC provisioning dynamically
Hi All,
I have typical scenario like this:
I have integrated IDM with GRC for risk analysis and SAP system provisioning. I have various workflows where GRC provisioning framework is getting called when GRC privileges are assigned or revoke.
But in one workflow, I need to assign GRC privileges to user but I do not want "AC Submit request" to be invoked.I want privileges to be assigned to the user without sending to GRC.
Any suggestions how I can stop invoking "AC Submit Request" dynamically?
Thanks,
Dhiman Paul.Hi jai,
Yes {A}{BYPASS_MEMBER_TASK=1} is working if we are writing directly in the To IdentityStore pass. Please find the below screenshot.
But if we are using the script and trying to set the BYPASS_MEMBER_TASK=1 then we are not able to set the value.
Below is the code:
var PrivMskey = uIS_sGet(IDStore,"MSKEYVALUE",BRolePrivilege,true);--> Used to fetch the Mskey of the privileges.
var task_property="{A}{BYPASS_MEMBER_TASK=1}";
var tempval=task_property+PrivMskey;
var SetPrivToUser = uIS_SetValue(mskey,IDStore,"MXREF_MX_PRIVILEGE",tempval);
We are calling uIS_Setvalue to assign privileges to User through Action pass.
This method is returning the following error, {A}{BYPASS_MEMBER_TASK=1}PrivMSKEY BYPASS_MEMBER_TASK=1 is getting concatenated with PrivMskey while BYPASS_MEMBER_TASK should have got set to 1.
Please find the below screenshot.
Thanks,
Dhiman -
Problem Using Custom Classes in UCCX8.5.1 SU3
Dear All,
My team is facing problem in using Java custom classes for UCCX 8.5.1 SU3
The problem is that we have created some conditional prompts for currency in different languages, our custom java class contains two mathods GetEnglishString(parameter set) and GetUrduString(parameter set). We are able to use/call both methods one by one and both at same time in CCX Editor and validate the script successfully but when we set the script as application it failed.
We tried to use both methods one by one and found that script with GetEnglishString is working ok but when we place GetUrduString (alone as well) MIVR logs say that method is unknown altough CCX Editor does not give us any error. We triend to restard Administration and Engine Services several time but to no avail. If somebody know the reason and solution kindly share it ASAP.
Regards
Kashif SurhioHi
In that case I would double check you have uploaded the file, and restart the server completely. In testing we found that restarting the engine didn't always reload the classes.
Aaron -
I created two custom classes for a project. The excerpt of
code attached refers to the event handler from my first class. In
the event handler it creates a new instance of my second class.
This works fine. Unfortunately I cannot figure out how to make the
existing instance (before a new one is created using the same event
handler) use a fade out function (or do any other property value
change) I created, then have the new instance display after the
property value change of the original instance has been
triggered.I get this when putting the following line just before the
creation of var loadMyImage
quote:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at BotMenu/downClick() -
Provisioning Framework for SAP IDM 7.2 -- Download link required
Hello Experts,
Could you please provide me the link to download Provisioning Framework for SAP IDM 7.2 .
Thanks in Advance,
Regards,
Devyou can get links to all doco [here|http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/4000d09f-a9b9-2d10-8b90-ba3a0f9fe0c8]. That link is accessible from IdM 7.2 homepage.
Yes, I meant using version 7.2 of provisioning framework with 7.1 components.
Cheers -
Updating the SAP IDM Provisioning Framework
HI Laurent,
I know this has been posted and answered for some time but reading the documentation on how to upgrade the provisioning framework is not really clear to me what will happen and I am hoping you have the experience now to help me (importing the SAP Provisioning Framework.mcc file).
Reading the documentation it sounds like the whole provisioning framework from SAP should have been disabled and renamed during implementation but all I have done is use the SAP framework and put the custom tasks in a different folder.
In the identity center I have the provisioning framework folder and underneath I have custom tasks, core and connector folders. Do you know if I import the new .mcc file will it overwrite my custom tasks folder and effectively delete it?
Many thanks,
AndyAndy,
I branched this off as a new question. Take a look at these documents as a start.
Updating the SAP Provisioning Framework Version 2 - SAP NetWeaver Identity Management Provisioning Framework for SAP Sys…
https://websmp205.sap-ag.de/~sapidb/011000358700001230022010E
However, the basic process is just to import it. You should make sure that you have backups first. Note that there are some options when importing that will help you through controlling what gets overwritten. Best practice is always to make sure that your active provisioning framework is renamed so that when you import the new version it will not cause conflicts. I've never really had to upgrade my frameworks so hopefully someone out there will have some "hands on" advice to share.
Matt
Maybe you are looking for
-
Open/save dialog boxes disappear after leopard upgrade
hi, since upgrading to leopard, i cant open or save in logic. I can open existing documents from finder and they load ok, and i can create a new document but if i open or save from the file menu, no open/save window appears. The options in the logic
-
Get PO and Item number from FI Cleared Items
Hi, I need to retrieve PO and item numbers from FI cleared items. So I retrieve the records for a particular GR/IR account from table BSIS. Based on FI document number, item number, fiscal year and company code, I get the PO and item numbers from ta
-
HT1911 after purchase fraud my apple ID was disabled from iphone, how do i restore
After an unauthorized purchase on itunes was resolved (through paypal) and my phone was updated (3g) my appleID was disabled on my iphone. I can get it on my mac which makes me think it's something wrong with my phone. I believe this all happened whe
-
Archiving object for tables GLPCC and GLPCO
Hi All, GLPCA table stores the actual line items in PCA and GLPCT table stores the totals records of PCA. What are the transactions which get affected in regular course by these tables? GLPCC - EC-PCA: Transaction Attributes GLPCO - EC-PCA: O
-
How do you get brackets [ ] to be visible in the forumn?
When I'm responding to posts with XPATH predicates they keep disappearing in the post because the forumn formatting engine thinks it's a URL. Does anybody know how to workaround this issue? Thanks, Ike Wiggins http://biupublisher.blogspot.com