com.sapportals.portal.pcd.gl

Class PermissionControlException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.naming.NamingException
              extended by javax.naming.NamingSecurityException
                  extended by javax.naming.NoPermissionException
                      extended by com.sapportals.portal.pcd.gl.PermissionControlException
All Implemented Interfaces:
IExceptionSequence, Serializable
Direct Known Subclasses:
AclImplementationException

public class PermissionControlException
extends NoPermissionException
implements IExceptionSequence

The PermissionControlException is thrown if the user that is stored as Context.SECURITY_PRINCIPAL in the context environment does not have sufficient permissions to access the requested content in the PCD.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
 
Constructor Summary
PermissionControlException(String s)
          Constructs an PermissionControlException with the specified detail message.
PermissionControlException(String s, String objectName)
          Constructs a PermissionControlException with the specified detail message.
PermissionControlException(Throwable ex)
           
 
Method Summary
 void addException(IExceptionSequence exception)
          Adds another exeption to the seqeunce.
 void addObjectName(String objectName)
          Deprecated. Use interface IExceptionSequence instead
 Throwable getCause()
          Returns the cause of this exception.
 String getMessage()
           
 IExceptionSequence getNextException()
          Returns the next exception of the sequence
 Iterator getNextExceptions()
          Returns the next exceptions as iterator.
 String getObjectName()
          Returns the name of the object for which the operation failed.
 String[] getObjectNames()
          Deprecated. Use interface IExceptionSequence instead
 boolean hasNextException()
          Returns if there are more exception in the sequence.
 boolean operationPartiallyCompleted()
          Returns if the operation that throwed the exception could be partially completed.
 void setPartialCompletion(boolean partiallyCompleted)
          To be set if the operation that throwed the exception could be partially completed.
 
Methods inherited from class javax.naming.NamingException
appendRemainingComponent, appendRemainingName, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionControlException

public PermissionControlException(String s)
Constructs an PermissionControlException with the specified detail message.

Parameters:
s - the detail message.

PermissionControlException

public PermissionControlException(String s,
                                  String objectName)
Constructs a PermissionControlException with the specified detail message.

Parameters:
s - the detail message.
objectName - name of the object that could not be accessed

PermissionControlException

public PermissionControlException(Throwable ex)
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable
See Also:
Throwable.getMessage()

getCause

public Throwable getCause()
Returns the cause of this exception.

Overrides:
getCause in class NamingException
Returns:
Throwable the cause of this exception

getObjectNames

public String[] getObjectNames()
Deprecated. Use interface IExceptionSequence instead

Returns the names of the objects that could not be accessed.

Returns:
String[] Names of the objects which could not be accessed.

addObjectName

public void addObjectName(String objectName)
Deprecated. Use interface IExceptionSequence instead

Adds a new object name to the permission.

Parameters:
objectName -

operationPartiallyCompleted

public boolean operationPartiallyCompleted()
Returns if the operation that throwed the exception could be partially completed.

Specified by:
operationPartiallyCompleted in interface IExceptionSequence
Returns:
boolean true if operation was parially completed

setPartialCompletion

public void setPartialCompletion(boolean partiallyCompleted)
To be set if the operation that throwed the exception could be partially completed.

Specified by:
setPartialCompletion in interface IExceptionSequence
Parameters:
partiallyCompleted -

getObjectName

public String getObjectName()
Description copied from interface: IExceptionSequence
Returns the name of the object for which the operation failed.

Specified by:
getObjectName in interface IExceptionSequence
Returns:
Absolute name of the object for which the operation failed
See Also:
IExceptionSequence.getObjectName()

addException

public void addException(IExceptionSequence exception)
Description copied from interface: IExceptionSequence
Adds another exeption to the seqeunce.

Specified by:
addException in interface IExceptionSequence
Parameters:
exception - Exception
See Also:
IExceptionSequence.addException(com.sapportals.portal.pcd.gl.IExceptionSequence)

hasNextException

public boolean hasNextException()
Description copied from interface: IExceptionSequence
Returns if there are more exception in the sequence.

Specified by:
hasNextException in interface IExceptionSequence
Returns:
True if there are more exceptions
See Also:
IExceptionSequence.hasNextException()

getNextException

public IExceptionSequence getNextException()
Description copied from interface: IExceptionSequence
Returns the next exception of the sequence

Specified by:
getNextException in interface IExceptionSequence
Returns:
Next exception
See Also:
IExceptionSequence.getNextException()

getNextExceptions

public Iterator getNextExceptions()
Description copied from interface: IExceptionSequence
Returns the next exceptions as iterator.

Specified by:
getNextExceptions in interface IExceptionSequence
Returns:
Iterator of all exceptions
See Also:
IExceptionSequence.getNextExceptions()
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/pcd/gl/api - EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/pcd/gl/api api EP-PIN
[sap.com] EP-BASIS [sap.com] tc/epbc/pcd/pars/srvgldeprecated api BC-PIN-PCD
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2011 SAP AG Complete Copyright Notice