|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the metadata for an ApplicationView (e.g. its events, services, name, namespace, etc.) All implementations of this interface should be Serializable, and allow for streaming to/from XML.
Field Summary | |
static java.lang.String |
READ_PERMISSION
|
static java.lang.String |
WRITE_PERMISSION
|
Method Summary | |
IEventDescriptor |
addEvent(java.lang.String eventName)
Add an event to this application view. |
IServiceDescriptor |
addService(java.lang.String serviceName)
Add a service to this application view. |
void |
clear()
Clear all data (except the name/namespace) for this descriptor. |
boolean |
eventExists(java.lang.String name)
Indicates whether the event descriptor with the given name exists in this IApplicationViewDescriptor object. |
java.security.acl.Acl |
getAcl()
Returns the access control list for this application view. |
java.lang.String |
getAdapterLogicalName()
Get the logical name associated with this Application view. |
IConnectionFactoryDescriptor |
getConnectionFactoryDescriptor()
Get the IConnectionFactoryDescriptor that represents the connection factory that will be used at runtime to fulfill connection requests for ApplicationViews based off this IApplicationViewDescriptor. |
java.lang.String |
getConnectionFactoryJNDIName()
Get the JNDI name for the connection factory that will be used at runtime to fulfill connection requests for ApplicationViews based off this IApplicationViewDescriptor. |
java.lang.String |
getConnectionFactoryNameString()
Get the name for the connection factory that will be used at runtime to fulfill connection requests for ApplicationViews based off this IApplicationViewDescriptor. |
IEventDescriptor |
getEvent(java.lang.String name)
Gets the event descriptor with the given name from this IApplicationViewDescriptor object. |
java.lang.String |
getEventRouterURL()
Return the URL of the event router that will receive any event subscriptions for this IApplicationViewDescriptor. |
java.util.Set |
getPrincipalsWithoutPermission(java.lang.String permissionStr)
Gets a set of principals that have a given permission within this descriptors ACL. |
java.util.Set |
getPrincipalsWithPermission(java.lang.String permissionStr)
Gets a set of principals that have a given permission within this descriptor's ACL. |
IServiceDescriptor |
getService(java.lang.String name)
Gets the service descriptor with the given name from this IApplicationViewDescriptor object. |
boolean |
grantPermission(java.lang.String principalName,
java.lang.String permissionName)
Grants a given permission to a principal (user or group) with the given name. |
boolean |
hasEvents()
Indicates whether this IApplicationViewDescriptor has any events within it. |
boolean |
hasServices()
Indicates whether this IApplicationViewDescriptor has any services within it. |
boolean |
isAsyncEnabled()
Deprecated. Async access is always enabled |
java.util.Iterator |
listEventNames()
List the names of all events in this IApplicationViewDescriptor. |
java.util.Iterator |
listEvents()
List all events in this IApplicationViewDescriptor. |
java.util.Iterator |
listServiceNames()
List the names of all service descriptors in this IApplicationViewDescriptor. |
java.util.Iterator |
listServices()
List all service descriptors in this IApplicationViewDescriptor. |
boolean |
ownsConnectionFactory()
|
void |
removeAclEntryFromAcl(java.lang.String permission,
java.lang.String principal,
boolean negative)
This method is used to remove an AclEntry from this object's ACL. |
IEventDescriptor |
removeEvent(java.lang.String name)
Removes the event descriptor with the given name from this IApplicationViewDescriptor object. |
IServiceDescriptor |
removeService(java.lang.String name)
Removes the service with the given name from this IApplicationViewDescriptor object. |
boolean |
revokePermission(java.lang.String principalName,
java.lang.String permissionName)
Revokes a given permission from a principal (user or group) with the given name. |
boolean |
serviceExists(java.lang.String name)
Indicates whether the service with the given name exists in this IApplicationViewDescriptor object. |
void |
setAdapterLogicalName(java.lang.String logicalName)
Set the logical name. |
void |
setAsyncEnabled(boolean enabled)
Deprecated. Async access is always enabled |
void |
setConnectionFactoryDescriptor(IConnectionFactoryDescriptor cfDD)
Set the IConnectionFactoryDescriptor that represents the connection factory that will be used at runtime to fulfill connection requests for ApplicationViews based off this IApplicationViewDescriptor. |
void |
setConnectionFactoryDescriptor(IConnectionFactoryDescriptor cfDD,
boolean bOwns)
Set the IConnectionFactoryDescriptor that represents the connection factory that will be used at runtime to fulfill connection requests for ApplicationViews based off this IApplicationViewDescriptor. |
void |
setConnectionFactoryJNDIName(java.lang.String jndiName)
Set the JNDI name for the connection factory that will be used at runtime to fulfill connection requests for ApplicationViews based off this IApplicationViewDescriptor. |
void |
setConnectionFactoryNameString(java.lang.String name)
Set the qualified name for the connection factory that will be used at runtime to fulfill connection requests for ApplicationViews based off this IApplicationViewDescriptor. |
void |
setEventRouterURL(java.lang.String url)
Set the URL of the event router that will receive any event subscriptions for this IApplicationViewDescriptor. |
void |
setOwnsConnectionFactoryFlag(boolean bOwns)
Sets the ownership flag for the connection factory; passing true indicates that the connection factory is solely owned by this object and it is free to do whatever it wants with the connection factory; false indicates that the connection factory is not solely owned by this application view. |
Methods inherited from interface com.bea.wlai.common.INamespaceObject |
equals,
getDescription,
getName,
getParentNamespace,
getQualifiedName,
setDescription,
setName,
setParentNamespace |
Methods inherited from interface com.bea.wlai.common.IDescriptor |
fromXML,
fromXML,
fromXML,
isReadOnly,
makeReadOnly,
toXML,
toXML,
toXML |
Field Detail |
public static final java.lang.String READ_PERMISSION
public static final java.lang.String WRITE_PERMISSION
Method Detail |
public void clear()
public boolean hasEvents()
public IEventDescriptor addEvent(java.lang.String eventName) throws java.lang.IllegalArgumentException, DuplicateNameException
eventName
- The name of the event to be added. Null is not allowed,
and this event's name cannot match any event already in this
IApplicationViewDescriptor instance.public IEventDescriptor removeEvent(java.lang.String name)
name
- The name of the event descriptor to remove.public boolean eventExists(java.lang.String name)
name
- The name of the event descriptor to look for.public IEventDescriptor getEvent(java.lang.String name)
name
- The name of the event descriptor to get.public java.util.Iterator listEvents()
public java.util.Iterator listEventNames()
public boolean hasServices()
public IServiceDescriptor addService(java.lang.String serviceName) throws java.lang.IllegalArgumentException, DuplicateNameException
serviceName
- The name of the service to add. Null is not allowed,
and this service's name cannot match any service already in this
IApplicationViewDescriptor instance.public IServiceDescriptor removeService(java.lang.String name)
name
- The name of the service descriptor to remove.public boolean serviceExists(java.lang.String name)
name
- The name of the service descriptor to look for.public IServiceDescriptor getService(java.lang.String name)
name
- The name of the service descriptor to get.public java.util.Iterator listServices()
public java.util.Iterator listServiceNames()
public java.lang.String getEventRouterURL()
public void setEventRouterURL(java.lang.String url)
url
- A URL string representing the event router, or null if no
event router is known.public IConnectionFactoryDescriptor getConnectionFactoryDescriptor()
public void setConnectionFactoryDescriptor(IConnectionFactoryDescriptor cfDD)
cfDD
- The connection factory descriptor for this descriptor, or null
if none is known. By default, it is assumed that this application
view is the sole owner of the connection factory.public void setConnectionFactoryDescriptor(IConnectionFactoryDescriptor cfDD, boolean bOwns)
cfDD
- The connection factory descriptor for this descriptor, or null
if none is known.bOwns
- - a flag to indicate if the connection factory for this
application view is owned by this application view; this flag is set to
true by default; passing false indicates that the connection factory is
used by other applications and is not solely owned by this application viewpublic void setOwnsConnectionFactoryFlag(boolean bOwns)
public boolean ownsConnectionFactory()
public java.lang.String getConnectionFactoryNameString()
public void setConnectionFactoryNameString(java.lang.String name)
name
- The qualified name (as a String) of the connection factory.public java.lang.String getConnectionFactoryJNDIName()
public void setConnectionFactoryJNDIName(java.lang.String jndiName)
jndiName
- The JNDI name of the connection factory, or null if none
is known.public java.lang.String getAdapterLogicalName()
public void setAdapterLogicalName(java.lang.String logicalName)
logicalName
- The logical name of the adapter associated with
this Application Viewpublic boolean isAsyncEnabled()
public void setAsyncEnabled(boolean enabled)
enabled
- Pass true if async service invocations are to be enabled,
false otherwise.public java.security.acl.Acl getAcl()
public boolean grantPermission(java.lang.String principalName, java.lang.String permissionName)
IApplicationViewDescriptor avd =
;
// Grant write permission for user 'Joe'
avd.grantPermission("Joe", IApplicationViewDescriptor.WRITE_PERMISSION);
principalName
- The name of the principal (user or group) for which
the permission is being granted.permissionName
- The name of the permission that is being granted.public boolean revokePermission(java.lang.String principalName, java.lang.String permissionName)
ApplicationViewDescriptor avd =
;
// Revoke read permission for group 'PowerUsers'
avd.revokePermission("PowerUsers",
ApplicationViewDescriptor.READ_PERMISSION);
principalName
- The name of the principal (user or group) for which
the permission is being revoked.permissionName
- The name of the permission that is being revoked.public java.util.Set getPrincipalsWithPermission(java.lang.String permissionStr)
permissionName
- The name of the permission to search for.public java.util.Set getPrincipalsWithoutPermission(java.lang.String permissionStr)
permissionName
- The name of the permission to search for.public void removeAclEntryFromAcl(java.lang.String permission, java.lang.String principal, boolean negative)
permission
- is the read/write permissionprincipal
- is the principle's namenegative
- is true to remove a negative permission, and false
to remove a not-negative permission
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |