org.jboss.metadata.ejb.spec
Class SecurityIdentityMetaData

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions
          extended by org.jboss.metadata.ejb.spec.SecurityIdentityMetaData
All Implemented Interfaces:
Serializable, Cloneable, IdMetaData, MergeableMetaData<SecurityIdentityMetaData>

public class SecurityIdentityMetaData
extends IdMetaDataImplWithDescriptions
implements MergeableMetaData<SecurityIdentityMetaData>

SecurityIdentityMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock, Scott.Stark@jboss.org
See Also:
Serialized Form

Constructor Summary
SecurityIdentityMetaData()
          Create a new SecurityIdentityMetaData
 
Method Summary
 RunAsMetaData getRunAs()
          Get the runAs.
 String getRunAsPrincipal()
          Get the runAsPrincipal.
 EmptyMetaData getUseCallerIdentity()
          Get the useCallerIdentity.
 boolean isUseCallerId()
          Whether to use caller identity
 SecurityIdentityMetaData merge(SecurityIdentityMetaData original)
          Merge some metadata
 void merge(SecurityIdentityMetaData override, SecurityIdentityMetaData original)
          Merge override + original into this
 void setRunAs(RunAsMetaData runAs)
          Set the runAs.
 void setRunAsPrincipal(String runAsPrincipal)
          Set the runAsPrincipal.
 void setUseCallerIdentity(EmptyMetaData useCallerIdentity)
          Set the useCallerIdentity.
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions
getDescriptions, merge, setDescriptions
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, equals, getId, hashCode, merge, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityIdentityMetaData

public SecurityIdentityMetaData()
Create a new SecurityIdentityMetaData

Method Detail

isUseCallerId

public boolean isUseCallerId()
Whether to use caller identity

Returns:
true for caller id

getUseCallerIdentity

public EmptyMetaData getUseCallerIdentity()
Get the useCallerIdentity.

Returns:
the useCallerIdentity.

setUseCallerIdentity

public void setUseCallerIdentity(EmptyMetaData useCallerIdentity)
Set the useCallerIdentity.

Parameters:
useCallerIdentity - the useCallerIdentity.

getRunAs

public RunAsMetaData getRunAs()
Get the runAs.

Returns:
the runAs.

setRunAs

public void setRunAs(RunAsMetaData runAs)
Set the runAs.

Parameters:
runAs - the runAs.
Throws:
IllegalArgumentException - for a null runAs

getRunAsPrincipal

public String getRunAsPrincipal()
Get the runAsPrincipal.

Returns:
the runAsPrincipal.

setRunAsPrincipal

public void setRunAsPrincipal(String runAsPrincipal)
Set the runAsPrincipal.

Parameters:
runAsPrincipal - the runAsPrincipal.
Throws:
IllegalArgumentException - for a null runAsPrincipal

merge

public SecurityIdentityMetaData merge(SecurityIdentityMetaData original)
Description copied from interface: MergeableMetaData
Merge some metadata

Specified by:
merge in interface MergeableMetaData<SecurityIdentityMetaData>
Parameters:
original - the original
Returns:
the merged metadata

merge

public void merge(SecurityIdentityMetaData override,
                  SecurityIdentityMetaData original)
Merge override + original into this

Parameters:
override -
original -


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