core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentAbstract.java
public <DB extends ODatabaseDocument> DB checkSecurity(final ORule.ResourceGeneric resourceGeneric, final String resourceSpecific,
      final int iOperation) {
    if (user != null) {
      try {
        user.allow(resourceGeneric, resourceSpecific, iOperation);
      } catch (OSecurityAccessException e) {

        if (OLogManager.instance().isDebugEnabled())
          OLogManager.instance()
              .debug(this, "User '%s' tried to access the reserved resource '%s.%s', operation '%s'", getUser(), resourceGeneric,
                  resourceSpecific, iOperation);

        throw e;
      }
    }
    return (DB) this;
  }
public <DB extends ODatabaseDocument> DB checkSecurity(final ORule.ResourceGeneric resourceGeneric, final String resourceSpecific,
      final int iOperation) {
    if (user != null) {
      try {
        user.allow(resourceGeneric, resourceSpecific, iOperation);
      } catch (OSecurityAccessException e) {

        if (OLogManager.instance().isDebugEnabled())
          OLogManager.instance()
              .debug(this, "User '%s' tried to access the reserved resource '%s.%s', operation '%s'", getUser(), resourceGeneric,
                  resourceSpecific, iOperation);

        throw e;
      }
    }
    return (DB) this;
  }
public < DB extends ODatabaseDocument > DB checkSecurity ( final ORule . ResourceGeneric resourceGeneric , final String resourceSpecific , final int iOperation ) { if ( user != null ) { try { user . allow ( resourceGeneric , resourceSpecific , iOperation ) ; } catch ( OSecurityAccessException e ) { if ( OLogManager . instance ( ) . isDebugEnabled ( ) ) OLogManager . instance ( ) . debug ( this , "User '%s' tried to access the reserved resource '%s.%s', operation '%s'" , getUser ( ) , resourceGeneric , resourceSpecific , iOperation ) ; throw e ; } } return ( DB ) this ; }
{@inheritDoc}
{