org.jboss.metadata.ejb.jboss
Class JBossAssemblyDescriptorMetaData

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.ejb.jboss.JBossAssemblyDescriptorMetaData
All Implemented Interfaces:
Serializable, Cloneable, IAssemblyDescriptorMetaData, IdMetaData

public class JBossAssemblyDescriptorMetaData
extends IdMetaDataImpl
implements IAssemblyDescriptorMetaData

JBossAssemblyDescriptorMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
JBossAssemblyDescriptorMetaData()
          Create a new JBossAssemblyDescriptorMetaData
 
Method Summary
 ApplicationExceptionsMetaData getApplicationExceptions()
          Get the applicationExceptions.
 ContainerTransactionsMetaData getContainerTransactions()
          Get the containerTransactions.
 ContainerTransactionsMetaData getContainerTransactionsByEjbName(String ejbName)
          Get the container transactions for an ejb
 ExcludeListMetaData getExcludeList()
          Get the excludeList.
 ExcludeListMetaData getExcludeListByEjbName(String ejbName)
          Get the exclude list for an ejb
 InterceptorBindingsMetaData getInterceptorBindings()
          Get the interceptorBindings.
 MessageDestinationMetaData getMessageDestination(String name)
          Get a message destination
 MessageDestinationsMetaData getMessageDestinations()
          Get the messageDestinations.
 MethodPermissionsMetaData getMethodPermissions()
          Get the methodPermissions.
 MethodPermissionsMetaData getMethodPermissionsByEjbName(String ejbName)
          Get the methods permissions for an ejb
 Map<String,Set<String>> getPrincipalVersusRolesMap()
          Generate a Map of Principal keyed against a set of role names
 SecurityRoleMetaData getSecurityRole(String roleName)
           
 Set<String> getSecurityRoleNamesByPrincipal(String userName)
          Get the security role names by principal
 Set<String> getSecurityRolePrincipals(String name)
          Get a security role's principals
 SecurityRolesMetaData getSecurityRoles()
          Get the securityRoles.
 SecurityRolesMetaData getSecurityRolesByPrincipal(String userName)
          Deprecated. 
 void merge(JBossAssemblyDescriptorMetaData override, AssemblyDescriptorMetaData original)
           
 void merge(JBossAssemblyDescriptorMetaData override, IAssemblyDescriptorMetaData assembly)
          Merge the contents of override with original into this.
 void merge(JBossAssemblyDescriptorMetaData override, JBossAssemblyDescriptorMetaData original)
           
 void setApplicationExceptions(ApplicationExceptionsMetaData applicationExceptions)
          Set the applicationExceptions.
 void setContainerTransactions(ContainerTransactionsMetaData containerTransactions)
          Set the containerTransactions.
 void setExcludeList(ExcludeListMetaData excludeList)
          Set the excludeList.
 void setInterceptorBindings(InterceptorBindingsMetaData interceptorBindings)
          Set the interceptorBindings.
 void setMessageDestinations(MessageDestinationsMetaData messageDestinations)
          Set the messageDestinations.
 void setMethodPermissions(MethodPermissionsMetaData methodPermissions)
          Set the methodPermissions.
 void setSecurityRoles(SecurityRolesMetaData securityRoles)
          Set the securityRoles.
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, equals, getId, hashCode, merge, merge, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossAssemblyDescriptorMetaData

public JBossAssemblyDescriptorMetaData()
Create a new JBossAssemblyDescriptorMetaData

Method Detail

getSecurityRole

public SecurityRoleMetaData getSecurityRole(String roleName)
Specified by:
getSecurityRole in interface IAssemblyDescriptorMetaData

getSecurityRoles

public SecurityRolesMetaData getSecurityRoles()
Get the securityRoles.

Specified by:
getSecurityRoles in interface IAssemblyDescriptorMetaData
Returns:
the securityRoles.

setSecurityRoles

public void setSecurityRoles(SecurityRolesMetaData securityRoles)
Set the securityRoles.

Specified by:
setSecurityRoles in interface IAssemblyDescriptorMetaData
Parameters:
securityRoles - the securityRoles.
Throws:
IllegalArgumentException - for a null securityRoles

getMethodPermissions

public MethodPermissionsMetaData getMethodPermissions()
Get the methodPermissions.

Specified by:
getMethodPermissions in interface IAssemblyDescriptorMetaData
Returns:
the methodPermissions.

setMethodPermissions

public void setMethodPermissions(MethodPermissionsMetaData methodPermissions)
Set the methodPermissions.

Specified by:
setMethodPermissions in interface IAssemblyDescriptorMetaData
Parameters:
methodPermissions - the methodPermissions.
Throws:
IllegalArgumentException - for a null methodPermissions

getMethodPermissionsByEjbName

public MethodPermissionsMetaData getMethodPermissionsByEjbName(String ejbName)
Get the methods permissions for an ejb

Specified by:
getMethodPermissionsByEjbName in interface IAssemblyDescriptorMetaData
Parameters:
ejbName - the ejb name
Returns:
the method permissions or null for no result
Throws:
IllegalArgumentException - for a null ejb name

getContainerTransactions

public ContainerTransactionsMetaData getContainerTransactions()
Get the containerTransactions.

