Create Roles and Permissions using API
Hello,
I'm new to Java and I'm trying to create Roles and Permissions in LiveCycle using API's. Can someone please check and correct my code below?
//Create a ServiceClientFactory object
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
// Create an AuthorizationManagerServiceClient object
AuthorizationManagerServiceClient amClient = new AuthorizationManagerServiceClient(myFactory);
RoleImpl ri = new RoleImpl();
ri.setName("Test ES Role");
ri.setDescription("Test Role via API");
ri.setMutableStatus(true);
amClient.createRole(ri);
Executing the above code throws exception as below;
com.adobe.idp.um.api.UMException| [com.adobe.livecycle.usermanager.client.AuthorizationManagerServiceClient] errorCode:16385 errorCodeHEX:0x4001 message:Exception thrown is NOT a DSCException : UnExpected From DSC chainedException:java.lang.IllegalStateExceptionchainedExceptionMessage:null chainedException trace:java.lang.IllegalStateException
at com.adobe.idp.dsc.clientsdk.ServiceClientFactory$1.handleThrowable(ServiceClientFactory.j ava:72)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:220)
at com.adobe.livecycle.usermanager.client.AuthorizationManagerServiceClient.createRole(Autho rizationManagerServiceClient.java:159)
at com.adobe.lc.ManageRolesAndPermissions.main(ManageRolesAndPermissions.java:70)
Caused by: java.lang.NoClassDefFoundError: javax.ejb.EJBException
at com.adobe.idp.dsc.clientsdk.ServiceClientFactory.evaluateMessageDispatcher(ServiceClientF actory.java:595)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:215)
... 2 more
Caused by: java.lang.ClassNotFoundException: javax.ejb.EJBException
Thank you,
Sandeep
Mahesh,
Refer to your other thread ..
API to create new items in inventory
API to create new items in inventory
Regards,
Hussein
Similar Messages
-
How to create Custom WEB ADI using API Only for both Dowload/Upload process
I am able to create custom WEB ADI using API for upload process. I have written the following code to create custom WEB ADI using API for upload process.
DECLARE
v_application_id NUMBER:= 20003;
v_object_code VARCHAR2(255):='WEBADI_API_DEM_17';
v_int_user_name VARCHAR2(255):='WEBADI_API_DEM_17';
v_language VARCHAR2(255):='US';
v_source_lang VARCHAR2(255):='US';
v_user_id NUMBER :=1345;
v_integrator_code VARCHAR2(255);--:='WEBADI_API_DEM_17_INTG';
v_param_list_code VARCHAR2(255);
--v_interface_code VARCHAR2(255);
v_interface_code VARCHAR2(255);--:='WEBADI_API_DEM_17_INTF';
p_layout_code VARCHAR2(255):='WEBADI_API_DEM_17_LAYOUT';
V_MAPPING_CODE VARCHAR2(255);
BEGIN
BNE_INTEGRATOR_UTILS.CREATE_INTEGRATOR(P_APPLICATION_ID =>v_application_id,
P_OBJECT_CODE =>v_object_code,
P_INTEGRATOR_USER_NAME =>v_int_user_name,
P_LANGUAGE =>v_language,
P_SOURCE_LANGUAGE =>v_source_lang,
P_USER_ID =>v_user_id,
P_INTEGRATOR_CODE =>v_integrator_code);
BNE_INTEGRATOR_UTILS.CREATE_INTERFACE_FOR_API (P_APPLICATION_ID =>v_application_id,
P_OBJECT_CODE =>v_object_code,
P_INTEGRATOR_CODE =>v_integrator_code,
P_API_PACKAGE_NAME =>'XXDH_PRICE_LIST_POC_PKG',
P_API_PROCEDURE_NAME =>'CREATE_PRICE_LIST',
P_INTERFACE_USER_NAME =>'WEBADI_API_DEM_17',
P_PARAM_LIST_NAME =>'WEBADI_API_DEM_17',
P_API_TYPE =>'PROCEDURE',
P_API_RETURN_TYPE =>NULL,
P_UPLOAD_TYPE =>2,
P_LANGUAGE =>v_language,
P_SOURCE_LANG =>v_source_lang,
P_USER_ID =>v_user_id,
P_PARAM_LIST_CODE =>v_param_list_code,
P_INTERFACE_CODE =>v_interface_code);
BNE_INTEGRATOR_UTILS.CREATE_DEFAULT_LAYOUT
(P_APPLICATION_ID =>v_application_id,
P_OBJECT_CODE =>v_object_code,
P_INTEGRATOR_CODE =>v_integrator_code,
P_INTERFACE_CODE =>v_interface_code,
P_USER_ID =>v_user_id,
P_FORCE =>FALSE,
P_ALL_COLUMNS =>TRUE,
P_LAYOUT_CODE =>p_layout_code);
BNE_CONTENT_UTILS.CREATE_CONTENT_COLS_FROM_VIEW (P_APPLICATION_ID =>v_application_id,
P_CONTENT_CODE =>'WEBADI_API_DEM_17'||'_CNT',
P_VIEW_NAME =>'XXDH_PRICE_LIST_POC_V',
P_LANGUAGE =>v_language,
P_SOURCE_LANGUAGE =>v_source_lang,
P_USER_ID =>v_user_id);
BNE_CONTENT_UTILS.CREATE_CONTENT_TO_API_MAP (P_APPLICATION_ID =>v_application_id,
P_OBJECT_CODE =>v_object_code,
P_INTEGRATOR_CODE =>v_integrator_code,
P_CONTENT_CODE =>'WEBADI_API_DEM_17'||'_CNT',
P_INTERFACE_CODE =>v_interface_code,
P_LANGUAGE =>v_language,
P_SOURCE_LANGUAGE =>v_source_lang,
P_USER_ID =>v_user_id,
P_MAPPING_CODE =>V_MAPPING_CODE);
END;
I need to know what are API we can use to create download+upload ADI? anyone has already prepared script....please share it it me. My email id - [email protected]
ThanksUse FNDLOAD, it's the only way.
There are 2 seperate scripts, 1 for the Integrator and 1 for Layout.
FNDLOAD apps/<pw> 0 Y DOWNLOAD $BNE_TOP/patch/115/import/bneintegrator.lct <your name>.ldt BNE_INTEGRATORS INTEGRATOR_ASN="XXX" INTEGRATOR_CODE="<your code>"
FNDLOAD apps/<pw> 0 Y DOWNLOAD $BNE_TOP/patch/115/import/bnelay.lct <your name>.ldt BNE_LAYOUTS LAYOUT_ASN="XXX" LAYOUT_CODE="<your code>"
Cheers
Jeroen -
Datapump exp and imp using API method
Good Day All,
I want to know what is the best way of error handling of datapump export and Import using API. I need to implement in my current project as there lot of limitations and the only way to see the process worked is writing the code with error handling method using exceptions. I have seen some examples on the web but if there are practicle examples or good links with examples that will work sure way, I would like to know and explore. I have never used API method so I am not sure of it.
Thanks a lot for your time.
Maggie.I wrote the procedure with error handling but it does not out put any information of the statuses while kicking off the expdp process. I have put dbms_output.put_line as per oracle docs example but it doesnt display any messages, just kicks off and created dumpfiles. As a happy path its ok but I need to track if something goes wrong. I even stated set serveroutput on sqlplus. It doesnt even display if job started. Please help me where I made a mistake to display the status . Do I need to modify or add anything. Help!!
CREATE OR REPLACE PROCEDURE SCHEMAS_EXPORT_TEST AS
--Using Exception Handling During a Simple Schema Export
--This Proceedure shows a simple schema export using the Data Pump API.
--It extends to show how to use exception handling to catch the SUCCESS_WITH_INFO case,
--and how to use the GET_STATUS procedure to retrieve additional information about errors.
--If you want to get status up to the current point, but a handle has not yet been obtained,
--you can use NULL for DBMS_DATAPUMP.GET_STATUS.http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_api.htm
h1 number; -- Data Pump job handle
l_handle number;
ind NUMBER; -- Loop index
spos NUMBER; -- String starting position
slen NUMBER; -- String length for output
percent_done NUMBER; -- Percentage of job complete
job_state VARCHAR2(30); -- To keep track of job state
sts ku$_Status; -- The status object returned by get_status
le ku$_LogEntry; -- For WIP and error messages
js ku$_JobStatus; -- The job status from get_status
jd ku$_JobDesc; -- The job description from get_status
BEGIN
h1 := dbms_datapump.open (operation => 'EXPORT',job_mode => 'SCHEMA');
dbms_datapump.add_file (handle => h1,filename => 'SCHEMA_BKP_%U.DMP',directory => 'BKP_SCHEMA_EXPIMP',filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_DUMP_FILE);
dbms_datapump.add_file (handle => h1,directory => 'BKP_SCHEMA_EXPIMP',filename => 'SCHEMA_BKP_EX.log',filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
---- A metadata filter is used to specify the schema that will be exported.
dbms_datapump.metadata_filter (handle => h1, name => 'SCHEMA_LIST',value => q'|'XXXXXXXXXX'|');
dbms_datapump.set_parallel( handle => h1, degree => 4);
-- Start the job. An exception will be returned if something is not set up
-- properly.One possible exception that will be handled differently is the
-- success_with_info exception. success_with_info means the job started
-- successfully, but more information is available through get_status about
-- conditions around the start_job that the user might want to be aware of.
begin
dbms_datapump.start_job (handle => h1);
dbms_output.put_line('Data Pump job started successfully');
exception
when others then
if sqlcode = dbms_datapump.success_with_info_num
then
dbms_output.put_line('Data Pump job started with info available:');
dbms_datapump.get_status(h1,
dbms_datapump.ku$_status_job_error,0,
job_state,sts);
if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
then
le := sts.error;
if le is not null
then
ind := le.FIRST;
while ind is not null loop
dbms_output.put_line(le(ind).LogText);
ind := le.NEXT(ind);
end loop;
end if;
end if;
else
raise;
end if;
end;
-- The export job should now be running. In the following loop, we will monitor the job until it completes.
-- In the meantime, progress information is displayed.
percent_done := 0;
job_state := 'UNDEFINED';
while (job_state != 'COMPLETED') and (job_state != 'STOPPED') loop
dbms_datapump.get_status(h1,
dbms_datapump.ku$_status_job_error +
dbms_datapump.ku$_status_job_status +
dbms_datapump.ku$_status_wip,-1,job_state,sts);
js := sts.job_status;
-- If the percentage done changed, display the new value.
if js.percent_done != percent_done
then
dbms_output.put_line('*** Job percent done = ' ||to_char(js.percent_done));
percent_done := js.percent_done;
end if;
-- Display any work-in-progress (WIP) or error messages that were received for
-- the job.
if (bitand(sts.mask,dbms_datapump.ku$_status_wip) != 0)
then
le := sts.wip;
else
if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
then
le := sts.error;
else
le := null;
end if;
end if;
if le is not null
then
ind := le.FIRST;
while ind is not null loop
dbms_output.put_line(le(ind).LogText);
ind := le.NEXT(ind);
end loop;
end if;
end loop;
-- Indicate that the job finished and detach from it.
dbms_output.put_line('Job has completed');
dbms_output.put_line('Final job state = ' || job_state);
dbms_datapump.detach (handle => h1);
-- Any exceptions that propagated to this point will be captured. The
-- details will be retrieved from get_status and displayed.
Exception
when others then
dbms_output.put_line('Exception in Data Pump job');
dbms_datapump.get_status(h1,dbms_datapump.ku$_status_job_error,0, job_state,sts);
if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
then
le := sts.error;
if le is not null
then
ind := le.FIRST;
while ind is not null loop
spos := 1;
slen := length(le(ind).LogText);
if slen > 255
then
slen := 255;
end if;
while slen > 0 loop
dbms_output.put_line(substr(le(ind).LogText,spos,slen));
spos := spos + 255;
slen := length(le(ind).LogText) + 1 - spos;
end loop;
ind := le.NEXT(ind);
end loop;
end if;
end if;
END SCHEMAS_EXPORT_TEST; -
Hi,
I am new to OBIEE. I have installed OBIEE 10.1.3.4.1 in Windows Machines.
I want to create user in OBIEE and i need to give appropriate permissions those users.
How to give roles and permissions in OBIEE .Please help me
Thanks,
Vijay.Hi Vijay,
Please start here; http://gerardnico.com/wiki/dat/obiee/security_10g
Good Luck,
Daan Bakboord
http://obibb.worpdress.com -
Role and privilege used by JDBC
Is there any reqiured role and privilege used by JDBC?
I use Oracle JDBC9203 for Oracle to connect Oracle8163, when executing certion codes, the JDBC raise a exception as below:
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:1026)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1056)
at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:110)
at oracle.jdbc.oracore.OracleTypeADT.createStructDescriptor(OracleTypeADT.java:2262)
at oracle.jdbc.oracore.OracleTypeADT.unpickle81(OracleTypeADT.java:1656)
at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:466)
at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:416)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody_elems(OracleTypeCOLLECTION.java:979)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody(OracleTypeCOLLECTION.java:923)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:743)
at oracle.jdbc.oracore.OracleTypeCOLLECTION._unlinearize(OracleTypeCOLLECTION.java:242)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:208)
at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:963)
I decompile "OracleTypeCOLLECTION.class", in funtion "initCollElemTypeName", i see a SQL as "select elem_type_name, elem_type_owner from all_coll_types where ....", this sql raise the error.
Since all_coll_types is a system view of Oracle, i think the user connect to Oracle must have some role and privilege, it has connect role and execution privileges on some user-defined packages, is there any other role and privilege it needs? I don't like to grant DBA role to it for security reason.
Very thanks for your reply.Can you post the code (Java and PL/SQL) that is being executed when this error is thrown? You don't need any particular privilege to execute PL/SQL via JDBC-- just the privileges you'd need to execute it in SQL*Plus or anywhere else.
Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com/askDDBC -
How to create users and groups using WLST Offline with Weblogic 8.1.4
How to create users and groups using WLST Offline with Weblogic 8.1.4?
Any ideas?Hi this is how i created a user using WLST Offline?
cd('/Security/' + domainName)
# Delete the default user name weblogic
# incase you want to remove the defualt user weblogic
delete('weblogic','User')
# Creating a new user defined
create(userName, 'User')
# Setting the password of the user you created.
cd ('/Security/' + domainName + '/User/' + userName)
cmo.setPassword(password)
Regards
Makenzo -
Associate roles and permissions to users that existe on a database
Hi,
i want realise a secure authentification i used ADF Configuration but i found out that i cant bring my users from my database. i can just create new users with roles in Jdeveloper.
do you how we can bring users to Jdeveloper and associate to them roles and permission ?i found this tutorial that is that what i did :
1. Start up weblogic server (Run .. Start Server Instance)
2. Log on to weblogic console ( http://localhost:7101/console/ )
3. Use default username/password weblogic/weblogic1
4. Create a datasource to connect to the schema where the authenticating database tables are (Services .. JDBC .. Data Sources)
5. Use unique name for datasource. Use JINDI name of jdbc/
6. Enter database name, schema name and password and test
7. Add new Authentication provider (Security Realms .. myrealm .. Providers .. New)
8. Enter datasource name, type SQLAuthenticator click Ok
9. Going back into provider, change control flag to Sufficient
10. Select Provider Specific tab and choose Plaintext passwords, password algorithm SHA-1
11. Shut down weblogic
12. Edit config.xml file in JDEV_DIR/system11.1.1.2.36.55.36/DefaultDomain/config and replace sql authenticator sql statements with those from web blog
13. Restart weblogic.
14. Go to users/groups tab in securty realm and view users and groups imported from database
15. Set control flag for other providers to "Sufficient"
source : http://brent.hmdclinical.com/2010/03/using-database-tables-as-weblogic.html
but the step 12 i dont know what i need to change and with what ? -
HOW TO CREATE ROLE AND ASSIGN TO USER
Dear all
1- Create ROLE data_entry
2- Now open the Form Builder --> open Mennu.mmb --> F4,it open the property pallete --> Set use secturity option
YES and in Module Role option set Roles --> form_entry
5- Press F3 (Come back in Navigator Pane) then double click on Mennu, it open Mennu which is attached Forms then
double click on that one Form which attach Role with it --> click on Item Role --> and attach the Role
6- Go start Mennu --> Oracle Form6i-Admin --> Build after this it will ask
‘Enter System Passwors’ then Give the Local Password.
'Enter database connection ( e.g. t:node:SID) [LOCAL] ' Give ORCL ( but me confused what should i give over
here)
7- Create User DEO Identified By DEO
8- Grant DBA to DEO
9- Grant data_entry to DEO
When i run my application and get login by DEO user then i receive this Error:
FRM-10247: No activate items in root menu of application.
please let me know where i am making mistake
Thanks in advance
Regards,Hi,
Just check your second point.
- Now open the Form Builder --> open Mennu.mmb --> F4,it open the property pallete --> Set use secturity option
YES and in Module Role option set Roles --> form_entryHere, you are using "form_entry" role to the menu but you've granted data_entry role to the user.
Hence, at run time forms is expecting user with form_entry role, which it's not getting.
Hope it helps.
Please mark answer as helpful / correct, if it helps you
Navnit -
How to create items and BOMs using web services
Hi All,
I need to create, change and read Items and BOMs through web services (using SOA Gateway, right). I found this one here: "Process Item (convenience wrapper version)" or "Process Item" within
Internal Name EGO_ITEM_PUB
Type PL/SQL
Product Advanced Product Catalog
Status Active
Business Entity Catalog Item
Right now, I don't know how to use it. If somebody has a simple example to create a single item, this would be perfect! Which one would be the right one to read detailed information about an existing item?
The second object I need to maintain (create, change and read) is BOM. Which API can I use here?
btw: I use EBS 12.1.1 on windows.
Many thanks,
KonradHi!
Thanks for your quick answer but unfortunately, I must admit that I'm an absolute beginner with Oracle and EBS and so things like:
Enable trace and generate the tkprof file or open the form using forms builder to get the name of the API used in thta screen.or
Please check e-trm site for your question do not help me to much :-(
Any other advice?
Konrad
Api's in EBS
Re: Api's in EBS
http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
API
Fixed Asset API
List of API
Re: List of APIs
Regard
Helios -
How to find Shared Serivces Roles and Groups using scripts in IR?
hi all,
I am in IR 9.3.1 environment.
I am trying to see if I can find a user's shared service group or role when they come into a BQY file, and I can code my IR accordingly to provide different needs.
I know I can create a simple query using those V8 tables to do so in version 8, but in 9.3.1, it is not the same anymore. so is there a way that I can do this easily?
I just need to be able to set users into different groups and provide different front-end screens and/or dfferent data results according to the groups they belong to.
thanks.http://social.technet.microsoft.com/forums/sharepoint/en-US/87129bee-4cd5-47d7-8fe0-adcb3260570c/remove-share-option
These links are displayed using the Promoted Actions Delegate Control. You can remove these by overriding the control, there is no other conventional way available to have them removed. Please use the below link for more details:
http://www.learningsharepoint.com/2013/02/19/add-links-to-promoted-actions-sharefollowsync-in-sharepoint-2013/
There is a way to do away with the SharePoint ribbon altogether. Using this method you can expose the top ribbon only to users having 'FullControl' level privilege (or any other level you want).
1. Locate your master page (below example is for Seattle.html) and wrap your ribbon control with a 'SPTrimmedControl'
<!--MS:<SharePoint:SPSecurityTrimmedControl PermissionsString="FullMask" runat="server"> -->
<div id="ms-designer-ribbon">
<!--SID:02 {Ribbon}-->
<!--PS: Start of READ-ONLY PREVIEW (do not modify) --><div class="DefaultContentBlock" style="background:rgb(0, 114, 198); color:white; width:100%; padding:8px; height:64px; overflow:hidden;">In true previews of your site, the SharePoint ribbon will be here.</div><!--PE: End of READ-ONLY PREVIEW -->
</div>
<!--ME:</SharePoint:SPSecurityTrimmedControl> -->
Refer to below link for more details:
http://social.technet.microsoft.com/Forums/en-US/sharepointcustomization/thread/6d78ac4a-82a1-4221-b2ad-2b47e506d929
Also try
http://www.eliostruyf.com/hiding-the-social-actions-follow-share-from-the-document-libraries-in-sharepoint-2013/
hide all people group
Here is one solution:
http://msdn.microsoft.com/en-us/library/ff650031.aspx
If this helped you resolve your issue, please mark it Answered -
Tutorial: Creating, saving and re-using Custom Shapes
I've beeen experimenting with custom shapes for the last couple of days, and thought I'd share some of the tips and techniques I found.
First of all, what are custom shapes?
Well, they're vector objects. That means that they are not built out of millions of individual pixels (like images are), but rather they're a series of mathematical statements that describe how to draw a line from point to point to create the vector shape. This means that custom shapes are "resolution independent", and that they can be grossly shrunk or enlarged and still retain razor sharp edges, curves and corners.
What are custom shapes good for?
Pretty much anything where you want to use a good, sharp object. In particular, using a custom shape as a clipping mask for an image that's been placed as a Smart Object is an outstanding technique, and really shows off the power that PSE is capable of.
PSE comes with a lot of ready-to-use custom shapes for its Custom Shape tool, and there are probably hundreds of thousands available on the Web -- just search for "photoshop shapes". Typically, those shapes will be supplied as Adobe CSH (Custom SHape) files, and simply copying the CSH files into the
"C:\Program Files (x86)\Adobe\Photoshop Elements 10\Presets\Custom Shapes"
directory will make them available for use with the Custom Shape tool.
Sooner or later, though, you'll get the itch to create your own custom shapes. Out of the box, PSE does not have the capability to let you create custom shapes and add them to the CSH files like the "big" Photoshop does, so we'll need to use a workaround: store your custom shapes as layers in a PSD file, and when you want to use them simply copy them into your image.
N.B.: To create custom shapes you'll have to use the reasonably priced Elements+ add-in:
http://elementsplus.net/
So, the procedure goes like this:
Create a new image, using the PSE defaults, and save it as "CustomShapes01.psd", keeping it open.
Open an image containing an object that you want to use as a custom shape.
Use any of the selection tools to make an accurate selection of the object:
In the Effects panel, use the Elements+...Paths effect and choose the Create New Path...From Current Selection:
Use the Elements+...Paths again, choosing "Convert to Shape", giving it a name and colour of your choosing. This will create a Shape Layer using that name.
Important: If your shape has "holes",
use the Shape Selection tool and click on the shape to select it. Then hit the "Combine" button in the Options Bar. This will combine all the individual shapes used to create the shape and its "holes" into one shape, and prevent beaucoup problems later.
Switch to the Move tool and drag the shape onto the tab of your "CustomShapes01.psd" image, keeping your mouse button pressed. That image will become activated and you can move your cursor onto the image itself and drop your shape onto it. Your PSD file will now have your custom shape as a shape layer:
Save that "CustomShapes01.psd" file.
You can repeat the process for as many custom shapes as you want, and they will each become a layer in the "CustomShapes01.psd" file.
To use your custom shape, open the "CustomShapes01.psd" file and your target image and do the drag and drop with the Move tool to copy the custom shape onto your target image.
I mentioned that using a custom shape as a clipping mask for an image placed as a Smart Object is a very powerful technique. It's powerful because the custom shape can be altered at any time and still keep its sharpness, and because the Smart Object can also be resized without becoming pixellated. Of course, that custom shape layer can have any number of layer styles applied to it and those layer styles will "follow" the shape if the shape is moved, resized or rotated.
Here are three examples of using the custom shapes as clipping masks for Smart Objects:
In this example, each custom shape is used as a clipping mask for an image Smart Object, as usual:
Here, one custom shape was used as a clipping mask for an image Smart Object and they were linked.
Then the shape and image were duplicated and moved, rotated and resized. Because of the linking, the Smart Object automatically kept its orientation and size relative to the custom shape throughout:
If you want to use custom shapes as a "combined" clipping mask, the procedure is a little more complicated because you need to get all your custom shapes on one shape layer.
So, after copying your shapes into the target image (as separate shape layers), use the Shape Selection tool to select one of the shapes. Using Edit...Cut will cut that shape layer to the Clipboard, and you can select one of the other shape layers and use Edit...Paste to paste the custom shape into that shape layer. Repeat as necessary, and you will get all of your custom shapes on one shape layer. Then use that single shape layer as your clipping mask:
The neat thing is that the individual shapes can be selected with the Shape Selection tool and independently moved, resized or rotated as necessary.
Enjoy!
KenThanks, Michel.
I forgot to mention one point about copying shape layers into one shape layer: when you initially use the Shape Selection tool to select a shape for cutting, make sure the option for the Shape Selection tool is set to "Add to Selection".
MichelBParis wrote:
The problem with Elements+ is that it has so many features you soon forget what it can give you !
Truer words were never spoken!
Ken -
I have a couple of questions.
1. How would I go about fitting a custom permission resolver for SOA suite ?
2. Is there a way to print the roles,users and permissions to debug ? My roles could be in LDAP or a database but permissions are in system-jazn-data.xml. Why are these permissions stored in a XML file ?
MohanWhere do the LDAP implementation classes write their logs ?
My worklist application writes logs to orabpel.log like the following.
<2009-05-16 16:46:44,954> <DEBUG> <collaxa.cube.services> <LDAPUtil::getJNDIContext> JNDI Connection received
My bpel console hits openldap but does not write log the same way. It shows that the user does not have enough privileges. So basically I don't see what is being done by my LDAP classes. -
How to create NC data by using API?
Hi, all
I want to log NC by using API. but can't complet succsessful .
please help me check the following source code.
thanks.
NCProductionServiceInterface ncPSI = Services.getService("com.sap.me.nonconformance", "NCProductionService");
CreateNCRequest ncRequest = new CreateNCRequest();
//NC500_part: copy from NC500,and ALLOW_PARTIAL=YES
ncRequest.setActivity("NC500_part");
ncRequest.setSfcRef(new SFCBOHandle(site, sfc).toString());
ncRequest.setValidateNCCodeOperation(true);
// defined NCCODE: NCJPN1
ncRequest.setNcCodeRef(new NCCodeBOHandle(site,"NCJPN1").toString());
ncRequest.setDefectCount(new BigDecimal("3"));
CreateNCResponse ncResponse = ncPSI.createNC(ncRequest);
DispositionRequest disRequest = new DispositionRequest();
disRequest.setActivity("NC500_part"); //what can be set for this Activity, NC500_part is OK?
disRequest.setSfcRef(new SFCBOHandle(site, sfc).toString());
ProductionContext productionCtx = new ProductionContext();
productionCtx.setResourceRef(new ResourceBOHandle(site, "COIL").toString());
disRequest.setProdCtx(productionCtx);
DispositionSelection disSelection = new DispositionSelection();
//DispositionSelection is must need, but what shuold be set?
disSelection.setXXXX();
disRequest.setDispositionSelection(disSelection);
disRequest.setNcCodeRef(new NCCodeBOHandle(site,"NCJPN1").toString());
disRequest.setTotalDefectCount(new BigDecimal("3"));
// DispositionNC
DispositionResponse disResponse = ncPSI.disposition(disRequest);I log the nc to my SFC,but how to complete the nc process by API?
Wait for you help,thanks -
Create Tables and UDO using Addon
Hi,
I created addon using simple installer. Before installing that add on i have manually create UDO and tables. is there any way i can modify my Addon which will create UDO and tables when i install addon in server.
Developed my Add on using C#. for package using B1DE Simple installer.
Can some send me sample code for this at [email protected] or reply to this post your suggestions.
Appreciate your help> UDO's are not accessable via code.
Hi Edward,
but I created UDO via code and it works correctly.
P Guddimath, here is a thread where I paste a code to create UDF, UDT and UDO Problem With Tables
Regards,
Hmg -
Roles and Permissions in Oracle BI Publisher
Hi,
I am trying to do Role based access in the Oracle BI reporting.The roles will be in the OVD/OID and OBIR reports access should be controlled as per those roles.
The document I refered is
http://docs.oracle.com/cd/E14571_01/bi.1111/e13880/T539768T526688.htm#xdosa_und_users.
When I clicked on Permissions and added some permissions like Read,Write etc..and clicked Ok,"Failed" message is displaying.
Any idea why this error is coming?
Thanks in advance.
Edited by: Subin Cheruvath on Feb 17, 2013 11:00 PMDiscoUser.
Skulls lays it out well in that a database user has a database name (ie: rproudman). Then they can have a role (ie: cost manager).
Similarly in Oracle Apps, there is an Oracle Apps user (ie: could be the same - rproudman). And they can have one or many responsibilities (ie: cost manager).
Where Disco is concerned, is that if you create an Apps mode EUL, when you log in with your Oracle Apps username and password, you are presented with a list of Oracle Apps responsibilities that have been assigned to you in Oracle Apps (unless you only have 1 responsibility where the list won't be presented, but you'll be using that responsibility by default). As security, workbooks, etc. can - AND SHOULD - only be shared with responsibilities, when you log in to Disco as one responsibility, you might see a number of reports you're allowed to run. Go back in with a new responsibility and you may see a different set of reports. Works just like switching responsibility in Oracle Apps.
Russ
Maybe you are looking for
-
I have a current machine Windows 7 Pro with a Cisco VPN 3.5v client that currently connects with access to a customers network. They shipped a second machine Windows 8.1 Pro without adding local accounts, that is pre-joined to a sub-domain the first
-
Not to include item from purchase order to the delivery order
Hi, i need some guidance on above topic. The user requested to have the functionality not to include the item from purchase order to delivery order when the item having order balance quantity more than the available stock. In other words, if a PO co
-
Hi everyone, I'm using DW CS4 and am somewhat in a snag. I am trying to line up an image, text and another image side by side. I was successfully able to float the text to the right of the image (by using float: left) and now I am trying to float a
-
I am in need of drivers for a ipod classic 30gb player it was given to me without the install disc
-
Podcast description gone in iTunes
I created the website for my podcast in iWeb, and then uploaded it to iTunes. Everything went fine, until somewhere along the process the "podcast description" in iTunes disappeared. Is it possible to fix this? I think I understand the problem, as at