Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-05

oracle.apps.fnd.applcore.attachments.security
Class Authorization

java.lang.Object
  extended by oracle.apps.fnd.applcore.attachments.security.Authorization

public class Authorization
extends java.lang.Object


Field Summary
static java.lang.String DELETE_PERMISSION
           
static java.lang.String READ_PERMISSION
           
static java.lang.String UPDATE_PERMISSION
           
 
Constructor Summary
Authorization()
           
 
Method Summary
static boolean docAccessAllowed(java.lang.String documentId, java.lang.String permission)
          docAccessAllowed - will attempt to identify whether the current user has the required permissions to access a document in UCM.
static boolean entityAccessAllowed(java.lang.String fndObjectName, java.lang.String pk1Value, java.lang.String pk2Value, java.lang.String pk3Value, java.lang.String pk4Value, java.lang.String pk5Value, java.lang.String permission)
          Returns true if the current user has been granted this permission on the object with the specified primary key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READ_PERMISSION

public static final java.lang.String READ_PERMISSION
See Also:
Constant Field Values

UPDATE_PERMISSION

public static final java.lang.String UPDATE_PERMISSION
See Also:
Constant Field Values

DELETE_PERMISSION

public static final java.lang.String DELETE_PERMISSION
See Also:
Constant Field Values
Constructor Detail

Authorization

public Authorization()
Method Detail

docAccessAllowed

public static boolean docAccessAllowed(java.lang.String documentId,
                                       java.lang.String permission)
docAccessAllowed - will attempt to identify whether the current user has the required permissions to access a document in UCM. Query is based on whether the user has been granted equivalent or greater access to one of the Entity instances the doc has been attached too.

Parameters:
documentId - - UCM Document ID
permission - - pemission requested (read, update or delete)
Returns:

entityAccessAllowed

public static boolean entityAccessAllowed(java.lang.String fndObjectName,
                                          java.lang.String pk1Value,
                                          java.lang.String pk2Value,
                                          java.lang.String pk3Value,
                                          java.lang.String pk4Value,
                                          java.lang.String pk5Value,
                                          java.lang.String permission)
Returns true if the current user has been granted this permission on the object with the specified primary key.

Parameters:
fndObjectName - the object id defined in the FND_OBJECTS table
pk1Value - first primary key value for the row as defined in the FND_DOCUMENT_ENTITIES table. This must exist.
pk2Value - second primary key value for the row as defined in the FND_DOCUMENT_ENTITIES table. This may be empty.
pk3Value - third primary key value for the row as defined in the FND_DOCUMENT_ENTITIES table. This may be empty.
pk4Value - fourth primary key value for the row as defined in the FND_DOCUMENT_ENTITIES table. This may be empty.
pk5Value - fifth primary key value for the row as defined in the FND_DOCUMENT_ENTITES table. This may be empty.
permission - - pemission requested (read, update or delete)
Returns:

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-05

Copyright © 2012 Oracle. All Rights Reserved.