Examples of PermDescriptor


Examples of org.apache.derby.iapi.sql.dictionary.PermDescriptor

     * @exception StandardException
     */
    public PermDescriptor getGenericPermissions(UUID objectUUID, String objectType, String privilege, String granteeAuthId)
        throws StandardException
    {
        PermDescriptor key = new PermDescriptor( this, null, objectType, objectUUID, privilege, null, granteeAuthId, false );
       
        return (PermDescriptor) getPermissions( key);
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.PermDescriptor

     * @return The descriptor of the user's permissions for the object.
     * @throws StandardException
     */
    public PermDescriptor getGenericPermissions(UUID permUUID)
            throws StandardException {
        PermDescriptor key = new PermDescriptor(this, permUUID);
        return getUncachedGenericPermDescriptor(key);
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.PermDescriptor

        }
      }
    }
    else if( key instanceof PermDescriptor)
    {
      PermDescriptor permKey = (PermDescriptor) key;
      permissions = dd.getUncachedGenericPermDescriptor( permKey);
      if( permissions == null)
      {
        // The owner has all privileges unless they have been revoked.
                String objectType = permKey.getObjectType();
                String privilege = permKey.getPermission();
                UUID protectedObjectsID = permKey.getPermObjectId();
               
               
                PrivilegedSQLObject pso = PermDescriptor.getProtectedObject( dd, protectedObjectsID, objectType );
                SchemaDescriptor sd = pso.getSchemaDescriptor();
                if( permKey.getGrantee().equals( sd.getAuthorizationId()))
                {
                    permissions = new PermDescriptor
                        (
                         dd,
                         null,
                         objectType,
                         pso.getUUID(),
                         privilege,
                         Authorizer.SYSTEM_AUTHORIZATION_ID,
                         permKey.getGrantee(),
                         true
                         );
                }
      }
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.PermDescriptor

        String grantee = null;
        boolean grantable = false;


        if (td != null) {
            PermDescriptor sd = (PermDescriptor) td;
            UUID pid = sd.getUUID();
            if ( pid == null )
            {
        pid = getUUIDFactory().createUUID();
        sd.setUUID(pid);
            }
            permIdString = pid.toString();

            objectType = sd.getObjectType();

            UUID oid = sd.getPermObjectId();
            objectIdString = oid.toString();

            permission = sd.getPermission();
            grantor = sd.getGrantor();
            grantee = sd.getGrantee();
            grantable = sd.isGrantable();
        }

        /* Build the row to insert */
        row = getExecutionFactory().getValueRow(SYSPERMS_COLUMN_COUNT);

View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.PermDescriptor

             TupleDescriptor parentTupleDescriptor,
             DataDictionary dd)
            throws StandardException {

        DataValueDescriptor col;
        PermDescriptor descriptor;
        String permIdString;
        String objectType;
        String objectIdString;
        String permission;
        String grantor;
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.PermDescriptor

   */
    public boolean isCorrectPermission( PermissionsDescriptor raw )
    {
        if ( (raw == null) || !( raw instanceof PermDescriptor) ) { return false; }

        PermDescriptor pd = (PermDescriptor) raw;
       
        return
            pd.getPermObjectId().equals( _objectID ) &&
            pd.getObjectType().equals( _objectType ) &&
            pd.getPermission().equals( _privilege )
            ;
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.PermDescriptor

     * @exception StandardException
     */
    public PermDescriptor getGenericPermissions(UUID objectUUID, String objectType, String privilege, String granteeAuthId)
        throws StandardException
    {
        PermDescriptor key = new PermDescriptor( this, null, objectType, objectUUID, privilege, null, granteeAuthId, false );
       
        return (PermDescriptor) getPermissions( key);
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.PermDescriptor

     * @return The descriptor of the user's permissions for the object.
     * @throws StandardException
     */
    public PermDescriptor getGenericPermissions(UUID permUUID)
            throws StandardException {
        PermDescriptor key = new PermDescriptor(this, permUUID);
        return getUncachedGenericPermDescriptor(key);
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.PermDescriptor

     * @exception StandardException
     */
    public PermDescriptor getGenericPermissions(UUID objectUUID, String objectType, String privilege, String granteeAuthId)
        throws StandardException
    {
        PermDescriptor key = new PermDescriptor( this, null, objectType, objectUUID, privilege, null, granteeAuthId, false );
       
        return (PermDescriptor) getPermissions( key);
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.PermDescriptor

     * @return The descriptor of the user's permissions for the object.
     * @throws StandardException
     */
    public PermDescriptor getGenericPermissions(UUID permUUID)
            throws StandardException {
        PermDescriptor key = new PermDescriptor(this, permUUID);
        return getUncachedGenericPermDescriptor(key);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.