Code example for Permission

Methods: implies

0
        if (!(permission instanceof DeploymentCustomizerPermission))
    		return false; 
    	         
        DeploymentCustomizerPermission dcp = (DeploymentCustomizerPermission) permission;
         
        return delegate.implies(dcp.delegate);
    } 
 
    /** 
     * Returns a new PermissionCollection object for storing DeploymentCustomizerPermission  
     * objects. 
     *   
     * @return The new PermissionCollection. 
     * @see java.security.Permission#newPermissionCollection() 
     */ 
    public PermissionCollection newPermissionCollection() {
        return delegate.newPermissionCollection();
    } 
 
}