Most methods implemented by the secured repository may throw any exception that is a sub-class of atg.security.SecurityException
. Each of the methods in the SecuredRepository
, SecuredMutableRepository
, SecuredRepositoryItemDescriptor
, SecuredRepositoryView
, and SecuredRepositoryItem
interfaces that is capable of throwing a SecurityException
is marked appropriately.
The methods inherited from the normal Repository interfaces that are marked as capable of throwing an atg.repository.RepositoryException
will, instead, throw an atg.repository.RepositorySecurityException
. The RepositorySecurityException.getSecurityException()
method can be used to determine the nested exception.
The RepositoryItem.getPropertyValue()
and MutableRepositoryItem.setPropertyValue()
methods are unusual in that they do not throw a RepositoryException
. It is necessary, however, for them to throw a SecurityException
, so they will throw an atg.security.RuntimeSecurityException
. The RuntimeSecurityException.getSecurityException()
method can be used to determine the nested exception.