Specified by:
getContainerTransactions in interface IAssemblyDescriptorMetaData
Returns:
the containerTransactions.

setContainerTransactions

public void setContainerTransactions(ContainerTransactionsMetaData containerTransactions)
Set the containerTransactions.

Specified by:
setContainerTransactions in interface IAssemblyDescriptorMetaData
Parameters:
containerTransactions - the containerTransactions.
Throws:
IllegalArgumentException - for a null containerTransactions

getContainerTransactionsByEjbName

public ContainerTransactionsMetaData getContainerTransactionsByEjbName(String ejbName)
Get the container transactions for an ejb

Specified by:
getContainerTransactionsByEjbName in interface IAssemblyDescriptorMetaData
Parameters:
ejbName - the ejb name
Returns:
the container transactions or null for no result
Throws:
IllegalArgumentException - for a null ejb name

getInterceptorBindings

public InterceptorBindingsMetaData getInterceptorBindings()
Get the interceptorBindings.

Specified by:
getInterceptorBindings in interface IAssemblyDescriptorMetaData
Returns:
the interceptorBindings.

setInterceptorBindings

public void setInterceptorBindings(InterceptorBindingsMetaData interceptorBindings)
Set the interceptorBindings.

Specified by:
setInterceptorBindings in interface IAssemblyDescriptorMetaData
Parameters:
interceptorBindings - the interceptorBindings.
Throws:
IllegalArgumentException - for a null interceptorBindings

getExcludeList

public ExcludeListMetaData getExcludeList()
Get the excludeList.

Specified by:
getExcludeList in interface IAssemblyDescriptorMetaData
Returns:
the excludeList.

setExcludeList

public void setExcludeList(ExcludeListMetaData excludeList)
Set the excludeList.

Specified by:
setExcludeList in interface IAssemblyDescriptorMetaData
Parameters:
excludeList - the excludeList.
Throws:
IllegalArgumentException - for a null excludeList

getExcludeListByEjbName

public ExcludeListMetaData getExcludeListByEjbName(String ejbName)
Get the exclude list for an ejb

Specified by:
getExcludeListByEjbName in interface IAssemblyDescriptorMetaData
Parameters:
ejbName - the ejb name
Returns:
the exclude list or null for no result
Throws:
IllegalArgumentException - for a null ejb name

getApplicationExceptions

public ApplicationExceptionsMetaData getApplicationExceptions()
Get the applicationExceptions.

Specified by:
getApplicationExceptions in interface IAssemblyDescriptorMetaData
Returns:
the applicationExceptions.

setApplicationExceptions

public void setApplicationExceptions(ApplicationExceptionsMetaData applicationExceptions)
Set the applicationExceptions.

Specified by:
setApplicationExceptions in interface IAssemblyDescriptorMetaData
Parameters:
applicationExceptions - the applicationExceptions.
Throws:
IllegalArgumentException - for a null applicationExceptions

getSecurityRolePrincipals

public Set<String> getSecurityRolePrincipals(String name)
Get a security role's principals

Parameters:
name - the role name
Returns:
the security role principals or null if not found

getSecurityRolesByPrincipal

@Deprecated
public SecurityRolesMetaData getSecurityRolesByPrincipal(String userName)
Deprecated. 

Get the security roles by principal

Parameters:
userName - the principal name
Returns:
the security roles containing the principal or null for no roles
Throws:
IllegalArgumentException - for a null user name

getSecurityRoleNamesByPrincipal

public Set<String> getSecurityRoleNamesByPrincipal(String userName)
Get the security role names by principal

Parameters:
userName - the principal name
Returns:
the security role names containing the principal
Throws:
IllegalArgumentException - for a null user name

getPrincipalVersusRolesMap

public Map<String,Set<String>> getPrincipalVersusRolesMap()
Generate a Map of Principal keyed against a set of role names

Returns:
map of principal names as keys and set of role name strings as values

getMessageDestinations

public MessageDestinationsMetaData getMessageDestinations()
Get the messageDestinations.

Specified by:
getMessageDestinations in interface IAssemblyDescriptorMetaData
Returns:
the messageDestinations.

setMessageDestinations

public void setMessageDestinations(MessageDestinationsMetaData messageDestinations)
Set the messageDestinations.

Specified by:
setMessageDestinations in interface IAssemblyDescriptorMetaData
Parameters:
messageDestinations - the messageDestinations.
Throws:
IllegalArgumentException - for a null messageDestinations

getMessageDestination

public MessageDestinationMetaData getMessageDestination(String name)
Get a message destination

Specified by:
getMessageDestination in interface IAssemblyDescriptorMetaData
Parameters:
name - the name of the destination
Returns:
the destination or null if not found

merge

public void merge(JBossAssemblyDescriptorMetaData override,
                  AssemblyDescriptorMetaData original)

merge

public void merge(JBossAssemblyDescriptorMetaData override,
                  IAssemblyDescriptorMetaData assembly)
Merge the contents of override with original into this.

Parameters:
override - data which overrides original
original - the original data

merge

public void merge(JBossAssemblyDescriptorMetaData override,
                  JBossAssemblyDescriptorMetaData original)


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.