|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.wlai.common.AbstractDescriptor | +--com.bea.wlai.common.ApplicationViewDescriptor
Represents the metadata for an ApplicationView (e.g. its events, services, name, namespace, etc.)
Constructor Summary | |
ApplicationViewDescriptor(java.lang.String name)
Construct a new ApplicationViewDescriptor with the given name. |
|
ApplicationViewDescriptor(java.lang.String name,
java.lang.String description)
Construct a new ApplicationViewDescriptor with the given name and description. |
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) from this ApplicationViewDescriptor. |
boolean |
equals(java.lang.Object obj)
Compare this object to the given object and determine if they are equal. |
boolean |
eventExists(java.lang.String name)
Indicates whether the event with the given name exists in this IApplicationViewDescriptor object. |
void |
fromXML(IDocument doc)
Extract the data for this descriptor from the given IDocument instance, replacing all contents of the current descriptor with the new data. |
java.security.acl.Acl |
getAcl()
Returns the access control list for 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 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. |
INamespace |
getParentNamespace()
Get this descriptor's parent namespace. |
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. |
QualifiedName |
getQualifiedName()
Return a QualifiedName representing this descriptor's name and parent namespace. |
IServiceDescriptor |
getService(java.lang.String name)
Gets the service 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 event descriptors in this IApplicationViewDescriptor. |
java.util.Iterator |
listEvents()
List all event descriptors 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. |
static void |
main(java.lang.String[] args)
|
void |
makeReadOnly()
used to make this object immutable |
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 Caller should pass the boolean negative to indicate whether to remove the negative or not-negative entry for the given permission. |
IEventDescriptor |
removeEvent(java.lang.String name)
Removes the event 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 |
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 |
setName(java.lang.String name)
Set this descriptor's name. |
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. |
void |
setParentNamespace(INamespace parent)
Set this descriptor's parent namespace. |
void |
toXML(IDocument doc)
Output an XML representation of this descriptor into an IDocument instance. |
Methods inherited from class com.bea.wlai.common.AbstractDescriptor |
fromXML,
fromXML,
getDescription,
getName,
isReadOnly,
setDescription,
toXML,
toXML |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ApplicationViewDescriptor(java.lang.String name) throws java.lang.IllegalArgumentException
public ApplicationViewDescriptor(java.lang.String name, java.lang.String description) throws java.lang.IllegalArgumentException
Method Detail |
public boolean equals(java.lang.Object obj)
public QualifiedName getQualifiedName()
public void setName(java.lang.String name) throws java.lang.IllegalArgumentException
name
- The new name for this descriptor. Null is not allowed.public INamespace getParentNamespace()
public void setParentNamespace(INamespace parent)
parent
- This descriptor's parent namespace. Setting this
parameter to null should be avoided, and indicates that the
descriptor has no parent.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 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
- should be true = negative, false = not-negativepublic void toXML(IDocument doc) throws DocumentException
doc
- An IDocument instance to receive the data for this descriptor.public void clear()
public void fromXML(IDocument doc) throws DocumentException
doc
- An IDocument instance from which the data for this descriptor
will be extracted.public static void main(java.lang.String[] args)
public void makeReadOnly()
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |